Hmm i have bug.
First I have "hello" "arrow1" sounds in
Sounds/Resources/(Chinese/german/english)
hello add in Master Audio
arrow add in DynamicSoundGroupCreator
After scene loaded in Master Audio i see "hello" and "arrow1" but in AudioSource "arrow1" NoneAudioClip
If hit play in SoundGroupVariation in editor - "hello" and "arrow1" will play
(but in console i see log:
NullReferenceException: Object reference not set to an instance of an object
SoundGroupVariationInspector.OnInspectorGUI () (at Assets/Plugins/Editor/DarkTonic/MasterAudio/SoundGroupVariationInspector.cs:46)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean forceDirty, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect, Boolean eyeDropperDirty) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1094)
UnityEditor.DockArea:OnGUI()
And
Unexpected top level layout group! Missing GUILayout.EndScrollView/EndVertical/EndHorizontal?
UnityEditor.DockArea:OnGUI()
)
But if I play from code
MasterAudio.PlaySound("hello"); sound play - no errors
MasterAudio.PlaySound("arrow1"); sound not play - warning
MasterAudio could not find sound: arrow1. If your Scene just changed, this could happen when an OnDisable or OnInvisible event sound happened to a per-scene sound, which is expected.
UnityEngine.Debug:LogWarning(Object)
DarkTonic.MasterAudio.MasterAudio:LogWarning(String) (at Assets/Plugins/DarkTonic/MasterAudio/Scripts/Singleton/MasterAudio.cs:5085)
DarkTonic.MasterAudio.MasterAudio:PlaySoundAtVolume(String, Single, Vector3, Nullable`1, Transform, String, Boolean, Single, Boolean, Boolean, Boolean, Boolean, Boolean) (at Assets/Plugins/DarkTonic/MasterAudio/Scripts/Singleton/MasterAudio.cs:1318)
DarkTonic.MasterAudio.MasterAudio:PlaySound(String, Single, Nullable`1, Single, String, Boolean, Boolean) (at Assets/Plugins/DarkTonic/MasterAudio/Scripts/Singleton/MasterAudio.cs:996)
UIEcButtonMasterAudio:PlaySound() (at Assets/Scripts/EchegShare/UI/Ec/UIEcButtonMasterAudio.cs:12)
UIEcButtonBase:Clicked() (at Assets/Scripts/EchegShare/UI/Ec/UIEcButtonBase.cs:117)
UIEcButtonBaseNgui:OnClick() (at Assets/Scripts/EchegShare/UI/Ec/UIEcButtonBaseNgui.cs:10)
UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)
UICamera:Notify(GameObject, String, Object) (at Assets/NGUI/Scripts/UI/UICamera.cs:1098)
UICamera:ProcessRelease(Boolean, Single) (at Assets/NGUI/Scripts/UI/UICamera.cs:1916)
UICamera:ProcessTouch(Boolean, Boolean) (at Assets/NGUI/Scripts/UI/UICamera.cs:1955)
UICamera:ProcessMouse() (at Assets/NGUI/Scripts/UI/UICamera.cs:1475)
UICamera:ProcessTouches() (at Assets/NGUI/Scripts/UI/UICamera.cs:1595)
UICamera:Update() (at Assets/NGUI/Scripts/UI/UICamera.cs:1257)
yadi.sk/i/QKbtpPE0jGeCc "hello" in master audio after start
yadi.sk/i/Bgp0P8u8jGeGj "arrow1" in master audio after start
yadi.sk/i/97_JOooIjGeL4 folder structure
yadi.sk/i/sUhuqHFVjGeNd setup arrow in DynamicSoundGroupCreator