下記コードで、UVスクロールさせようとしたんですが、 PSVitaの場合、スクロールしないのですが、 VitaはUVスクロール出来ない?、それとも "_MainTex"を、違うものに変えれば、スクロール出来るようになるのでしょうか? 以上、よろしくおねがいします。 //--------------------------------------------------------------------- var scrollSpeed : float = 0.1; function Update () { var offset : float = Time.time * scrollSpeed; renderer.material.SetTextureOffset ("_MainTex", Vector2(0,offset)); } //---------------------------------------------------------------------
Just to translate, the question is - Is UV scrolling possible within unity and this is the code that was tried but did not work.
You seem to be missing a new there as in renderer.material.SetTextureOffset ("_MainTex", new Vector2(0,offset));
Yes, it's definitely possible to scroll UV values this way, because I do it. However, it may not work with the fixed-function shader emulation.