📜  unity raycast 除一层之外的所有层 - C# 代码示例
📅  最后修改于: 2022-03-11 14:48:41.660000             🧑  作者: Mango
代码示例1
RaycastHit hit = Physics2D.Raycast(position, direction,
range, ~(1 << LayerMask.NameToLayer("Player"))))