docs.unity.cn
    Show / Hide Table of Contents

    Class FieldVector3

    FieldVector3, represents a Vector3 field type. Implements the FieldType

    Inheritance
    Object
    FieldType
    FieldVector3
    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 FieldVector3 : FieldType

    Constructors

    FieldVector3(INodeEditor, Object)

    Initializes a new instance of the FieldVector3 class.

    Declaration
    public FieldVector3(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 Vector3 Data { get; set; }
    Property Value
    Type Description
    Vector3

    The data.

    PortType

    Gets the type of the port.

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

    The type of the port.

    Methods

    OnValueChangedX(ChangeEvent<Single>)

    Called when [value changed x].

    Declaration
    public void OnValueChangedX(ChangeEvent<float> e)
    Parameters
    Type Name Description
    ChangeEvent<Single> e

    The event.

    OnValueChangedY(ChangeEvent<Single>)

    Called when [value changed y].

    Declaration
    public void OnValueChangedY(ChangeEvent<float> e)
    Parameters
    Type Name Description
    ChangeEvent<Single> e

    The event.

    OnValueChangedZ(ChangeEvent<Single>)

    Called when [value changed z].

    Declaration
    public void OnValueChangedZ(ChangeEvent<float> e)
    Parameters
    Type Name Description
    ChangeEvent<Single> 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