Version 3.3.0.2

HybridObjectPicker class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public sealed class HybridObjectPicker
Inheritance
  • System.Object
  • HybridObjectPicker

Constructors

HybridObjectPicker(Type, TypeSelectorDrawerSettingsAttribute, PolymorphicFieldSettingsAttribute, InspectorProperty)
public HybridObjectPicker(Type type, TypeSelectorDrawerSettingsAttribute settings = null, PolymorphicFieldSettingsAttribute polymorphicSettings = null, InspectorProperty property = null)
Parameters
System.Type type

TypeSelectorDrawerSettingsAttribute settings

PolymorphicFieldSettingsAttribute polymorphicSettings

InspectorProperty property

Fields

IsAbstract
public readonly bool IsAbstract
IsClass
public readonly bool IsClass
IsInterface
public readonly bool IsInterface
IsString
public readonly bool IsString
IsStruct
public readonly bool IsStruct
IsTypeUnityAndCSharp
public readonly bool IsTypeUnityAndCSharp
IsUnityObject
public readonly bool IsUnityObject
NAMED_VALUE_INSTANCE
public const string NAMED_VALUE_INSTANCE = "instance"
NAMED_VALUE_TYPE
public const string NAMED_VALUE_TYPE = "type"
PolymorphicSettings
public readonly PolymorphicFieldSettingsAttribute PolymorphicSettings
Property
public readonly InspectorProperty Property
SettingsAttribute
public readonly TypeSelectorDrawerSettingsAttribute SettingsAttribute
Type
public readonly Type Type

Properties

IsOpen
public bool IsOpen { get; }
IsReadyToClaim
public bool IsReadyToClaim { get; }
SelectedObject
public object SelectedObject { get; }

Methods

ButtonDropZone(Rect, Object, Type, Boolean, Int32, TypeSelectorDrawerSettingsAttribute, PolymorphicFieldSettingsAttribute, InspectorProperty)
public static object ButtonDropZone(Rect rect, object value, Type type, bool allowSceneObjects, int id, TypeSelectorDrawerSettingsAttribute selectorSettings = null, PolymorphicFieldSettingsAttribute polymorphicSettings = null, InspectorProperty property = null)
Parameters
UnityEngine.Rect rect

System.Object value

System.Type type

System.Boolean allowSceneObjects

System.Int32 id

TypeSelectorDrawerSettingsAttribute selectorSettings

PolymorphicFieldSettingsAttribute polymorphicSettings

InspectorProperty property

Returns
System.Object

CheckForUpdates()
public void CheckForUpdates()
Claim()
public object Claim()
Returns
System.Object

ClaimMultiple(Int32)
public object[] ClaimMultiple(int count)
Parameters
System.Int32 count

Returns
System.Object[]

Get(Object, Type, TypeSelectorDrawerSettingsAttribute, PolymorphicFieldSettingsAttribute, InspectorProperty)
public static HybridObjectPicker Get(object key, Type type, TypeSelectorDrawerSettingsAttribute settings = null, PolymorphicFieldSettingsAttribute polymorphicSettings = null, InspectorProperty property = null)
Parameters
System.Object key

System.Type type

TypeSelectorDrawerSettingsAttribute settings

PolymorphicFieldSettingsAttribute polymorphicSettings

InspectorProperty property

Show(Int32, Object, Boolean, Rect, Boolean)
public void Show(int id, object value, bool allowSceneObjects, Rect position = null, bool disallowNullValues = false)
Parameters
System.Int32 id

System.Object value

System.Boolean allowSceneObjects

UnityEngine.Rect position

System.Boolean disallowNullValues

Show(Object, Boolean, Rect, Boolean)
public void Show(object value, bool allowSceneObjects, Rect position = null, bool disallowNullValues = false)
Parameters
System.Object value

System.Boolean allowSceneObjects

UnityEngine.Rect position

System.Boolean disallowNullValues

ShowUnity(Int32, Object, Type, Boolean)
public void ShowUnity(int id, Object value, Type unityType, bool allowSceneObjects)
Parameters
System.Int32 id

UnityEngine.Object value

System.Type unityType

System.Boolean allowSceneObjects

ShowUnity(Object, Type, Boolean)
public void ShowUnity(Object value, Type unityType, bool allowSceneObjects)
Parameters
UnityEngine.Object value

System.Type unityType

System.Boolean allowSceneObjects

YeahImBased<T>(Object)
public static T YeahImBased<T>(object o)
Parameters
System.Object o

Returns
T

Type Parameters
T