Hi, I'm trying to make the texture on a cube scroll to the side and I keep on getting error BCE0077 - idk how good my script is but if you have any alternatives or can find the problems in it then please comment!!! Thanks so much.
var scrollSpeed = 0.90;
var scrollSpeed2 = 0.90;
function Start () {
}
function Update () {
}
function FixedUpdate() {
var offset = Time.time * scrollSpeed;
var offset2 = Time.time * scrollSpeed2;
GetComponent.().material.mainTextureOffset = Vector2;
}
↧