Results 1 to 20 of 3564

Thread: (SSGX Origins) Let's make a Wipeout game! This time for real!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Join Date
    Apr 2010
    Posts
    1,529

    Default

    You're not following my line of thought... And you can't animate UVs in Unity's default animator, I've been reading about that... It's just a goddamn small script... You need save it and apply to the object that you want the TEXTURES (not the object) to move. I'm also trying to find a glow shader...
    Code:
    var scrollSpeed :float = 0.5; 
    var u : boolean = false; 
    var v : boolean = false; 
    
    function Update () { 
    var offset : float = Time.time * scrollSpeed % 1;
     if (u == true && v == true) 
    { 
    renderer.material.SetTextureOffset ("_MainTex", Vector2(offset,offset)); 
    } 
    else if (u == true) 
    { 
    renderer.material.SetTextureOffset ("_MainTex", Vector2(offset,0)); 
    } 
    else if (v == true) 
    { 
    renderer.material.SetTextureOffset ("_MainTex", Vector2(0,offset)); 
    } 
    
    
    }
    It's working! Cassandra now has a moving sea! The only bad thing is that you have to stop to see it! Eheh
    Last edited by Xpand; 3rd March 2012 at 07:14 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •