- Home /
This question was
closed Mar 23, 2017 at 09:12 PM by
ZachRoman121 for the following reason:
Other
Question by
ZachRoman121 · Mar 22, 2017 at 07:22 PM ·
raycastraycastinglayerslayerraycasts
Strange 'Glitch' while trying to apply the built-in layer "Ignore Raycast" via code
Hello! I am trying to use the "Ignore Raycast" Layer. But. When i try to apply it using the following code:
gameObject.layer = LayerMask.NameToLayer("Ignore Raycast");
It doesn't work. and even when i try to apply the layer in the unity dropdown menu. It doesn't work anymore. So i have to restart unity for it to work again. I have no clue why it's not working
Comment