Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Cullingmask is not used by the camera

Discussion in 'Editor & General Support' started by Waldfee, Oct 16, 2019.

  1. Waldfee

    Waldfee

    Joined:
    Oct 25, 2017
    Posts:
    4
    Hi guys,
    via culling masks I try to hide or display objects dynamically. Therefore I assign a new layer to the objects at runtime and change the culling masks of the camera.

    All this works perfectly, but the camera ignores the change of the culling masks or the layers, I'm not so sure about that. The camera shows objects that should be hidden and vice versa.

    Is there a workaround for this or is others also aware of this problem?


     
  2. Waldfee

    Waldfee

    Joined:
    Oct 25, 2017
    Posts:
    4
    The moment i posted this... I forgot to change the childrens layers as well... How do I delete a thread? xD