playMaker

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

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • View Profile
    • Online Playmaker Courses
Displaying Lists in Playmaker Editor
« on: July 09, 2013, 10:09:44 PM »
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 09, 2013, 10:12:13 PM 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: 14684
  • Official Playmaker Support
    • View Profile
Re: Displaying Lists in Playmaker Editor
« Reply #1 on: July 10, 2013, 03: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
    • View Profile
    • Online Playmaker Courses
Re: Displaying Lists in Playmaker Editor
« Reply #2 on: July 12, 2013, 11:34:07 PM »
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: 14684
  • Official Playmaker Support
    • View Profile
Re: Displaying Lists in Playmaker Editor
« Reply #3 on: July 14, 2013, 11:10:40 PM »
Hi,

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

bye,

 Jean