0

Making textures Scroll/ animate textures of background (Sprite)

Seb Woj 10 months ago 0

Hi all
I need to scroll my background sprite background.
i cannot find solution in Bolt
in C# i have found but i dont know how to set things up with nodes:

Thank you all for your time :)

C#
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
public float scrollSpeed = 0.5F;
public Renderer rend;
void Start() {
rend = GetComponent();
}
void Update() {
float offset = Time.time * scrollSpeed;
rend.material.SetTextureOffset("_MainTex", new Vector2(offset, 0));
}
}

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):