unity 显示场景所有collider信息

https://ultromanthetacoman.wordpress.com/2018/02/23/draw-unselected-colliders-in-unity/

https://forum.unity.com/threads/show-all-colliders-in-editor-solved.60352/

 

1. 2d在Edit > Project Settings > Physics 2D > Gizmos > Always Show Colliders

2.Physics Debug

3.读取gameobject中collider com,使用OnDrawGizmos自行绘制

posted @ 2022-08-08 17:51  sun_dust_shadow  阅读(530)  评论(0编辑  收藏  举报