playMaker

Author Topic: ThreeGear Playmaker Proxy  (Read 1451 times)

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • View Profile
    • Online Playmaker Courses
ThreeGear Playmaker Proxy
« on: October 24, 2014, 04: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
- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14564
  • Official Playmaker Support
    • View Profile
Re: ThreeGear Playmaker Proxy
« Reply #1 on: October 25, 2014, 09:43:49 AM »
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

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • View Profile
    • Online Playmaker Courses
Re: ThreeGear Playmaker Proxy
« Reply #2 on: October 25, 2014, 03: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

- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • View Profile
    • Online Playmaker Courses
Re: ThreeGear Playmaker Proxy
« Reply #3 on: October 25, 2014, 03:09:10 PM »
Well,

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

Thanks for the help Jean.
- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14564
  • Official Playmaker Support
    • View Profile
Re: ThreeGear Playmaker Proxy
« Reply #4 on: November 06, 2014, 11:03:36 PM »
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