Playmaker Forum

PlayMaker News => General Discussion => Topic started by: Col. Phil Bilko on November 22, 2015, 05:46:06 AM

Title: How can I: Set GameObject Layer & Children's Layer At Runtime?
Post by: Col. Phil Bilko on November 22, 2015, 05:46:06 AM
Hey All;

In playmaker there is a "SET LAYER" action that sets the layer of a game object but it does not set it's children, is there an action out there that allows me to Set a new layer to the ROOT and ALL of it's CHILDREN at the same time and upon runtime or start of the FSM?

I am really kinda stuck until I can get this sorted as the 3rd party product I am trying to integrate for some reason resets it's children to the "Default" layer even though it's root is the layer I require. The reason for this is to fix a CLIPPING issue by setting it to a layer for a secondary camera.

Any and all help would be amazing. So thanks in advance!


Title: Re: How can I: Set GameObject Layer & Children's Layer At Runtime?
Post by: Col. Phil Bilko on November 22, 2015, 06:00:21 AM
Hello All;

Ok I installed and used Ecosystem and found "Set Layer Recursive" and that does the trick! Sorry for the post as I did not know about Ecosystem what an awesome little gem this plug in is!

So yea if anyone else has this issue this little action sorts it out! USE Ecosystem!

Thanks.