HideReferenceObjectPickerAttribute

Hides the polymorphic object-picker shown above the properties of non-Unity serialized reference types.

namespace Sirenix.OdinInspector
{
[AttributeUsageAttribute((AttributeTargets)384, AllowMultiple = False, Inherited = True)]
public class HideReferenceObjectPickerAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 1.0.5.0

See Also

  • OdinSerializeAttribute

Example

public class MyComponent : SerializedMonoBehaviour
{
    [Header("Hidden Object Pickers")]
    [Indent]
    [HideReferenceObjectPicker]
    public MyCustomReferenceType OdinSerializedProperty1;

    [Indent]
    [HideReferenceObjectPicker]
    public MyCustomReferenceType OdinSerializedProperty2;

    [Indent]
    [Header("Shown Object Pickers")]
    public MyCustomReferenceType OdinSerializedProperty3;

    [Indent]
    public MyCustomReferenceType OdinSerializedProperty4;

    public class MyCustomReferenceType
    {
        public int A;
        public int B;
        public int C;
    }
}