Class PropertyElement | Properties | 0.10.4-preview
docs.unity3d.com
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023