PlayMaker Updates & Downloads > Share New Actions
Set Camera Layer Cull Distance
terri:
Here's an action that does this: https://docs.unity3d.com/ScriptReference/Camera-layerCullDistances.html
In other words, you can set each layer to have it's own cull distance, instead of using the camera's far clipping plane. Can be useful for example if you want to not render small objects at a certain distance while still rendering larger ones, for optimization.
jeanfabre:
Hi,
Cool thanks :)
you should put them on the ecosystem, you are doing quite a lot of actions no?
Bye,
Jean
terri:
Hi, yes, I should! I always get sidetracked when I come around to learning how to do so though. Is there somewhere I can read up on the steps required?
600:
Thanks! This is really great!
Tested and it works in Editor (2017.3), but not on build. Also the action seems to not finish, in editor I had to use NextFrameEvent or Wait to leave state.
terri:
Great! I missed it not working on builds, you're right. Not sure where to go from here to fix this though...
Finishing would be an easy fix, but kinda pointless if this doesn't work on builds.
If anyone has an insight it would be appreciated!
edit:
I also noticed that if you set the distance for another layer, it will first reset all the other ones... so there's that too.
Navigation
[0] Message Index
[#] Next page
Go to full version