Skip to content

7 Tutorials & Examples

rolandcahen edited this page Dec 9, 2015 · 10 revisions

Tutorials:

Adding a sound to an GameObject in Unity

  • Add AudioSource Unity Component to a Unity GameObject
  • Add a soundfile (.wav or .mp3)
  • If you need to give a specific behaviour to the object, you should use NA Standard Scripts

Exporting a NewAtlantis_OBJECT

In a Unity3D project (which includes the NewAtlantis_SDK):

  • Create an GameObject using standard Unity components, standard NA scripts from the NewAtlantis_SDK
  • Include everything in a single parent GameObject (create empty and put all in except light, cameras …) !! no lights except small ones attached to the object, but no directional lights included !! no camera, for the camera is the AVATAR one. (all other cameras should be destroyed!)
  • Give a proper name to the Parent GameObject
  • Create a prefab with the Parent GameObject (drag and drop in the Asset tab)
  • Right click / Export a Na_AssetBundle dans Dossier Bundles (this menu item will only appear if the NewAtlantis_SDK is installed)
  • If not already created; create an empty folder within your unity3D project project/Bundles (next to the Assets folder) This folder will gather all your Na_AssetBundles and will make them visible from the viewer to upload them to the platform. MakeAssetBundle

Na_object optimisation:

  • Check that your NA_OBJECT does never weigh more than 7Mo and preferably less, for the smallest OBJECTS will work best.
  • Convert .wav files in mp3 (192kbs is a good quality sound mp3)
  • Set the roll offs and max distance of all audio sources preferably to the limits or surrounding of the OBJECTS, unless you want your OBJECT to be heard far away.
  • Reduce the size of your textures to 256pix
  • add Cartel to present your work (see Cartel description)
  • add Activate/deactivate, start and stop all sounds

Importing it into a NewAtlantis SPACE

• Unity Build Settings must be set to PC, Mac & Linux Standalone BuildSettings • Open MyNA Tab MyNA tab Click on "Import a New Asset in my Library" to access to the import window ImportNewAssset

  • Choose the object you would like to import within the OBJECTS found in you personal Bundles folder
  • Choose to make it Public or Private : only Public OBJECTS will be visible in the Public OBJECTS LIBRARY.

! It is very important to rename your NA_OBJECT to the good name everybody will see.

Sharing and playing with guests

Examples:

Playing a sound on collision

Triggering a sound on entering a zone

Using reverberation

Mixing loops


Clone this wiki locally