Author Topic: Set Camera Culling Mask  (Read 6673 times)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3892
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Set Camera Culling Mask
« on: December 19, 2011, 12:33:55 PM »
Note, you can use Set Property, but since the Culling Mask is an int, it's not very user friendly!

Here's a custom action with a nicer UI. The standard Unity LayerMask editor is not exposed to editor scripts, so this UI works a little differently. The layer mask is an array, so set the number of layers first, then fill in the layers.
« Last Edit: January 26, 2016, 07:39:02 AM by jeanfabre »


  • Playmaker Newbie
  • *
  • Posts: 10
    • View Profile
Re: Set Camera Culling Mask
« Reply #1 on: January 04, 2016, 02:28:37 AM »
UPDATE: SOLVED, reloaded project and reset, still not working. Reloaded again, now it works fine - strange, but who cares as long as it does its job now :D THX


Just what i needed, though it's not working in my project:

cullingMask in camera.cullingMask is highlighted red and i get a compile error (without error log entry) when starting play mode (see attached image)

« Last Edit: January 04, 2016, 02:45:39 AM by Ghosu »