playMaker

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

Adamantius

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Quick way to assign component variables
« on: March 23, 2016, 01: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: 125
    • View Profile
Re: Quick way to assign component variables
« Reply #1 on: March 23, 2016, 03:51:26 PM »
It's pretty new to me too. Thanks for sharing!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Quick way to assign component variables
« Reply #2 on: August 29, 2017, 12: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: 2255
    • View Profile
    • jinxtergames
Re: Quick way to assign component variables
« Reply #3 on: August 29, 2017, 12:47:25 AM »
Hi,
Cool!! i did not know yet that this was possible ^^