Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: joduffy on October 24, 2014, 07:53:25 PM

Title: ThreeGear Playmaker Proxy
Post 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:

Quote
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)
Title: Re: ThreeGear Playmaker Proxy
Post by: jeanfabre on October 25, 2014, 12:43:49 PM
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
Title: Re: ThreeGear Playmaker Proxy
Post by: joduffy on October 25, 2014, 06:08:27 PM
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)

Title: Re: ThreeGear Playmaker Proxy
Post by: joduffy on October 25, 2014, 06:09:10 PM
Well,

It let me add the cs files this time. Didn't yesterday.

Thanks for the help Jean.
Title: Re: ThreeGear Playmaker Proxy
Post by: jeanfabre on November 07, 2014, 01:03:36 AM
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