TextureMove
Summary
This function will allow you to control the texture on a given asset and cause it to shift or move in a certain way to simulate a rolling surface effect.
Parameters
Target
Type: Text Default: None
Specifies the name or ARDI ID of the asset containing the texture you wish to move. Make sure to include the respective asset path up to that asset that includes the texture. If using an asset ID, begin the target with the '#' character.
Name
Type: Text Default: _MainTex
This parameter specifies the name of the texture shader to modify.
Speed
Type: Float Default: 1
This parameter lets you specify a speed in which the texture will move. A higher value will increase the speed.
Direction
Type XY Coordinates Default: 1,0
This parameter lets you specify a pair of normalized XY Coordinates which will indicate the direction to move the texture. The direction is assigned as values of -1 to 1 as either the X or Y value respectively.
For example: A value of -1,1 will cause the texture to scroll left on the X plane and up on the Y plane for a total direction of diagonally left and up.
Examples
<texturemove Target="SomeObject" Speed="0.5" />
This will find the asset named SomeObject and make its texture scroll to the left at a speed of 0.5.
<texturemove Target="SomeObject" Speed="1" Direction="0,1"/>
This will find the asset named SomeObject and cause its texture scroll upwards at a speed of 1.