MMFeedbacks  v1.6
Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MoreMountains.Tools.PanningTexture Class Reference

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...

Inheritance diagram for MoreMountains.Tools.PanningTexture:

Public Attributes

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...
 

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

RawImage _rawImage
 
Renderer _renderer
 
Vector2 _position = Vector2.zero
 

Detailed Description

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

Member Function Documentation

◆ Start()

virtual void MoreMountains.Tools.PanningTexture.Start ( )
protectedvirtual

On start, grabs the renderer and/or raw image

◆ Update()

virtual void MoreMountains.Tools.PanningTexture.Update ( )
protectedvirtual

On update, moves the texture around according to the specified speed

Member Data Documentation

◆ _position

Vector2 MoreMountains.Tools.PanningTexture._position = Vector2.zero
protected

◆ _rawImage

RawImage MoreMountains.Tools.PanningTexture._rawImage
protected

◆ _renderer

Renderer MoreMountains.Tools.PanningTexture._renderer
protected

◆ SortingLayerName

string MoreMountains.Tools.PanningTexture.SortingLayerName = "Above"

the name of the sorting layer to render the texture at

◆ Speed

Vector2 MoreMountains.Tools.PanningTexture.Speed = new Vector2(10,10)

the speed at which the texture pans


The documentation for this class was generated from the following file: