Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: joduffy on October 24, 2014, 07:53:25 PM
-
Hi Guys,
I am trying to copy what Jean did with NGUI proxy but make a playmaker proxy for ThreeGear.
But I get the following error:
get_enabled can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
I was also getting null errors when moving one variable to a class variable and not a method.
The normal C# code works fine so no idea whats going on.
I am trying to attach the scripts but the forum wont let me. Says to contact server administrator.
Here is a link to the scripts from box.com:
https://app.box.com/s/9a8ftm0x8uywsb3dmy2i (https://app.box.com/s/9a8ftm0x8uywsb3dmy2i)
-
Hi,
Can you share the code?
Also, I am working on a similar setup for the new Unity UI system and it will be a LOT more intuitive and powerful, I woudl encourage you go that way if you are starting on this.
Are you part of the beta? else pm me and I'll share what I have.
Bye,
Jean
-
Just sent you a message just now.
The code is available on this link from the first post:
https://app.box.com/s/9a8ftm0x8uywsb3dmy2i (https://app.box.com/s/9a8ftm0x8uywsb3dmy2i)
-
Well,
It let me add the cs files this time. Didn't yesterday.
Thanks for the help Jean.
-
Hi,
Thanks for this!
It would be good if you could make it as a package, it will be a lot more convenient for users.
Bye,
Jean