playMaker

Author Topic: Displaying Lists in Playmaker Editor  (Read 2549 times)

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • Online Playmaker Courses
Displaying Lists in Playmaker Editor
« on: July 10, 2013, 01:09:44 AM »
Hi,

I am trying to display a custom list in the playmaker editor window like what happens with the unity3d inspector panel.

But I can't seem to get it to work.

This is the example of the custom list I want to dispay
public List<KinectWrapper.Gestures> DetectGestures;

Here is a photo of what is being displayed in playmaker editor and how it is being displayed in the inspector panel:

« Last Edit: July 10, 2013, 01:12:13 AM by joduffy »
- 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: 15500
  • Official Playmaker Support
Re: Displaying Lists in Playmaker Editor
« Reply #1 on: July 10, 2013, 06:43:55 AM »
Hi,

 one way to do this is to create a custom editor for that class, and build the action interface yourself, then you have total freedom.

 if you want to let playmaker handle the display, it's possible too. I have attached a example using custom class, and a custom inspector on a custom action.

In your case, you'll need to convert the list into an array, then it will be all fine.

bye,

 Jean

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • Online Playmaker Courses
Re: Displaying Lists in Playmaker Editor
« Reply #2 on: July 13, 2013, 02:34:07 AM »
Thanks for the information.

I am getting this error though:

Assets/custom class/Editor/CustomClassActionTestEditor.cs(43,56): error CS0103: The name `VariableEditor' does not exist in the current context

Assets/custom class/Editor/CustomClassActionTestEditor.cs(44,58): error CS0103: The name `VariableEditor' does not exist in the current context

what is VariableEditor

Thanks for all your 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: 15500
  • Official Playmaker Support
Re: Displaying Lists in Playmaker Editor
« Reply #3 on: July 15, 2013, 02:10:40 AM »
Hi,

 You need to update PlayMaker from the asset store, that's all.

bye,

 Jean