📜  draw ray gizmos - 任何代码示例

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

代码示例1
void OnDrawGizmosSelected()
    {
        Gizmos.color = Color.red;
        Vector3 direction = transform.TransformDirection(Vector3.forward) * 5;
        Gizmos.DrawRay(transform.position, direction);
    }