本文是对Unity3D圣典关于Layer的文章:http://game.ceeger.com/Components/Layers.html作一些说明。
Layers are most commonly used by Cameras to render only a part of the scene, and by Lights to illuminate only parts of the scene. But they can also used by raycasting to selectively ignore colliders or to create collisions.
P.S.:忽略某些碰撞器时射线就会穿过这些碰撞器,若射线不忽略碰撞器,则碰撞器就会被碰撞器挡住。
欢迎各位不吝赐教!