docs.unity.cn
    Show / Hide Table of Contents

    Class PortFloatEditor

    PortFloatEditor represents visuals of a float types port. Implements the PortEditor<T>

    Inheritance
    Object
    IPortEditor
    PortEditor<PortType<Single>>
    PortFloatEditor
    Inherited Members
    PortEditor<PortType<Single>>.SpawnDefaultEditorPanel(IPortEditor, VisualElement)
    PortEditor<PortType<Single>>.RegisterHandlers(Type, IPortEditor.tHandlerDescriptor)
    PortEditor<PortType<Single>>.UnRegisterHandlers(Type)
    PortEditor<PortType<Single>>.SpawnEditor(VisualElement)
    PortEditor<PortType<Single>>.RefreshEditor(Boolean)
    IPortEditor._gMapFnc
    IPortEditor._acceptsConnections
    IPortEditor._field
    IPortEditor.EditorElement
    IPortEditor.Field
    IPortEditor.Guid
    IPortEditor.Promiscuous
    IPortEditor.DisplayName
    IPortEditor.ToolTip
    IPortEditor.MemberName
    IPortEditor.RootName
    IPortEditor.DataBind
    IPortEditor.IsInputSlot
    IPortEditor.IsOutputSlot
    IPortEditor.PortDirection
    IPortEditor.FieldRW
    IPortEditor.ValueType
    IPortEditor.AcceptsConnections
    IPortEditor.Owner
    IPortEditor.Descriptor
    IPortEditor.ChildPorts
    IPortEditor.IsChildPort
    IPortEditor.SignalDestroy()
    IPortEditor.PortValueChange()
    IPortEditor.RegisterPortEvent()
    IPortEditor.GetPortID()
    IPortEditor.IsFieldAllowingEditor(VisualElement)
    IPortEditor.IsCompatibleWithSlotType(Type)
    IPortEditor.IsCompatibleWith(Port, Port, IPortEditor)
    IPortEditor.DefaultRefreshEditor(IPortEditor, VisualElement, Boolean)
    IPortEditor.ContainsTypeDefinition(Type)
    Namespace: Mechatronics.SystemGraph
    Syntax
    [Serializable]
    [InitializeOnLoad]
    public class PortFloatEditor : PortEditor<PortType<float>>

    Constructors

    PortFloatEditor(INodeEditor, String, String, String, Object, PortDirection, FieldExtra, Boolean)

    Initializes a new instance of the PortFloatEditor class.

    Declaration
    public PortFloatEditor(INodeEditor owner, string memberName, string displayName, string tooltip, object dataBind, PortDirection portDirection, FieldExtra fieldRW, bool promiscuous = false)
    Parameters
    Type Name Description
    INodeEditor owner

    The owner.

    String memberName

    Name of the member.

    String displayName

    The display name.

    String tooltip

    The tooltip.

    Object dataBind

    The data bind.

    PortDirection portDirection

    The port direction.

    FieldExtra fieldRW

    The field extra settings.

    Boolean promiscuous

    if set to true [promiscuous].

    Methods

    HandleCreate(IPortEditor)

    Handles the creation.

    Declaration
    public static void HandleCreate(IPortEditor self)
    Parameters
    Type Name Description
    IPortEditor self

    This instance.

    HandleRefreshEditor(IPortEditor, VisualElement, Boolean)

    Handles the refresh of the editor.

    Declaration
    public static bool HandleRefreshEditor(IPortEditor self, VisualElement port, bool forceHide)
    Parameters
    Type Name Description
    IPortEditor self

    This instance.

    VisualElement port

    The port.

    Boolean forceHide

    if set to true [force hide].

    Returns
    Type Description
    Boolean

    true if editor refreshed, false otherwise.

    HandleSpawnEditor(IPortEditor, VisualElement)

    Handles the spawn of the editor.

    Declaration
    public static bool HandleSpawnEditor(IPortEditor self, VisualElement port)
    Parameters
    Type Name Description
    IPortEditor self

    This instance.

    VisualElement port

    The port.

    Returns
    Type Description
    Boolean

    true if editor spawned, false otherwise.

    See Also

    PortEditor<T>
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, October 18, 2022
    Terms of use