playMaker

Author Topic: Get owning GameObject from component  (Read 1782 times)

thatnzguy

  • Playmaker Newbie
  • *
  • Posts: 43
Get owning GameObject from component
« on: June 30, 2015, 04:40:48 PM »
I have a custom action that returns a component on a gameobject, is it possible to get the GameObject from the component, within playmaker ?

I've tried Get Property, but there appears to be no Owner or GameObject property on the component

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get owning GameObject from component
« Reply #1 on: July 02, 2015, 08:56:37 AM »
Hi,

 there is an action "Get Owner" that does just that. youc an study the code itself to see about the api call if you want to create your own action or a component using this PlayMaker feature.

Bye,

 Jean