摘要:
示例: public class Test { public int tInt; public bool tBool; } var t = new Test(); Console.WriteLine(t.tInt) ///打印 tInt public static string GetFieldNa 阅读全文
摘要:
DOTweenEditorPreview.PrepareTweenForPreview(tar.GetTween()); DOTweenEditorPreview.Start(); 以Test脚本为例: public class UTest : MonoBehaviour { public Twee 阅读全文
摘要:
1、Inspector面板用代码控制Lock 1 Type t = typeof( UnityEditor.EditorWindow ).Assembly.GetType("UnityEditor.InspectorWindow"); 2 var window = UnityEditor.Edito 阅读全文
摘要:
1 public Slider slider; 2 public Image bg; 3 const int W = 256; 4 const int H = 256; 5 void Start () { 6 var hueTex = new Texture2D(256, 256); 7 var color = Color.red; 8 ... 阅读全文