TexturesModule Module

The TexturesModule class enables images, animation sequences, videos, colors, and other visual artifacts to be combined to form materials.

Usage

const Textures = require('Textures');

Properties

This class exposes no properties.

Methods

MethodDescription

get

get(textureName: string): TextureBase

Returns a texture object, derived from TextureBase, that is specified by textureName. An exception is thrown when the texture isn't found in the project. Possible types are:

  CanvasTexture   ColorTexture   DeepLinkTexture   ExternalTexture   ImageTexture   SequenceTexture

See Also: TextureBase.name.

Classes

ClassDescription

BrushTexture

The CanvasTexture class represents a texture brush.

ColorTexture

The ColorTexture class encapsulates a texture that has a color (including alpha channel).

DeepLinkTexture

The DeepLinkTexture class represents an image texture passed in via the sharing SDK.

ExternalTexture

The ExternalTexture class encapsulates a visual asset that is downloaded over the network.

ImageTexture

The ImageTexture class encapsulates an image that may be used to form materials for rendering in the scene.

SequenceTexture

The SequenceTexture class is a collection of still images that form an animation.

SubTexture

The SubTexture class exposes details of a texture in UV coordinates.

TextureBase

The TextureBase class describes a texture.

Enums

EnumDescription

State

The State enum describes the download state of an ExternalTexture.