【3Dゲームエンジン】Unity 7
■ このスレッドは過去ログ倉庫に格納されています
0817名前は開発中のものです。
2012/01/20(金) 22:39:57.78ID:rJVnXUrausing UnityEngine;
using System.Collections;
public class UVAnimationScript: MonoBehaviour {
public float scrollSpeed = 0.5F;
void Awake ()
{
float offset = Time.time * scrollSpeed;
}
void Update ()
{
renderer.material.SetTextureOffset("_MainTex", new Vector2(offset, 0));
}
}
■ このスレッドは過去ログ倉庫に格納されています