原创 EditorWindow 類
EditorWindow類,繼承 ScriptableObject,用於創建一個編輯器窗口,通常用 MenuItem 打開編輯器窗口 1、Static Properties 靜態屬性 說明 focusedWindow
原创 Shader 編輯器
Amplify Shader(代碼完整) Unity Technology 工程師寫的 SSE 編輯器(2011年開始,最後針對unity5.4更新) 介紹頁面 https://github.com/stramit?tab=o
原创 AnimatorStateMachine
重點 —— (0)狀態機與子狀態機的切換,狀態之間的切換 (1)狀態調用的切換 AnimatorStateTransition、狀態機調用的切換 AnimatorTransition (2)添加狀態的先後順序,決定了該狀態機
原创 如何在Scene中繪製工具
3種在Scene視圖中繪製工具的方法 Gizmos類 (UnityEngine命名空間) —— MonoBehaviour子類的 OnDrawGizmos、OnDrawGizmosSelected Handles類(
原创 貼圖與材質相關類
未完待續。。。。。。 也可以看看淺墨的那篇 real time rendering總結, 這裏寫的是貼圖相關類,但是貼圖的相關技術並不侷限於此,例如視差貼圖、法線貼圖 等,貼圖alpha值與alpha測試等 貼圖和材質 Textu
原创 Time 類
只有一些靜態屬性 用於截圖 captureFramerate —— 縮短遊戲回放時間,以允許在幀之間保存截圖 幀時間 deltaTime —— 上一幀所花的時間(秒)(只讀) smoothDeltaTime —— A sm
原创 GUI 和 GUILayout 的對比
靜態屬性 GUI GUILayout backgroundColor 無靜態屬性 changed color contentColor depth enabled matrix
原创 Editor 類
繼承這個 Editor 類,可以自定義Inspector、Preview、OnSceneGUI 常用於 自定義組件、資源的 Inspector 文檔鏈接 https://docs.unity3d.com/ScriptRefere
原创 IMGUI相關的幾個類
GUI —— 需要指定 Rect 繪製 GUI GUILayout —— 自動佈局繪製 GUI GUIContent —— what to render GUIStyle —— how to render GUIElement
原创 Animation 組件
Animation概述 Animation 組件,Animation類 //測試的結果是: //1、特別注意 XXQueue 這樣的函數,如果遇到循環播放的動畫 WrapMode.Loop , 因爲默認情況 QueueMod
原创 EditorGUI 和 EditorGUILayout 對比
靜態屬性 EditorGUI EditorGUILayout actionKey x indentLevel x showMixedValue x 靜態方法 EditorGUI EditorGUILa
原创 UGUI 第一篇
UGUI ,一直都是沒仔細看看,這裏至少列出需要去學的東西。 using UnityEngine.UI; using UnityEngine.Events; using UnityEngine.EventSystems; 1、Ca
原创 擴展編輯器的幾個回調函數
Editor 類(Inspector、Preview、Scene) public class Editor : ScriptableObject{ } 注意繼承 Editor的類,一般在類聲明之前還有一句 [CustomEdit
原创 zts文章目錄
1、是什麼 ? 2、有什麼用 ? 3、如何用 ? API 總覽 UnityEngine API 大綱 (一) https://blog.csdn.net/douniwan007009/article/d
原创 unittest
文章目錄1、關於unittest的4個重要概念2、關於 TestCase3、重寫TestCase幾個特殊的方法4、構建測試集 TestSuite4.14.24.34.45、運行自動化測試5.1 單個文件的測試用例5.2 構造測試集,然