mirror of
https://github.com/maxartz15/UnitySerializedReferenceUI.git
synced 2024-11-22 07:35:36 +01:00
editor namespace
This commit is contained in:
parent
0d04c50612
commit
acec8003c1
@ -4,6 +4,8 @@ using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Textus.SerializeReferenceUI.Editor
|
||||
{
|
||||
[CustomPropertyDrawer(typeof(SerializeReferenceButtonAttribute))]
|
||||
public class SerializeReferenceButtonAttributeDrawer : PropertyDrawer
|
||||
{
|
||||
@ -27,4 +29,5 @@ public class SerializeReferenceButtonAttributeDrawer : PropertyDrawer
|
||||
EditorGUI.EndProperty();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
@ -4,6 +4,8 @@ using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Textus.SerializeReferenceUI.Editor
|
||||
{
|
||||
[CustomPropertyDrawer(typeof(SerializeReferenceMenuAttribute))]
|
||||
public class SerializeReferenceMenuAttributeDrawer : PropertyDrawer
|
||||
{
|
||||
@ -23,4 +25,5 @@ public class SerializeReferenceMenuAttributeDrawer : PropertyDrawer
|
||||
EditorGUI.EndProperty();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
@ -6,6 +6,8 @@ using UnityEditor;
|
||||
using UnityEngine;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
namespace Textus.SerializeReferenceUI.Editor
|
||||
{
|
||||
public static class ManagedReferenceUtility
|
||||
{
|
||||
/// Creates instance of passed type and assigns it to managed reference
|
||||
@ -113,4 +115,5 @@ public static class ManagedReferenceUtility
|
||||
return (typeAssemblyName, typeClassName);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
@ -5,6 +5,8 @@ using System.Linq;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Textus.SerializeReferenceUI.Editor
|
||||
{
|
||||
public static class SerializeReferenceGenericSelectionMenu
|
||||
{
|
||||
/// Purpose.
|
||||
@ -79,4 +81,5 @@ public static class SerializeReferenceGenericSelectionMenu
|
||||
public readonly Type Type;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
@ -4,6 +4,8 @@ using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Textus.SerializeReferenceUI.Editor
|
||||
{
|
||||
public static class SerializeReferenceInspectorButton
|
||||
{
|
||||
/// Must be drawn before DefaultProperty in order to receive input
|
||||
@ -35,4 +37,5 @@ public static class SerializeReferenceInspectorButton
|
||||
EditorGUI.indentLevel = storedIndent;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
@ -4,6 +4,8 @@ using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Textus.SerializeReferenceUI.Editor
|
||||
{
|
||||
public static class SerializeReferenceInspectorMiddleMouseMenu
|
||||
{
|
||||
public static void ShowContextMenuForManagedReferenceOnMouseMiddleButton(this SerializedProperty property, Rect position, IEnumerable<Func<Type, bool>> filters = null)
|
||||
@ -17,4 +19,5 @@ public static class SerializeReferenceInspectorMiddleMouseMenu
|
||||
property.ShowContextMenuForManagedReference(filters);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user