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
Afficher le fichier Open project: redbluegames/rb-unity-tools Class Usage Examples

Méthodes publiques

Méthode Description
ShiftTexture ( Vector2 offsetToApply ) : void

Shift the texture by the supplied offset

Private Methods

Méthode Description
Awake ( ) : void
LateUpdate ( ) : void

Ensure this is called last after any other scripts calling ShiftTexture

Method Details

ShiftTexture() public méthode

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