Version 3.3.0.1

InspectorPropertyInfoUtility class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public static class InspectorPropertyInfoUtility
Inheritance
  • System.Object
  • InspectorPropertyInfoUtility

Methods

BuildPropertyGroups(InspectorProperty, Type, List<InspectorPropertyInfo>, Boolean, ref Dictionary<InspectorPropertyInfo, Single>)
public static void BuildPropertyGroups(InspectorProperty parentProperty, Type typeOfOwner, List<InspectorPropertyInfo> rootMemberProperties, bool includeSpeciallySerializedMembers, ref Dictionary<InspectorPropertyInfo, float> groupMemberOrders)
Parameters
InspectorProperty parentProperty

System.Type typeOfOwner

System.Collections.Generic.List<InspectorPropertyInfo> rootMemberProperties

System.Boolean includeSpeciallySerializedMembers

System.Collections.Generic.Dictionary<InspectorPropertyInfo, System.Single> groupMemberOrders

BuildPropertyGroupsAndFinalize(InspectorProperty, Type, List<InspectorPropertyInfo>, Boolean)
public static InspectorPropertyInfo[] BuildPropertyGroupsAndFinalize(InspectorProperty parentProperty, Type typeOfOwner, List<InspectorPropertyInfo> rootMemberProperties, bool includeSpeciallySerializedMembers)
Parameters
InspectorProperty parentProperty

System.Type typeOfOwner

System.Collections.Generic.List<InspectorPropertyInfo> rootMemberProperties

System.Boolean includeSpeciallySerializedMembers

CreateMemberProperties(InspectorProperty, Type, Boolean)
public static List<InspectorPropertyInfo> CreateMemberProperties(InspectorProperty parentProperty, Type type, bool includeSpeciallySerializedMembers)
Parameters
InspectorProperty parentProperty

System.Type type

System.Boolean includeSpeciallySerializedMembers

Returns
System.Collections.Generic.List<InspectorPropertyInfo>

GetDefaultPropertiesForType(InspectorProperty, Type, Boolean)
Gets all InspectorPropertyInfos for a given type.
public static InspectorPropertyInfo[] GetDefaultPropertiesForType(InspectorProperty parentProperty, Type type, bool includeSpeciallySerializedMembers)
Parameters
InspectorProperty parentProperty

The parent property.

System.Type type

The type to get infos for.

System.Boolean includeSpeciallySerializedMembers

if set to true members that are serialized by Odin will be included.

GetPrivateMemberAlias(MemberInfo, String, String)
Gets an aliased version of a member, with the declaring type name included in the member name, so that there are no conflicts with private fields and properties with the same name in different classes in the same inheritance hierarchy.
public static MemberInfo GetPrivateMemberAlias(MemberInfo member, string prefixString = null, string separatorString = null)
Parameters
System.Reflection.MemberInfo member

System.String prefixString

System.String separatorString

Returns
System.Reflection.MemberInfo

GetSerializationBackend(InspectorProperty, MemberInfo)
public static SerializationBackend GetSerializationBackend(InspectorProperty parentProperty, MemberInfo member)
Parameters
InspectorProperty parentProperty

System.Reflection.MemberInfo member

PerformAndBakePostGroupOrdering(List<InspectorPropertyInfo>, Dictionary<InspectorPropertyInfo, Single>)
public static InspectorPropertyInfo[] PerformAndBakePostGroupOrdering(List<InspectorPropertyInfo> rootProperties, Dictionary<InspectorPropertyInfo, float> groupMemberOrdering = null)
Parameters
System.Collections.Generic.List<InspectorPropertyInfo> rootProperties

System.Collections.Generic.Dictionary<InspectorPropertyInfo, System.Single> groupMemberOrdering

ProcessAttributes(InspectorProperty, MemberInfo, List<Attribute>)
public static void ProcessAttributes(InspectorProperty parentProperty, MemberInfo member, List<Attribute> attributes)
Parameters
InspectorProperty parentProperty

System.Reflection.MemberInfo member

System.Collections.Generic.List<System.Attribute> attributes

TryCreate(InspectorProperty, MemberInfo, Boolean, out InspectorPropertyInfo)
public static bool TryCreate(InspectorProperty parentProperty, MemberInfo member, bool includeSpeciallySerializedMembers, out InspectorPropertyInfo result)
Parameters
InspectorProperty parentProperty

System.Reflection.MemberInfo member

System.Boolean includeSpeciallySerializedMembers

InspectorPropertyInfo result

Returns
System.Boolean

TypeDefinesShowOdinSerializedPropertiesInInspectorAttribute_Cached(Type)
public static bool TypeDefinesShowOdinSerializedPropertiesInInspectorAttribute_Cached(Type type)
Parameters
System.Type type

Returns
System.Boolean