Author Topic: Missing field error  (Read 1261 times)

sicga123

  • Guest
Missing field error
« on: August 09, 2013, 06:59:28 AM »
Hi

I keep getting this missing field error
MissingFieldException: UnityEngine.GameObject.spriteName
I wonder whether there is something I'm not doing that I should be, or has something chnaged in NGUI? Any help would be greatly appreciated.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Missing field error
« Reply #1 on: August 09, 2013, 04:46:29 PM »
Never seen/heard of this.

sicga123

  • Guest
Re: Missing field error
« Reply #2 on: August 10, 2013, 01:48:38 AM »
I think I've sorted this out. I wasn't thinking straight. spriteName is a global variable so I should be referencing the gameobject.thescript.thegloabalvar and I was just referencing gameobject.globalvar.  So that should take care of it.
« Last Edit: August 10, 2013, 03:25:06 AM by sicga123 »