playMaker

Author Topic: Array of components on 1 GO?[SOLVED]  (Read 2324 times)

christougher

  • Playmaker Newbie
  • *
  • Posts: 36
Array of components on 1 GO?[SOLVED]
« on: May 10, 2016, 12:34:20 AM »
Is it possible to have a list of components/scripts on one or several gameobjects?  For instance I have a lot of post processing effects on my camera GO that I want to enable only at certain times.  It would be real handy to have the UnityEngine.object variables in a list like I can in a regular Playmaker FSM.
« Last Edit: May 12, 2016, 02:16:30 AM by jeanfabre »

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • Online Playmaker Courses
Re: Array of components on 1 GO?
« Reply #1 on: May 10, 2016, 02:46:27 AM »
Hi Dude,

There is the option to have an array of Unity Objects. Is this what you are after?
- 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

christougher

  • Playmaker Newbie
  • *
  • Posts: 36
Re: Array of components on 1 GO?
« Reply #2 on: May 10, 2016, 03:30:28 AM »
Yes, exactly.  But I don't have array listed as an option on the dropdown list... :-\

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • Online Playmaker Courses
Re: Array of components on 1 GO?
« Reply #3 on: May 10, 2016, 07:41:04 AM »
So you don't have array variables at all?

What version of playmaker do you have?

I have version 1.8

I am using this version
« Last Edit: May 10, 2016, 07:46:21 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

christougher

  • Playmaker Newbie
  • *
  • Posts: 36
Re: Array of components on 1 GO?
« Reply #4 on: May 11, 2016, 11:24:58 PM »
I was on 1.7.8, but updated to the beta and now it's there!

I'm on Unity 5.1.4 for this particular project and thought the beta was only for 5.3+  Thanks!
Chris

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • Online Playmaker Courses
Re: Array of components on 1 GO?
« Reply #5 on: May 12, 2016, 12:32:11 AM »
sweet.

Glad you got it sorted dude.
Happy playmaker-ing
- 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