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

BurgZerg Arcade hickup

Discussion in 'Scripting' started by CrimiClown, Jan 30, 2015.

  1. CrimiClown

    CrimiClown

    Joined:
    Jan 23, 2015
    Posts:
    6
    I made this script from video tutorial, i can't solve this error.

    "Assets/Scripts/Character Classes/ModifiedStat.cs(36,58): error CS1061: Type `ModifyingAttribute' does not contain a definition for `Name' and no extension method `Name' of type `ModifyingAttribute' could be found (are you missing a using directive or an assembly reference?)"

    Please point at what is wrong thanks.
    http://pastebin.com/ParwDscL

    The error takes me to line 35 and shows me Name in red (he does not recognize)
     
  2. Strategos

    Strategos

    Joined:
    Aug 24, 2012
    Posts:
    255
    ModifyingAttribute has no name member variable

    Either add the variable to the class or comment out the Debug line referencing it.

    Check BurgZergs later tutorials for the same code see if it is fixed later on ?
     
    CrimiClown likes this.
  3. Thomas-Reolon

    Thomas-Reolon

    Joined:
    Jan 17, 2015
    Posts:
    6
  4. CrimiClown

    CrimiClown

    Joined:
    Jan 23, 2015
    Posts:
    6
    This fixed it thanks, i commented it out //
     
  5. Nubz

    Nubz

    Joined:
    Sep 22, 2012
    Posts:
    553
    Also remember a lot of the stuff in that tutorial was before 3.5 even.