Corgi Engine v9.3
|
Use this class on a sprite or mesh to have its texture pan according to the specified speed You can also force a sorting layer name More...
Public Attributes | |
bool | TextureShouldPan = true |
whether or not this texture should pan More... | |
Vector2 | Speed = new Vector2(10,10) |
the speed at which the texture pans More... | |
string | SortingLayerName = "Above" |
the name of the sorting layer to render the texture at More... | |
string | MaterialPropertyName = "_MainTex_ST" |
the property name, for example "_MainTex" More... | |
int | MaterialIndex = 0 |
the index of the material More... | |
Protected Member Functions | |
virtual void | Start () |
On start, grabs the renderer and/or raw image More... | |
virtual void | Update () |
On update, moves the texture around according to the specified speed More... | |
Protected Attributes | |
Renderer | _renderer |
Vector4 | _position = Vector4.one |
Vector4 | _speed |
MaterialPropertyBlock | _propertyBlock |
Use this class on a sprite or mesh to have its texture pan according to the specified speed You can also force a sorting layer name
|
protectedvirtual |
On start, grabs the renderer and/or raw image
|
protectedvirtual |
On update, moves the texture around according to the specified speed
|
protected |
|
protected |
|
protected |
|
protected |
int MoreMountains.Tools.MMPanningTexture.MaterialIndex = 0 |
the index of the material
string MoreMountains.Tools.MMPanningTexture.MaterialPropertyName = "_MainTex_ST" |
the property name, for example "_MainTex"
string MoreMountains.Tools.MMPanningTexture.SortingLayerName = "Above" |
the name of the sorting layer to render the texture at
Vector2 MoreMountains.Tools.MMPanningTexture.Speed = new Vector2(10,10) |
the speed at which the texture pans
bool MoreMountains.Tools.MMPanningTexture.TextureShouldPan = true |
whether or not this texture should pan