InspectorPropertyInfo

Contains meta-data information about a property in the inspector.

namespace Sirenix.OdinInspector.Editor
{
public abstract class InspectorPropertyInfo : IValueGetterSetter
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 1.0.6.1

Static Methods

Return Type Definition Description
InspectorPropertyInfo[] Get(Type, bool) Gets all InspectorPropertyInfos for a given type.

Constructors

Definition Description
InspectorPropertyInfo(MemberInfo, PropertyType, SerializationBackend, bool) Initializes a new instance of the InspectorPropertyInfo class.
InspectorPropertyInfo(string, int, IList<InspectorPropertyInfo>) Initializes a new instance of the InspectorPropertyInfo class.
InspectorPropertyInfo(string, Type, Type, bool) Initializes a new instance of the InspectorPropertyInfo class.

Properties

Return Type Definition Description
Attribute[] Attributes The attributes associated with this property.
bool IsEditable Whether this property is editable or not.
bool IsUnityPropertyOnly Whether this property only exists as a Unity SerializedProperty, and has no associated managed member to represent it.
MemberInfo MemberInfo The member info of the property. If the property has many member infos, such as if it is a group property, the first member info of MemberInfos is returned.
MemberInfo[] MemberInfos All member infos of the property. There will only be more than one member if it is an InspectorPropertyGroupInfo.
int Order The order value of this property. Properties are ordered by ascending order, IE, lower order values are shown first in the inspector.
string PropertyName The name of the property.
PropertyType PropertyType Indicates which type of property it is.
SerializationBackend SerializationBackend The serialization backend for this property.
Type TypeOfOwner The type on which this property is declared.
Type TypeOfValue The base type of the value which this property represents.

Methods

Return Type Definition Description
T GetAttribute<T>() Gets the first attribute of a given type on this property.
T GetAttribute<T>(HashSet<Attribute>) Gets the first attribute of a given type on this property, which is not contained in a given hashset.
IEnumerable<T> GetAttributes<T>() Gets all attributes of a given type on the property.
Object GetValue(Object) Gets the value of this property from the given owner.
void SetValue(Object, Object) Sets the value of this property on the given owner.
string ToString() Returns a String that represents this instance.
bool TryConvertToGetterSetter<TOwner, TValue>(ref IValueGetterSetter<TOwner, TValue>)

Tries to convert this property to a strongly typed IValueGetterSetter<TOwner, TValue>.

A polymorphic alias AliasGetterSetter<TOwner, TValue, TPropertyOwner, TPropertyValue> will be created if necessary.