Namespace: | Sirenix.OdinInspector.Editor |
Assembly: | Sirenix.OdinInspector.Editor |
public sealed class InspectorPropertyInfo
public ImmutableList<Attribute> Attributes { get; }
public bool HasBackingMembers { get; }
public bool HasSingleBackingMember { get; }
public bool IsEditable { get; }
public bool IsUnityPropertyOnly { get; }
public float Order { get; set; }
public string PropertyName { get; }
public PropertyType PropertyType { get; }
public SerializationBackend SerializationBackend { get; }
public Type TypeOfOwner { get; }
public Type TypeOfValue { get; }
public InspectorPropertyInfo CreateCopy()
InspectorPropertyInfo |
public static InspectorPropertyInfo CreateForDelegate(string name, float order, Type typeOfOwner, Delegate delegate, params Attribute[] attributes)
System.String | name | |
System.Single | order | |
System.Type | typeOfOwner | |
System.Delegate | delegate | |
System.Attribute[] | attributes |
InspectorPropertyInfo |
public static InspectorPropertyInfo CreateForDelegate(string name, float order, Type typeOfOwner, Delegate delegate, IEnumerable<Attribute> attributes)
System.String | name | |
System.Single | order | |
System.Type | typeOfOwner | |
System.Delegate | delegate | |
System.Collections.Generic.IEnumerable<System.Attribute> | attributes |
InspectorPropertyInfo |
public static InspectorPropertyInfo CreateForMember(InspectorProperty parentProperty, MemberInfo member, bool allowEditable, params Attribute[] attributes)
InspectorProperty | parentProperty | |
System.Reflection.MemberInfo | member | |
System.Boolean | allowEditable | |
System.Attribute[] | attributes |
InspectorPropertyInfo |
public static InspectorPropertyInfo CreateForMember(InspectorProperty parentProperty, MemberInfo member, bool allowEditable, IEnumerable<Attribute> attributes)
InspectorProperty | parentProperty | |
System.Reflection.MemberInfo | member | |
System.Boolean | allowEditable | |
System.Collections.Generic.IEnumerable<System.Attribute> | attributes |
InspectorPropertyInfo |
public static InspectorPropertyInfo CreateForMember(MemberInfo member, bool allowEditable, SerializationBackend serializationBackend, params Attribute[] attributes)
System.Reflection.MemberInfo | member | |
System.Boolean | allowEditable | |
SerializationBackend | serializationBackend | |
System.Attribute[] | attributes |
InspectorPropertyInfo |
public static InspectorPropertyInfo CreateForMember(MemberInfo member, bool allowEditable, SerializationBackend serializationBackend, IEnumerable<Attribute> attributes)
System.Reflection.MemberInfo | member | |
System.Boolean | allowEditable | |
SerializationBackend | serializationBackend | |
System.Collections.Generic.IEnumerable<System.Attribute> | attributes |
InspectorPropertyInfo |
public static InspectorPropertyInfo CreateForMember(MemberInfo member, bool allowEditable, SerializationBackend serializationBackend, List<Attribute> attributes)
System.Reflection.MemberInfo | member | |
System.Boolean | allowEditable | |
SerializationBackend | serializationBackend | |
System.Collections.Generic.List<System.Attribute> | attributes |
InspectorPropertyInfo |
public static InspectorPropertyInfo CreateForUnityProperty(string unityPropertyName, Type typeOfOwner, Type typeOfValue, bool isEditable, params Attribute[] attributes)
System.String | unityPropertyName | |
System.Type | typeOfOwner | |
System.Type | typeOfValue | |
System.Boolean | isEditable | |
System.Attribute[] | attributes |
InspectorPropertyInfo |
public static InspectorPropertyInfo CreateForUnityProperty(string unityPropertyName, Type typeOfOwner, Type typeOfValue, bool isEditable, IEnumerable<Attribute> attributes)
System.String | unityPropertyName | |
System.Type | typeOfOwner | |
System.Type | typeOfValue | |
System.Boolean | isEditable | |
System.Collections.Generic.IEnumerable<System.Attribute> | attributes |
InspectorPropertyInfo |
public static InspectorPropertyInfo CreateGroup(string name, Type typeOfOwner, float order, InspectorPropertyInfo[] groupInfos, params Attribute[] attributes)
System.String | name | |
System.Type | typeOfOwner | |
System.Single | order | |
InspectorPropertyInfo[] | groupInfos | |
System.Attribute[] | attributes |
InspectorPropertyInfo |
public static InspectorPropertyInfo CreateGroup(string name, Type typeOfOwner, float order, InspectorPropertyInfo[] groupInfos, IEnumerable<Attribute> attributes)
System.String | name | |
System.Type | typeOfOwner | |
System.Single | order | |
InspectorPropertyInfo[] | groupInfos | |
System.Collections.Generic.IEnumerable<System.Attribute> | attributes |
InspectorPropertyInfo |
public static InspectorPropertyInfo CreateValue(string name, float order, SerializationBackend serializationBackend, IValueGetterSetter getterSetter, params Attribute[] attributes)
System.String | name | |
System.Single | order | |
SerializationBackend | serializationBackend | |
Sirenix.OdinInspector.Editor.IValueGetterSetter | getterSetter | |
System.Attribute[] | attributes |
InspectorPropertyInfo |
public static InspectorPropertyInfo CreateValue(string name, float order, SerializationBackend serializationBackend, IValueGetterSetter getterSetter, IList<Attribute> attributes)
System.String | name | |
System.Single | order | |
SerializationBackend | serializationBackend | |
Sirenix.OdinInspector.Editor.IValueGetterSetter | getterSetter | |
System.Collections.Generic.IList<System.Attribute> | attributes |
InspectorPropertyInfo |
public T GetAttribute<T>()
where T : Attribute
T |
T |
public T GetAttribute<T>(HashSet<Attribute> exclude)
where T : Attribute
System.Collections.Generic.HashSet<System.Attribute> | exclude | The attributes to exclude. |
T |
T |
public IEnumerable<T> GetAttributes<T>()
where T : Attribute
System.Collections.Generic.IEnumerable<T> |
T |
public List<Attribute> GetEditableAttributesList()
System.Collections.Generic.List<System.Attribute> |
public IValueGetterSetter GetGetterSetter()
Sirenix.OdinInspector.Editor.IValueGetterSetter |
public InspectorPropertyInfo[] GetGroupInfos()
InspectorPropertyInfo[] |
public MemberInfo GetMemberInfo()
System.Reflection.MemberInfo |
public MemberInfo[] GetMemberInfos()
System.Reflection.MemberInfo[] |
public Delegate GetMethodDelegate()
System.Delegate |
public override string ToString()
System.String | A System.String that represents this instance. |
public bool TryGetStrongGetterSetter<TOwner, TValue>(out IValueGetterSetter<TOwner, TValue> result)
Sirenix.OdinInspector.Editor.IValueGetterSetter<TOwner, TValue> | result |
System.Boolean |
TOwner | |
TValue |