Class PropertyElement | Properties | 0.9.2-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class PropertyElement

    Inheritance
    Object
    PropertyElement
    Namespace: Unity.Properties.Editor
    Syntax
    public class PropertyElement : BindableElement, IBinding

    Constructors

    PropertyElement()

    Declaration
    public PropertyElement()

    Methods

    GetTarget<T>()

    Declaration
    public T GetTarget<T>()
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetValueAtPath<TValueType>(PropertyPath)

    Declaration
    public TValueType GetValueAtPath<TValueType>(PropertyPath path)
    Parameters
    Type Name Description
    PropertyPath path
    Returns
    Type Description
    TValueType
    Type Parameters
    Name Description
    TValueType

    Refresh(Boolean)

    Declaration
    public void Refresh(bool force = false)
    Parameters
    Type Name Description
    Boolean force

    SetCount(VisualElement, Int32)

    Declaration
    public void SetCount(VisualElement field, int count)
    Parameters
    Type Name Description
    VisualElement field
    Int32 count

    SetTarget<T>(T)

    Declaration
    public void SetTarget<T>(T target)
    Parameters
    Type Name Description
    T target
    Type Parameters
    Name Description
    T

    SetValue<TValueType>(VisualElement, TValueType)

    Declaration
    public TValueType SetValue<TValueType>(VisualElement field, TValueType value)
    Parameters
    Type Name Description
    VisualElement field
    TValueType value
    Returns
    Type Description
    TValueType
    Type Parameters
    Name Description
    TValueType

    SetValueAtPath<TValueType>(PropertyPath, TValueType)

    Declaration
    public void SetValueAtPath<TValueType>(PropertyPath path, TValueType value)
    Parameters
    Type Name Description
    PropertyPath path
    TValueType value
    Type Parameters
    Name Description
    TValueType

    Events

    OnChanged

    Declaration
    public event PropertyElement.ChangeHandler OnChanged
    Event Type
    Type Description
    PropertyElement.ChangeHandler
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX