Represents a render component in the PlayCanvas engine.

Hierarchy (view full)

Accessors

  • get type():
        | "asset"
        | "box"
        | "plane"
        | "sphere"
        | "capsule"
        | "cylinder"
        | "cone"
  • Gets the type of the render component.

    Returns
        | "asset"
        | "box"
        | "plane"
        | "sphere"
        | "capsule"
        | "cylinder"
        | "cone"

    The type.

  • set type(value): void
  • Sets the type of the render component.

    Parameters

    • value:
          | "asset"
          | "box"
          | "plane"
          | "sphere"
          | "capsule"
          | "cylinder"
          | "cone"

      The type.

    Returns void