太菜了

起因:

  1. Gizmos.DrawLine、Debug.DrawLine无法在运行时看到。
  2. 搜索runTimeGizmos,推送了运行时显示控制物体,顺便也看看
  3. 运行时如何显示XYZ轴,及移动、缩放、旋转、撤销等功能。
  4. 说白了跟Unity编辑中一样。

解决思路:

  1. AssetStore搜索,有——花钱。
  2. GitHub搜索,有——真香
  3. 试试看Gizmos内部,TM这又是什么
  4. Unity Run Time Gizmos

效果:

Unity Run Time GizmosUnity Run Time Gizmos

链接:

可运行:https://github.com/HiddenMonk/Unity3DRuntimeTransformGizmo

多少报错跑不起来:https://github.com/Unity-Technologies/giles

还没试:https://github.com/popcron/gizmos

底层:

简单看了一下,如何显示出来?

有的用GL第一个,在TransformGizmo.cs行189

Unity官方用得动态创建mesh,在pb_HandleMesh.cs,pb_SceneEditor.cs行95

 

Unity Run Time Gizmos

 

相关文章:

  • 2021-11-10
  • 2021-08-01
  • 2021-09-06
  • 2022-12-23
  • 2021-06-15
  • 2022-12-23
  • 2021-12-16
  • 2021-07-01
猜你喜欢
  • 2021-10-08
  • 2021-11-05
  • 2021-12-28
  • 2021-04-22
  • 2021-04-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案