Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Prefab

Hierarchy

Implements

Index

Accessors

Methods

Accessors

actorCount

  • get actorCount(): number
  • The number of actors this prefab contains.

    inheritdoc

    Returns number

id

  • get id(): string
  • The unique id of this asset. Use this to reference this asset in actors, etc.

    inheritdoc

    Returns string

name

  • get name(): string
  • A human-readable string identifying the asset. Not required to be unique, but can be referenced by name if it is.

    inheritdoc

    Returns string

prefab

  • Only populated when this asset is a prefab. An asset will have only one of these types specified.

    inheritdoc

    Returns PrefabLike

source

  • Where this asset came from. Used for loading on late-joining clients.

    inheritdoc

    Returns AssetSource

Methods

copy

  • Parameters

    Returns this