playMaker

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

christougher

  • Playmaker Newbie
  • *
  • Posts: 36
    • View Profile
Array of components on 1 GO?[SOLVED]
« on: May 09, 2016, 09:34:20 PM »
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 11, 2016, 11:16:30 PM by jeanfabre »

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • View Profile
    • Online Playmaker Courses
Re: Array of components on 1 GO?
« Reply #1 on: May 09, 2016, 11:46:27 PM »
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
    • View Profile
Re: Array of components on 1 GO?
« Reply #2 on: May 10, 2016, 12: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
    • View Profile
    • Online Playmaker Courses
Re: Array of components on 1 GO?
« Reply #3 on: May 10, 2016, 04: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, 04: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
    • View Profile
Re: Array of components on 1 GO?
« Reply #4 on: May 11, 2016, 08: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
    • View Profile
    • Online Playmaker Courses
Re: Array of components on 1 GO?
« Reply #5 on: May 11, 2016, 09:32:11 PM »
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