playMaker

Author Topic: Quick way to assign component variables  (Read 5592 times)

Adamantius

  • Playmaker Newbie
  • *
  • Posts: 6
Quick way to assign component variables
« 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

LogLady

  • Full Member
  • ***
  • Posts: 150
Re: Quick way to assign component variables
« Reply #1 on: March 23, 2016, 06:51:26 PM »
It's pretty new to me too. Thanks for sharing!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Quick way to assign component variables
« Reply #2 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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Quick way to assign component variables
« Reply #3 on: August 29, 2017, 03:47:25 AM »
Hi,
Cool!! i did not know yet that this was possible ^^