Namespace: | Sirenix.OdinInspector.Editor |
Assembly: | Sirenix.OdinInspector.Editor |
public sealed class HybridObjectPicker
public HybridObjectPicker(Type type, TypeSelectorDrawerSettingsAttribute settings = null, PolymorphicFieldSettingsAttribute polymorphicSettings = null, InspectorProperty property = null)
System.Type | type | |
TypeSelectorDrawerSettingsAttribute | settings | |
PolymorphicFieldSettingsAttribute | polymorphicSettings | |
InspectorProperty | property |
public readonly bool IsAbstract
public readonly bool IsClass
public readonly bool IsInterface
public readonly bool IsString
public readonly bool IsStruct
public readonly bool IsTypeUnityAndCSharp
public readonly bool IsUnityObject
public const string NAMED_VALUE_INSTANCE = "instance"
public const string NAMED_VALUE_TYPE = "type"
public readonly PolymorphicFieldSettingsAttribute PolymorphicSettings
public readonly InspectorProperty Property
public readonly TypeSelectorDrawerSettingsAttribute SettingsAttribute
public readonly Type Type
public bool IsOpen { get; }
public bool IsReadyToClaim { get; }
public object SelectedObject { get; }
public static object ButtonDropZone(Rect rect, object value, Type type, bool allowSceneObjects, int id, TypeSelectorDrawerSettingsAttribute selectorSettings = null, PolymorphicFieldSettingsAttribute polymorphicSettings = null, InspectorProperty property = null)
UnityEngine.Rect | rect | |
System.Object | value | |
System.Type | type | |
System.Boolean | allowSceneObjects | |
System.Int32 | id | |
TypeSelectorDrawerSettingsAttribute | selectorSettings | |
PolymorphicFieldSettingsAttribute | polymorphicSettings | |
InspectorProperty | property |
System.Object |
public void CheckForUpdates()
public object Claim()
System.Object |
public object[] ClaimMultiple(int count)
System.Int32 | count |
System.Object[] |
public static HybridObjectPicker Get(object key, Type type, TypeSelectorDrawerSettingsAttribute settings = null, PolymorphicFieldSettingsAttribute polymorphicSettings = null, InspectorProperty property = null)
System.Object | key | |
System.Type | type | |
TypeSelectorDrawerSettingsAttribute | settings | |
PolymorphicFieldSettingsAttribute | polymorphicSettings | |
InspectorProperty | property |
HybridObjectPicker |
public void Show(int id, object value, bool allowSceneObjects, Rect position = null, bool disallowNullValues = false)
System.Int32 | id | |
System.Object | value | |
System.Boolean | allowSceneObjects | |
UnityEngine.Rect | position | |
System.Boolean | disallowNullValues |
public void Show(object value, bool allowSceneObjects, Rect position = null, bool disallowNullValues = false)
System.Object | value | |
System.Boolean | allowSceneObjects | |
UnityEngine.Rect | position | |
System.Boolean | disallowNullValues |
public void ShowUnity(int id, Object value, Type unityType, bool allowSceneObjects)
System.Int32 | id | |
UnityEngine.Object | value | |
System.Type | unityType | |
System.Boolean | allowSceneObjects |
public void ShowUnity(Object value, Type unityType, bool allowSceneObjects)
UnityEngine.Object | value | |
System.Type | unityType | |
System.Boolean | allowSceneObjects |
public static T YeahImBased<T>(object o)
System.Object | o |
T |
T |