Skip to main content

Interface: MaterialExtPrototype

Patch.MaterialExtPrototype

Represents the prototype for extended Material functionality.

Methods

tween

tween<T>(id?): Tween<T>

Initiates a Tween animation for the material.

Type parameters

NameTypeDescription
Textends MaterialExtPrototype<T>The type of the target.

Parameters

NameTypeDescription
id?stringUnique identifier. If you start a new tween, the old one with the same id (if specified) will be stopped.

Returns

Tween<T>

A Tween instance for further configuration.

Defined in

src/patch/Material.ts:14