playMaker

Author Topic: 'PlayMaker Unity 2D' Prefab error [SOLVED]  (Read 2390 times)

cats00eye

  • Playmaker Newbie
  • *
  • Posts: 47
'PlayMaker Unity 2D' Prefab error [SOLVED]
« on: April 07, 2016, 11:00:40 AM »
I've seen a couple of other posts on this same error, but they don't really answer the problem. I'm getting "PlayMakerUnity2DProxy requires the 'PlayMaker Unity 2D' Prefab in the Scene." I have the prefab in the scene. I only have the one scene and the prefab is there in the heirarchy and it's still there when I hit run. I took it out and put it back in again. I'm getting a lot of these errors, and I think they're associated with some objects that are getting created and destroyed, although I'm not aware of anything going wrong with any actual behaviours in the scene because of this.
« Last Edit: April 09, 2016, 01:54:20 PM by Alex Chouls »

cats00eye

  • Playmaker Newbie
  • *
  • Posts: 47
Re: 'PlayMaker Unity 2D' Prefab error
« Reply #1 on: April 09, 2016, 10:56:01 AM »
Anyone?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: 'PlayMaker Unity 2D' Prefab error
« Reply #2 on: April 09, 2016, 11:10:17 AM »
Can you copy/paste the full message in the console, with the call stack.
It's hard to say what's going on without some more details...

cats00eye

  • Playmaker Newbie
  • *
  • Posts: 47
Re: 'PlayMaker Unity 2D' Prefab error
« Reply #3 on: April 09, 2016, 11:47:22 AM »
Quote
PlayMakerUnity2DProxy requires the 'PlayMaker Unity 2D' Prefab in the Scene.
Use the menu 'PlayMaker/Addons/Unity 2D/Components/Add PlayMakerUnity2D to Scene' to correct the situation
UnityEngine.Debug:LogError(Object, Object)
PlayMakerUnity2DProxy:Start() (at Assets/PlayMaker Unity 2D/Components/PlayMakerUnity2DProxy.cs:97)

Is this what you mean by call stack? This error is currently showing 999+ times in the error console.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: 'PlayMaker Unity 2D' Prefab error
« Reply #4 on: April 09, 2016, 12:56:42 PM »
Yeah, that's the call stack. It just lists the sequence of calls that ended up with the error/warning/message. In this case it doesn't tell us a lot.

I'm not able to reproduce the problem here. When I add the PlayMaker Unity 2D prefab to the scene the error goes away.

It's weird that you're getting it 999+ times. You should just get it once when the level starts. Maybe you have a loop that creates the PlayMaker Unity 2D Proxy object many times? Or re-loads the level in a loop?

Also double check that you have the latest version of the Unity2d add-on.
 
Other than that I think Jean will need to take a look at this...

cats00eye

  • Playmaker Newbie
  • *
  • Posts: 47
Re: 'PlayMaker Unity 2D' Prefab error
« Reply #5 on: April 09, 2016, 01:16:32 PM »
I reimported the 2d addon and that seems to have sorted it, touch wood. Thanks for the help.