Initial Wwise Integration
Created wwise project Integrated inventory UI sounds Improved projectile weapon behavior (randomized start position, stopped them from self-destructing at target range when airburst is disabled)
This commit is contained in:
parent
b53e4aec8c
commit
db8c3c7779
1019 changed files with 76372 additions and 110 deletions
31
Assets/Wwise/Editor/WwiseComponents/AkBaseInspector.cs
Normal file
31
Assets/Wwise/Editor/WwiseComponents/AkBaseInspector.cs
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#if UNITY_EDITOR
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
public abstract class AkBaseInspector : UnityEditor.Editor
|
||||
{
|
||||
public abstract void OnChildInspectorGUI();
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
|
||||
UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing);
|
||||
|
||||
OnChildInspectorGUI();
|
||||
|
||||
UnityEngine.GUILayout.Space(UnityEditor.EditorGUIUtility.standardVerticalSpacing);
|
||||
|
||||
using (new UnityEngine.GUILayout.HorizontalScope("box"))
|
||||
UnityEditor.EditorGUILayout.PropertyField(serializedObject.FindProperty("data"), new UnityEngine.GUIContent("Name: "));
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
|
||||
if (UnityEngine.GUI.changed)
|
||||
UnityEditor.EditorUtility.SetDirty(serializedObject.targetObject);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Loading…
Reference in a new issue