Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Texture

Hierarchy

Implements

Index

Constructors

Accessors

Methods

Constructors

constructor

  • INTERNAL USE ONLY. To load a new texture from scratch, use [[AssetManager.loadTexture]]

    Parameters

    Returns Texture

Accessors

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

resolution

  • The pixel dimensions of the loaded texture

    Returns Vector2

source

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

    inheritdoc

    Returns AssetSource

texture

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

    inheritdoc

    Returns TextureLike

uri

  • get uri(): string
  • The URI, if any, this texture was loaded from

    Returns string

wrapU

  • How overflowing UVs are handled horizontally.

    Returns TextureWrapMode

  • How overflowing UVs are handled horizontally.

    Parameters

    Returns void

wrapV

  • How overflowing UVs are handled vertically.

    Returns TextureWrapMode

  • How overflowing UVs are handled vertically.

    Parameters

    Returns void

Methods

copy

  • Parameters

    Returns this