Setting the pcam's cullingmask layers help #202
Replies: 1 comment 3 replies
-
So setting a Essentially, the So at the minute, you would have to calculate the value and then add or subtract the layer you want to include or exclude respectively from the What I can do, though, is add a similar helper function to the one in the pcam.set_camera_cull_mask(LAYER_NUMBER, true/false) |
Beta Was this translation helpful? Give feedback.
-
Hi,
![Screenshot_6](https://private-user-images.githubusercontent.com/46336071/300621344-70fc0e91-0811-4cf5-8136-140ff3d13e9e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxOTAwMTcsIm5iZiI6MTcxOTE4OTcxNywicGF0aCI6Ii80NjMzNjA3MS8zMDA2MjEzNDQtNzBmYzBlOTEtMDgxMS00Y2Y1LTgxMzYtMTQwZmYzZDEzZTllLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI0VDAwNDE1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYwMTdjOTU0ZDVmODEwMzM3ZDJlNWNlOTZjOGE1MGU4ZTVjOTI5OWQ1ZjM2MGYwYTI3NmI2MWM2MWRiNGE1ZWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.m98OTpj1jmSqy__CUrVtGGdw2LUuy0LSubi3_MTEF7k)
I was trying to turn the cullmask layers 20 & 17 off on the MainCamera
I then tried doing this through script in the player_controller_third_person.gd from the 3DFollowThirdPersonExampleScene which I have built off of, so the scene is set up pretty much identical to that. I set the fov here and that worked fine for the MainCamera3D but I couldn't get the cullmask layers, I wanted to turn off am I trying in the right place? and maybe could you provide an example in code of how I could turn off specific layers. Thank you very much in advance. Love the add-on
Beta Was this translation helpful? Give feedback.
All reactions