docs.unity.cn
    Show / Hide Table of Contents

    Class FieldBool

    FieldBool, representation of the field as a bool type. Implements the FieldType

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

    Constructors

    FieldBool(NodeEditor, Object)

    Initializes a new instance of the FieldBool class.

    Declaration
    public FieldBool(NodeEditor editor, object inData = null)
    Parameters
    Type Name Description
    NodeEditor editor

    The editor.

    Object inData

    The in data.

    Properties

    Data

    Gets or sets a value indicating whether this FieldBool is data.

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

    true if data; otherwise, false.

    PortType

    Gets the type of the port.

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

    The type of the port.

    Methods

    OnValueChanged(ChangeEvent<Boolean>)

    Called when [value changed].

    Declaration
    public void OnValueChanged(ChangeEvent<bool> e)
    Parameters
    Type Name Description
    ChangeEvent<Boolean> 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