在Unity Shader中會經(jīng)常在SubShader中使用Tags锈锤,我們來看下其中的RenderType 我們來看下官方文檔的說明 Rende...
做UI的時候缓待,序列化的屬性,代碼寫好后谅年,每次都需要手動拖動相應(yīng)的GameObject到Inspector上蹈集。通過下面的方法,我們可以實現(xiàn)自動賦值...
編輯器中息尺,編輯不同的場景需要在Project 窗口中去查找進行切換携兵,比較麻煩。通過下面的腳本搂誉,可以遍歷所有的場景徐紧,在菜單欄顯示出來,方便快速切換...
Unity里UGUI中Text組件可以使用富文本勒葱。其實也可以通過Debug.Log 中使用符富文本 來區(qū)別輸出內(nèi)容浪汪。官方說明文檔 https:...
通過CommandBuffer.IssuePluginCustomTextureUpdate(IntPtr callback, Texture ...
Renderer.sharedMaterialsNote that like all arrays returned by Unity, thi...
public GUIContent(string text, string tooltip); using UnityEngine;using ...
private static Bounds CalculateBounds(Transform go) {Bounds b = new Boun...