class UVAnimator
package away3d.animators
extends AnimatorBase › NamedAssetBase
implements IAnimator
Available on all platforms
Provides an interface for assigning uv-based animation data sets to mesh-based entity objects and controlling the various available states of animation through an interative playhead that can be automatically updated or manually triggered.
Constructor
new(uvAnimationSet:UVAnimationSet)
Creates a new UVAnimator object.
Parameters:
uvAnimationSet | The animation data set containing the uv animations used by the animator. |
|---|
Variables
Methods
setRenderState(stage3DProxy:Stage3DProxy, renderable:IRenderable, vertexConstantOffset:Int, vertexStreamOffset:Int, camera:Camera3D):Void
@inheritDoc
setTranslateIncrease(u:Float, v:Float):Void
if autoTranslate = true, animation is translated automatically each update with the u and v values. Note if value are integers, no visible update will be performed. Values are expected to be in 0-1 range.
testGPUCompatibility(pass:MaterialPassBase):Void
Verifies if the animation will be used on cpu. Needs to be true for all passes for a material to be able to use it on gpu. Needs to be called if gpu code is potentially required.