Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: 4ppleseed on May 06, 2013, 02:04:50 PM

Title: FALSE statement on Game Object is Visible is broken.
Post by: 4ppleseed on May 06, 2013, 02:04:50 PM
Seems the FALSE statement on Game Object is Visible is broken.

Discussion started here:
http://hutonggames.com/playmakerforum/index.php?topic=3787.0 (http://hutonggames.com/playmakerforum/index.php?topic=3787.0)
Title: Re: FALSE statement on Game Object is Visible is broken.
Post by: Lane on May 06, 2013, 02:21:34 PM
Confirmed.. Weird..

It returns True regardless of visibility status.
Title: Re: FALSE statement on Game Object is Visible is broken.
Post by: jeanfabre on May 07, 2013, 03:57:41 AM
Hi,

 I think the name of this action is confusing. From a technical point of view, a gameobject is considered visible when it's withint he camera visibility, where or not it is visible to your eyes. so you could have a object with a completly transparent material, it will be true still.

 can you define visible in your case? do you expect this to set false when the object is disabled? or when the material is transparent, or without a mesh?

bye,

 Jean
Title: Re: FALSE statement on Game Object is Visible is broken.
Post by: Lane on May 07, 2013, 07:13:08 AM
Well the test I did was create an object and change the rotation speed when it is in/out of the camera's view and regardless if the camera could see it or not it always went into the true state. I tried starting with the camera looking the opposite direction, starting in view, the turning it out of view, etc..

It always returned "true", as if it was visible all the time when the camera clearly could not see it. I couldn't ever get it to return false.
Title: Re: FALSE statement on Game Object is Visible is broken.
Post by: 4ppleseed on May 07, 2013, 08:26:57 AM
Yep, me too. I expect my projectile prefab to destroy itself once out of the view of the camera but it stays alive no matter how far out of the view it goes.
Title: Re: FALSE statement on Game Object is Visible is broken.
Post by: Alex Chouls on May 07, 2013, 03:12:08 PM
Is it visible in the Scene View?

Somewhat annoyingly Unity includes the Scene View camera when checking visibility:
http://docs.unity3d.com/Documentation/ScriptReference/Renderer-isVisible.html

Title: Re: FALSE statement on Game Object is Visible is broken.
Post by: Lane on May 07, 2013, 04:06:04 PM
Hah... Thats kind of funny.

Here's a test scene, works fine if you dont see it in either view.
Title: Re: FALSE statement on Game Object is Visible is broken.
Post by: 4ppleseed on May 08, 2013, 09:22:18 AM
Is it visible in the Scene View?

Somewhat annoyingly Unity includes the Scene View camera when checking visibility:
http://docs.unity3d.com/Documentation/ScriptReference/Renderer-isVisible.html

Oh wow. Haha, I was using the scene view to see if it disappears once out of the camera view!  :o

Thanks of the feedback.