playMaker

Author Topic: uGUI Null Reference errors?  (Read 1388 times)

Firgof

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
uGUI Null Reference errors?
« on: April 05, 2015, 11:57:16 AM »
Not sure where to put this.  I'm trying to make a mouse-driven interaction system for 2D mode in Unity and put together this system to deal with it.  The confusing part is - the things it's complaining about should never be the case as far as I can figure.  All the systems set their GameObject variable on start and that GameObject is always there on start.

Is this a logic error somehow on my end or a bug in the uGUI scripts?

Error 1 (happens twice on start)
Error Loading Action: Ritual : ExpensiveInteraction : State 2 : HutongGames.PlayMaker.Actions.uGuiSetText : text

Error 2 (happens immediately after Error 1)
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
  at System.Collections.Generic.List`1[HutongGames.PlayMaker.FsmString].get_Item (Int32 index) [0x0000c] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/List.cs:633
  at HutongGames.PlayMaker.ActionData.GetFsmString (Int32 paramIndex) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.ActionData.LoadActionField (System.Object obj, System.Reflection.FieldInfo field, Int32 paramIndex) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.ActionData.CreateAction (HutongGames.PlayMaker.FsmState state, Int32 actionIndex) [0x00000] in <filename unknown>:0


Error 3 (constantly occurs)
NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayerMaker.Actions.uGuiSetText.DoSetTextValue() (at Assets/PlayMaker Custom Actions/uGui/uGuiSetText.cs:71)


Error 4 (occurs on mouse-over)
Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.uGuiSetText.DoSetTextValue () (at Assets/PlayMaker Custom Actions/uGui/uGuiSetText.cs:71)


The PlayMaker systems I'm using:
http://www.filehosting.org/file/details/480515/Prefabs.zip

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14703
  • Official Playmaker Support
    • View Profile
Re: uGUI Null Reference errors?
« Reply #1 on: April 14, 2015, 11:36:08 AM »
Hi,

 What version of Unity are you using?

zipping assets do not work properly. Please make a package using Unity.

 Is it hapenning in editor? what platform are you targeting?

 
Bye,

 Jean