docs.unity.cn
    Show / Hide Table of Contents

    Class FieldAnimationCurve

    FieldAnimationCurve, represents a AnimationCurve field type. Implements the FieldType

    Inheritance
    Object
    FieldType
    FieldAnimationCurve
    Inherited Members
    FieldType.kLiveUpdatePeriodMs
    FieldType._visual
    FieldType._scheduledItem
    FieldType.Editor
    FieldType.SetPortView(PortView)
    FieldType.GetPortView()
    FieldType.BindVisual(VisualElement[])
    FieldType.PortValueChange()
    Namespace: Mechatronics.SystemGraph
    Syntax
    [Serializable]
    public class FieldAnimationCurve : FieldType

    Constructors

    FieldAnimationCurve(INodeEditor, Object)

    Initializes a new instance of the FieldAnimationCurve class.

    Declaration
    public FieldAnimationCurve(INodeEditor editor, object inData = null)
    Parameters
    Type Name Description
    INodeEditor editor

    The editor.

    Object inData

    The data binding.

    Properties

    Data

    Gets or sets the data.

    Declaration
    public AnimationCurve Data { get; set; }
    Property Value
    Type Description
    AnimationCurve

    The data.

    PortType

    Gets the type of the port.

    Declaration
    public PortType<AnimationCurve> PortType { get; }
    Property Value
    Type Description
    PortType<AnimationCurve>

    The type of the port.

    Methods

    OnValueChanged(ChangeEvent<AnimationCurve>)

    Called when [value changed].

    Declaration
    public void OnValueChanged(ChangeEvent<AnimationCurve> e)
    Parameters
    Type Name Description
    ChangeEvent<AnimationCurve> e

    The event.

    SynchronizePortValue()

    Synchronizes the port value.

    Declaration
    public override void SynchronizePortValue()
    Overrides
    FieldType.SynchronizePortValue()

    See Also

    FieldType
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, October 18, 2022
    Terms of use