playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Playmaker 1.9.1 Released!
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Camera - Culling mask [SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Camera - Culling mask [SOLVED] (Read 5064 times)
kinetiknz
Junior Playmaker
Posts: 85
Camera - Culling mask [SOLVED]
«
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
«
Last Edit: January 14, 2012, 08:25:09 PM by alexchouls
»
Logged
Alex Chouls
Administrator
Hero Member
Posts: 3987
Official Playmaker Support
Re: Camera - Culling mask
«
Reply #1 on:
December 13, 2011, 04:42:39 PM »
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.
Logged
kinetiknz
Junior Playmaker
Posts: 85
Re: Camera - Culling mask
«
Reply #2 on:
December 13, 2011, 05:22:00 PM »
Thanks Alex,
I'll look into the first option, custom actions are probably beyond my skill at the moment.
Logged
Alex Chouls
Administrator
Hero Member
Posts: 3987
Official Playmaker Support
Re: Camera - Culling mask
«
Reply #3 on:
December 13, 2011, 05:30:19 PM »
If the first option doesn't work for you, let me know and I'll post a SetCameraCullingMask action...
Logged
kinetiknz
Junior Playmaker
Posts: 85
Re: Camera - Culling mask
«
Reply #4 on:
December 13, 2011, 05:31:18 PM »
wow, Ok much appreciated.
Will let you know.
Logged
kinetiknz
Junior Playmaker
Posts: 85
Re: Camera - Culling mask
«
Reply #5 on:
December 18, 2011, 03:59:35 PM »
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
Logged
Alex Chouls
Administrator
Hero Member
Posts: 3987
Official Playmaker Support
Re: Camera - Culling mask
«
Reply #6 on:
December 19, 2011, 12:19:49 PM »
Sure, I'll post it later today.
Logged
Alex Chouls
Administrator
Hero Member
Posts: 3987
Official Playmaker Support
Re: Camera - Culling mask
«
Reply #7 on:
December 19, 2011, 12:34:43 PM »
Posted here:
http://hutonggames.com/playmakerforum/index.php?topic=931.0
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Camera - Culling mask [SOLVED]