Aetheria/Assets/Wwise/Editor/WwiseComponents/AkBaseInspector.cs
Reinier Vens db8c3c7779 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)
2021-02-27 20:53:36 +00:00

31 lines
948 B
C#

#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