Playmaker Forum

PlayMaker Help & Tips => PlayMaker Tips & Tricks => Topic started by: Adamantius on March 23, 2016, 04:43:31 AM

Title: Quick way to assign component variables
Post by: Adamantius on March 23, 2016, 04:43:31 AM
In the past when I wanted to grab a component ( example the gameobject's collider ) and put it into an object variable I would first create a Object variable, then select it's object type by scrolling down that uber long list to find the right component, etc.

I found a quicker way actually, you can just drag the component directly from the gameobject over onto the Playmakeer variables tab.

This automatically creates a Object variable with the correct component type. Nice, quick and easy.

If this is common knowledge already apologies, it was a new revelation to me.  ;D
Title: Re: Quick way to assign component variables
Post by: LogLady on March 23, 2016, 06:51:26 PM
It's pretty new to me too. Thanks for sharing!
Title: Re: Quick way to assign component variables
Post by: jeanfabre on August 29, 2017, 03:06:03 AM
Hi,

 yeah, thanks for sharing. So many goodies.. I rarely use it because I prefer using dedicated custom actions which removes the needs for having to save components in variables.

but yeah, it's cool and handy!

 Bye,

 Jean
Title: Re: Quick way to assign component variables
Post by: djaydino on August 29, 2017, 03:47:25 AM
Hi,
Cool!! i did not know yet that this was possible ^^