Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: 2501 on October 01, 2018, 10:28:37 AM

Title: Set Object Value - regarding the sprite renderer
Post by: 2501 on October 01, 2018, 10:28:37 AM
Hi!

Shouldn't I be able to use Set Object Value to load a GAME OBJECT VARIABLE into an OBJECT VARIABLE? I can do it with drag and drop from the hierarchy, but even then, when I try to use a game object variable instead, I can only pick an object variable.

Of course, I might be on the wrong track anyway - so here's what I'm trying to do: I want to check if the sprite renderer of a game object inside a list is active or not. I can't just use check visibility, because some of the objects are outside the cameras view. Any other way?


thanks,

J.
Title: Re: Set Object Value - regarding the sprite renderer
Post by: djaydino on October 02, 2018, 02:21:40 AM
Hi.
You can use get component to get the component you need to check.

Then i made a custom action to check if active called : ComponentIsActive

you can get it on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)
Title: Re: Set Object Value - regarding the sprite renderer
Post by: 2501 on October 02, 2018, 04:01:57 AM
Thank you!