C# Class RedBlueGames.Tools.TextureShifter

Component that can be added to GameObjects with Renderers to let them offset the texture at runtime.
Inheritance: UnityEngine.MonoBehaviour
Exibir arquivo Open project: redbluegames/rb-unity-tools Class Usage Examples

Public Methods

Method Description
ShiftTexture ( Vector2 offsetToApply ) : void

Shift the texture by the supplied offset

Private Methods

Method Description
Awake ( ) : void
LateUpdate ( ) : void

Ensure this is called last after any other scripts calling ShiftTexture

Method Details

ShiftTexture() public method

Shift the texture by the supplied offset
public ShiftTexture ( Vector2 offsetToApply ) : void
offsetToApply UnityEngine.Vector2 Offset to apply.
return void