Script API - v1.26.20.20
    Preparing search index...

    Class PrimitiveShapeBeta

    The base class for a text primitive. Represents an object in the world and its base properties.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    attachedTo?: Entity

    The entity this shape is attached to. When set, this shape will copy the root location of the attached entity and the shape's position will be used as an offset.

    This property can't be read in early-execution mode.

    color: RGBA

    The color of the shape.

    This property can't be read in early-execution mode.

    dimension: Dimension

    The dimension the shape is visible within. If the dimension is undefined, it will display in all dimensions.

    This property can't be read in early-execution mode.

    hasDuration: boolean

    Returns true if the shape has a limited time span before being removed.

    This property can't be read in early-execution mode.

    location: Vector3

    The location of the shape.

    This property can't be read in early-execution mode.

    rotation: Vector3

    The rotation of the shape (Euler angles - [Pitch, Yaw, Roll]).

    This property can't be read in early-execution mode.

    scale: number

    The scale of the shape.

    This property can't be read in early-execution mode.

    timeLeft?: number

    The time left (in seconds) until this shape is automatically removed. Returns undefined if the shape does not have a limited life-span.

    This property can't be read in early-execution mode.

    totalTimeLeft?: number

    The total initial time-span (in seconds) until this shape is automatically removed. Returns undefined if the shape does not have a limited life-span.

    This property can't be read in early-execution mode.

    visibleTo: Player[]

    The list of players that this shape will be visible to. If left empty, the shape will be visible to all players.

    This property can't be read in early-execution mode.

    Methods

    • Returns void

      Removes this shape from the world. The shape can be re-added via the PrimitiveShapesManager's addText method.

      This function can't be called in early-execution mode.