原创 AssetBundle

官方教程 http://unity3d.com/cn/learn/tutorials/topics/scripting/assetbundles-and-assetbundle-manager?playlist=17117 簡介 As

原创 UGUI

Chapter1 處理touch void Update() { if(!Application.isMobilePlatform) { if(Input.GetMouse

原创 Unity筆記 Surface Shader

學習《unity shaders and effects book》的tips。 拿到代碼後就可以開始了,看代碼比看書快很多。 配套代碼csdn下載 Nvidia cg tutorial 預備: Unity 5 的stand shad

原创 Unity svn配置

Unity配置 Editor Settings Version control Mode Visible Meta Files Asset Serialization Mode Force Text 上傳目錄 只2個:Assets

原创 Unity Animator 動畫相關

Animator行爲實驗 環境5.6.5p4 關於trigger的使用: trigger被設爲true後,會被自動設製成false。這裏要注意,設製成false的時機是這個trigger相關的transition被執行。 舉例:tr

原创 VR 開發

開發環境: GearVR 第一次聯接到頭盔應該自動運行setup,如果沒有就要升級android 掛vpn登錄oculus和下載應用 跑其它應用(如Unity VR Samples)需要Oculus Signature File

原创 Unity筆記 Graphics( 光 shader camera mesh )

官方教程圖像部分: http://unity3d.com/learn/tutorials/topics/graphics 第一部分:光 1 光 分成2類:動態光(dynamic)和烘培光(baked) 4種光組件:point、di

原创 Unity筆記 腳本執行順序 life and times

單個腳本生命週期 在網上找了2張圖: 這個不太清楚簡略看看 這個清楚 事件函數說明 1)Awake Start 在生命期只執行一次。多次重置可以放在OnEnable裏處理。 2)FixedUpdate 用於固定頻率更新

原创 C#筆記 使用雜項

預處理 #define DEBUG // 這個要聲明在using關鍵字之前 using System; #if DEBUG #elif DEBUG_IOS #else #endif 繼承MonoBehaviour 繼承Mon

原创 Unity Editor Scripting 2

1 CustomEditor 的例子 using UnityEngine; using System.Collections; public class LevelScript : MonoBehaviour { publi

原创 C#筆記 值類型 引用類型

舉個栗子,來說明一下 用報紙發佈新聞:印有同一新聞的報紙有很多張拷貝,其中自己手中的內容被改動了不會影響別人的,這是值類型。 用網頁URL來發布新聞:服務器改了內容大家看到的都會改變,這是引用類型。 類型不明會出現的問題 以下代碼企圖

原创 Unity筆記 2D ROGUELIKE 實例詳解

這是unity官方的一個視頻教程。比較完整的一個2D小遊戲,共14講。 http://unity3d.com/learn/tutorials/projects/2d-roguelike 這裏整理了一些tips。 遊戲控制一個2D幀動

原创 Unity筆記 Stealth 實例詳解

第一部分 http://unity3d.com/learn/tutorials/projects/stealth-tutorial-4x-only 1 介紹 一個3D項目,初、中級難度 2 添加環境模型、光照貼圖lightmap l

原创 Unity筆記 SPACE SHOOTER 實例詳解

第一部分 準備資源 介紹 一個完整小項目,2D玩法3D資源。 http://unity3d.com/learn/tutorials/projects/space-shooter-tutorial 本文主要是一些tips。 1 建立

原创 Unity筆記 2D Best Practices (2D IK 骨骼動畫 event 換裝 蒙皮 排序)

來自Unite 2014 https://www.youtube.com/watch?v=HM17mAmLd7k 完整項目下載 http://download.csdn.net/detail/fjl2007/8963627 2D Sk