-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using UnityEditor; | ||
using View; | ||
|
||
namespace Editor.Utils { | ||
[CustomPropertyDrawer(typeof(Backdrop.Handle))] | ||
public class BackdropHandlePropertyDrawer : WrapperPropertyDrawer { | ||
protected override string WrappedName => "_backdrop"; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Audio; | ||
using UnityEditor; | ||
|
||
namespace Editor.Utils { | ||
[CustomPropertyDrawer(typeof(FMODEventInstance))] | ||
public class FMODEventInstancePropertyDrawer : WrapperPropertyDrawer { | ||
protected override string WrappedName => nameof(FMODEventInstance.Event); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using UnityEditor; | ||
using UnityEngine; | ||
using Utils; | ||
|
||
namespace Editor.Utils { | ||
public abstract class WrapperPropertyDrawer : PropertyDrawer { | ||
protected virtual string WrappedName { get; } | ||
|
||
public override void OnGUI( | ||
Rect position, | ||
SerializedProperty property, | ||
GUIContent label | ||
) { | ||
var wrappedProperty = property.FindPropertyRelative(WrappedName); | ||
EditorGUI.PropertyField(position, wrappedProperty, label, true); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.