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)
31 lines
948 B
C#
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
|