docs.unity.cn
    Show / Hide Table of Contents

    Class GroupDescriptor

    GroupDescriptor stores the group information attached to SystemGraph assets.

    Inheritance
    Object
    GroupDescriptor
    Namespace: Mechatronics.SystemGraph
    Syntax
    public class GroupDescriptor

    Fields

    nodesInGroup

    The nodes in that group

    Declaration
    public List<NodeDescriptor> nodesInGroup
    Field Value
    Type Description
    List<NodeDescriptor>

    serializedGroup

    The serialized group

    Declaration
    public SerializedGroup serializedGroup
    Field Value
    Type Description
    SerializedGroup

    Methods

    GetPosition()

    Compute rect according to all nodes in the group

    Declaration
    public Rect GetPosition()
    Returns
    Type Description
    Rect

    Rect.

    MovePosition(Single, Single)

    Move position of nodes in the group by x,y

    Declaration
    public void MovePosition(float x, float y)
    Parameters
    Type Name Description
    Single x

    The x position.

    Single y

    The y position.

    SetPosition(Rect)

    Sets the position.

    Declaration
    public void SetPosition(Rect rc)
    Parameters
    Type Name Description
    Rect rc

    The rect position.

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