The '''UVAtlasAnimator''' component is used primarily to drive texture animations on [[material]]s like GIFs. It can also be used as a sprite sheet to animate things like 2D mouths.
<!--T:2-->
<!--T:2-->
Line 17:
Line 17:
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Attach to a slot and provide the component with the Scale and Offset fields of any [[Material]]. Then, set the material's image to a sprite sheet of a set of animation frames. Then provide a [[Component:AtlasInfo]] with the proper data. Finally, use a [[Component:TimeIntDriver]] to drive <code>Frame</code> to animate always, or set/drive <code>Frame</code> to the frame on the sheet you want in some other way like [[ProtoFlux]].
The UVAtlasAnimator component is used primarily to drive texture animations on materials like GIFs. It can also be used as a sprite sheet to animate things like 2D mouths.
Which frame of the atlas the texture scale and offset should be driven to
Usage
Attach to a slot and provide the component with the Scale and Offset fields of any Material. Then, set the material's image to a sprite sheet of a set of animation frames. Then provide a Component:AtlasInfo with the proper data. Finally, use a Component:TimeIntDriver to drive Frame to animate always, or set/drive Frame to the frame on the sheet you want in some other way like ProtoFlux.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.