Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Mesh

Represents a mesh on an actor

Hierarchy

Implements

Index

Accessors

animationData

boundingBoxCenter

  • get boundingBoxCenter(): Vector3
  • The center of the axis-aligned box that exactly contains the mesh

    inheritdoc

    Returns Vector3

boundingBoxDimensions

  • get boundingBoxDimensions(): Vector3
  • The size of the axis-aligned box that exactly contains the mesh

    inheritdoc

    Returns Vector3

created

  • get created(): Promise<void>

id

  • The unique id of this asset. Use this to reference this asset in actors, etc.

    inheritdoc

    Returns Guid

material

mesh

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

    inheritdoc

    Returns Mesh

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

primitiveDefinition

  • get primitiveDefinition(): { dimensions?: Partial<Vector3Like>; shape: Sphere; uSegments?: number; vSegments?: number } | { dimensions?: Partial<Vector3Like>; shape: Box } | { dimensions?: Partial<Vector3Like>; shape: Capsule; uSegments?: number; vSegments?: number } | { dimensions?: Partial<Vector3Like>; shape: Cylinder; uSegments?: number } | { dimensions?: Partial<Vector3Like>; shape: Plane; uSegments?: number; vSegments?: number }
  • If this mesh is a primitive, the primitive's description

    inheritdoc

    Returns { dimensions?: Partial<Vector3Like>; shape: Sphere; uSegments?: number; vSegments?: number } | { dimensions?: Partial<Vector3Like>; shape: Box } | { dimensions?: Partial<Vector3Like>; shape: Capsule; uSegments?: number; vSegments?: number } | { dimensions?: Partial<Vector3Like>; shape: Cylinder; uSegments?: number } | { dimensions?: Partial<Vector3Like>; shape: Plane; uSegments?: number; vSegments?: number }

sound

source

texture

triangleCount

  • get triangleCount(): number

vertexCount

  • get vertexCount(): number

Methods

copy