Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

"Fun With Lasers" Trouble

Discussion in 'Scripting' started by TGIGG51, Jun 30, 2015.

  1. TGIGG51

    TGIGG51

    Joined:
    Apr 29, 2015
    Posts:
    2
    I just started messing around with Unity and I've been going through the tutorials to learn how to make games. I've recently ran into a problem where in the "Fun with Lasers" tutorial; I can't get mainTextureOffset to work. This is the line of code I'm using for it, but the rotation isn't happening when I run the scene. I really want to know how this feature works since it looks very cool. I've looked on the internet and couldn't really find anything that helps that much. Thanks in advance - Mike

    mainTextureOffset: new Vector2(0, Time.time);
     
  2. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697