Search Results for

    Show / Hide Table of Contents

    Interface ILine

    Create and Update the lines connecting cubes with potential grouping relationships and those connecting established parents and children.

    Namespace: XRC.Students.SU2023.IN03.Chen
    Assembly: cs.temp.dll.dll
    Syntax
    public interface ILine

    Methods

    InitLine(LineRenderer, Color)

    Create a line with the the line renderer and set this line renderer to the color

    Declaration
    virtual void InitLine(LineRenderer lineRenderer, Color color)
    Parameters
    Type Name Description
    LineRenderer lineRenderer

    The lineRenderer to be initialized with two points and lineWidth

    Color color

    The color to be added on the lineRenderer

    UpdateLine(LineRenderer, Vector3, Vector3)

    Update the line renderer by setting the start and end positions.

    Declaration
    virtual void UpdateLine(LineRenderer lineRenderer, Vector3 startPosition, Vector3 endPosition)
    Parameters
    Type Name Description
    LineRenderer lineRenderer

    The line renderer to be updated.

    Vector3 startPosition

    The start position of the line renderer.

    Vector3 endPosition

    The end position of the line renderer.

    In This Article
    Back to top XR Collaboratory