C# Класс Ludiq.Reflection.Editor.UnityMemberDrawer

Наследование: TargetedDrawer
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
componentProperty UnityEditor.SerializedProperty
filter FilterAttribute
nameProperty UnityEditor.SerializedProperty
parameterTypesProperty UnityEditor.SerializedProperty
property UnityEditor.SerializedProperty
targetType UnityObjectType
targets UnityObject[]

Открытые методы

Метод Описание
HasSharedGameObject ( ) : bool

Determines if the targets all share a GameObject.

Защищенные методы

Метод Описание
DetermineTargetType ( ) : UnityObjectType

Determine the Unity type of the targets.

FindTargets ( ) : UnityObject[]

Get the list of targets on the inspected objects.

GetMemberOption ( MemberInfo member, string component, bool inherited ) : DropdownOption
GetSharedComponentTypes ( ) : IEnumerable

Determines which types of Components are shared on all GameObject targets.

GetSharedScriptableObjectType ( ) : Type

Determines which type of ScriptableObject is shared across targets. Returns null if none are shared.

GetTypeMemberOptions ( Type type, string component = null ) : List>

Gets the list of members available on a type as popup options.

GetValue ( ) : UnityMember

Returns a member constructed from the current parameter values.

RenderMemberControl ( Rect position ) : void
SetValue ( UnityMember value ) : void

Assigns the property values from a specified member.

Update ( UnityEditor.SerializedProperty property ) : void
ValidateMember ( MemberInfo member ) : bool

Determines whether a given MemberInfo should be included in the options. This check follows the BindingFlags and MemberTypes filtering.

ValidateMemberType ( Type type ) : bool

Determines whether a MemberInfo of the given type should be included in the options.

Приватные методы

Метод Описание
GetAllMemberOptions ( ) : List>

Описание методов

DetermineTargetType() защищенный Метод

Determine the Unity type of the targets.
protected DetermineTargetType ( ) : UnityObjectType
Результат UnityObjectType

FindTargets() защищенный Метод

Get the list of targets on the inspected objects.
protected FindTargets ( ) : UnityObject[]
Результат UnityObject[]

GetMemberOption() защищенный Метод

protected GetMemberOption ( MemberInfo member, string component, bool inherited ) : DropdownOption
member System.Reflection.MemberInfo
component string
inherited bool
Результат DropdownOption

GetSharedComponentTypes() защищенный Метод

Determines which types of Components are shared on all GameObject targets.
protected GetSharedComponentTypes ( ) : IEnumerable
Результат IEnumerable

GetSharedScriptableObjectType() защищенный Метод

Determines which type of ScriptableObject is shared across targets. Returns null if none are shared.
protected GetSharedScriptableObjectType ( ) : Type
Результат System.Type

GetTypeMemberOptions() защищенный Метод

Gets the list of members available on a type as popup options.
protected GetTypeMemberOptions ( Type type, string component = null ) : List>
type System.Type
component string
Результат List>

GetValue() защищенный Метод

Returns a member constructed from the current parameter values.
protected GetValue ( ) : UnityMember
Результат UnityMember

HasSharedGameObject() публичный Метод

Determines if the targets all share a GameObject.
public HasSharedGameObject ( ) : bool
Результат bool

RenderMemberControl() защищенный Метод

protected RenderMemberControl ( Rect position ) : void
position UnityEngine.Rect
Результат void

SetValue() защищенный Метод

Assigns the property values from a specified member.
protected SetValue ( UnityMember value ) : void
value UnityMember
Результат void

Update() защищенный Метод

protected Update ( UnityEditor.SerializedProperty property ) : void
property UnityEditor.SerializedProperty
Результат void

ValidateMember() защищенный Метод

Determines whether a given MemberInfo should be included in the options. This check follows the BindingFlags and MemberTypes filtering.
protected ValidateMember ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
Результат bool

ValidateMemberType() защищенный Метод

Determines whether a MemberInfo of the given type should be included in the options.
protected ValidateMemberType ( Type type ) : bool
type System.Type
Результат bool

Описание свойств

componentProperty защищенное свойство

The UnityMember.component of the inspected property, of type string.
protected SerializedProperty,UnityEditor componentProperty
Результат UnityEditor.SerializedProperty

filter защищенное свойство

The filter attribute on the inspected field.
protected FilterAttribute filter
Результат FilterAttribute

nameProperty защищенное свойство

The UnityMember.name of the inspected property, of type string.
protected SerializedProperty,UnityEditor nameProperty
Результат UnityEditor.SerializedProperty

parameterTypesProperty защищенное свойство

The UnityMethod.parameterTypes of the inspected property, of type Type[].
protected SerializedProperty,UnityEditor parameterTypesProperty
Результат UnityEditor.SerializedProperty

property защищенное свойство

The inspected property, of type UnityMember.
protected SerializedProperty,UnityEditor property
Результат UnityEditor.SerializedProperty

targetType защищенное свойство

The type of targeted objects.
protected UnityObjectType targetType
Результат UnityObjectType

targets защищенное свойство

The targeted Unity Objects.
protected UnityObject[] targets
Результат UnityObject[]