📜  unity 2d 光线投射鼠标 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:45.841000             🧑  作者: Mango

代码示例2
Physics2D.Raycast(Vector2 origin, Vector2 direction, float distance = Mathf.Infinity, int layerMask = DefaultRaycastLayers, float minDepth = -Mathf.Infinity, float maxDepth = Mathf.Infinity);