Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: christougher on May 10, 2016, 12:34:20 AM

Title: Array of components on 1 GO?[SOLVED]
Post by: christougher 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.
Title: Re: Array of components on 1 GO?
Post by: joduffy 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?
Title: Re: Array of components on 1 GO?
Post by: christougher on May 10, 2016, 03:30:28 AM
Yes, exactly.  But I don't have array listed as an option on the dropdown list... :-\
Title: Re: Array of components on 1 GO?
Post by: joduffy 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
Title: Re: Array of components on 1 GO?
Post by: christougher 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
Title: Re: Array of components on 1 GO?
Post by: joduffy on May 12, 2016, 12:32:11 AM
sweet.

Glad you got it sorted dude.
Happy playmaker-ing