Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Sly on June 03, 2013, 04:44:49 PM

Title: Draw texture on the owner gameobject
Post by: Sly on June 03, 2013, 04:44:49 PM
I don't understand how to draw a texture on the owner.

For this I mean when I trigger my object I want to draw an arrow over it (and not following the screen.) How I can do that?

Can someone help me please?
Title: Re: Draw texture on the owner gameobject
Post by: Lane on June 03, 2013, 05:07:14 PM
Like a decal arrow or are you changing the main texture to one with an arrow?
Title: Re: Draw texture on the owner gameobject
Post by: Alex Chouls on June 03, 2013, 07:58:48 PM
Maybe you're looking for the World to Screen Point action:
https://hutonggames.fogbugz.com/default.asp?W571

This will convert the world position of a GameObject into a screen position that you can use in GUI actions like Draw Texture.

You can use the Get Owner action to get the Game Object that owns the FSM.