摘要:
# 第1种写法: Vector3.Slerp(v1, v2, percent) using UnityEngine; public class SmoothSetDirection : MonoBehaviour { public Transform tf1; public Transform tf 阅读全文
摘要:
# #if UNITY_EDITOR using UnityEditor; using UnityEngine; public class GizmosDrawAxis : MonoBehaviour { public Color color = Color.yellow; public bool 阅读全文
摘要:
和SphereBoundsHandle的主要区别是这边有radius, height, heightAxis三个参数,没有size参数,其他基本一致 using UnityEditor; using UnityEditor.IMGUI.Controls; using UnityEngine; pub 阅读全文
摘要:
# 和SphereBoundsHandle的主要区别是radius和size参数,其他基本一致 using UnityEditor; using UnityEditor.IMGUI.Controls; using UnityEngine; public class TestWindow : Edit 阅读全文
摘要:
# Transform的默认编辑器类名不叫TransformEditor,而是叫TransformInspector。除了这个,其他基本和CustomRectTransformEditor类似 #if UNITY_EDITOR using System.Collections.Generic; us 阅读全文
摘要:
# public class ExportNavMesh { [MenuItem("Tool/Export NavMesh")] public static void Export() { var navMeshTriangulation = NavMesh.CalculateTriangulati 阅读全文