playMaker

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

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3205
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Set Camera Culling Mask
« on: December 19, 2011, 10:33:55 AM »
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, 05:39:02 AM by jeanfabre »

Ghosu

  • Playmaker Newbie
  • *
  • Posts: 10
    • View Profile
Re: Set Camera Culling Mask
« Reply #1 on: January 04, 2016, 12: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



Hello

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)

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