Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: kinetiknz on December 13, 2011, 04:10:45 PM
-
Hey there, Has anyone managed to adjust the camera's Culling set in real-time using Playmaker?
I need to adjust the culling set via GUI buttons, to hide/show sets of elements based on layer.
Thanks for any advice
Matt.S
-
You can use Set Property. Drag the Camera Component into the Target Object field then select the cullingMask Property.
Unfortunately, cullingMask is exposed as an int so you'll have to convert the layer mask yourself...
Alternatively you could make a simple custom action with a LayerMask property to set the Culling Mask.
-
Thanks Alex,
I'll look into the first option, custom actions are probably beyond my skill at the moment.
-
If the first option doesn't work for you, let me know and I'll post a SetCameraCullingMask action...
-
wow, Ok much appreciated.
Will let you know.
-
Hey Alex, I had some trouble getting the first option working as I'd like. Close but no cigar.
If you could post that custom action I would VERY much appreciate it.
Thanks
-
Sure, I'll post it later today.
-
Posted here:
http://hutonggames.com/playmakerforum/index.php?topic=931.0