Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

3D Platform Game Tutorial Error

Discussion in 'Editor & General Support' started by Pilgrim, Jul 24, 2012.

  1. Pilgrim

    Pilgrim

    Joined:
    Jul 24, 2012
    Posts:
    1
    I just downloaded the 3D Platform Game Tutorial and even without doing anything, when I hit the Play button, I get a compiler error (something to do with NewMaterial). Is there a fix for this? I would really like to be able to do the tutorial.

    Thanks!
     
  2. Tiles

    Tiles

    Joined:
    Feb 5, 2010
    Posts:
    2,481
    What is the exact error?
     
  3. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    1. Would be nice to know the error.
    2. The 3D Platform Game Tutorial was designed for and lot older version of unity so its normal thats its not behaving like it should.
     
  4. cm

    cm

    Joined:
    Jul 31, 2012
    Posts:
    14
    Assets/Scripts/Camera/FadeoutLineOfSight.js(125,42): BCE0067: There is already a local variable with the name 'newMaterial'.
     
  5. aeronmike

    aeronmike

    Joined:
    Aug 20, 2012
    Posts:
    3
    I'm also getting the same error.

    Yeah. Certainly this is it. However, I'm using C# and I'm not acquainted with JS.

    How would we solve that script?

    Thanks.
     
  6. aeronmike

    aeronmike

    Joined:
    Aug 20, 2012
    Posts:
    3