标签:vector sed cto func mat off cts eof set
// Scroll main texture based on time var scrollSpeed = -0.5; // This must be set to override a bug where Render Order // of the tunnel objects is lost when SetTextureOffset is used var queue = 0; private var offset = 0.0; function Update () { offset = Time.time * scrollSpeed; renderer.material.SetTextureOffset (“_MainTex”, Vector2(offset,0)); renderer.material.renderQueue = queue; }
标签:vector sed cto func mat off cts eof set
原文地址:http://www.cnblogs.com/yangmingyu/p/6928215.html