跳到主要內容

發表文章

[unity]myEchosphere 我的生態球 DevLog Oct. Week 1

新增背包動畫、背包格數量增加 via GIPHY

[C# 筆記] Delegate委派 in unity

表示委派,它是參考到靜態方法或該類別的類別執行個體和執行個體方法 (Instance Method) 的資料結構。 -MSDN的定義 簡言之,就是將 方法 利用 變數 的形式去使用之,就像是function pointer,他可以幫你指向你需要的方法,使用上更加的彈性。 最簡單使用delegate有幾個步驟 : 宣告委派 方法 之型別(包含返回型態、參數) 建立一個委派類別實體 建立相同型別之方法(包含返回型態、參數) 將欲使用之 方法 存入 委派 實體 透過委派實體使用該方法 範例 1 : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 using UnityEngine ; public class Delegate : MonoBehaviour { delegate void delegatefunction ( int num, int num2); delegatefunction delegateFunction; // Start is called before the first frame update void Start () { delegateFunction = A dd ; if (delegateFunction != null ) { delegateFunction( 2 , 3 ); } } void A dd ( int num, int num2) { print(num+num2); } } 輸出 : 第6行: delegate void delegatefunction ( int num, int num2); 宣告委派的型別,delegate關鍵字+方法回傳型態  + 委派名稱 + (自訂參數),格式需與欲呼叫之方法相同...

[Unity] Unite Copenhagen Keynotes Quick Review

RT3D (Real-Time 3D) Performance (DOTS) C# Jobs System Burst Compiler ECS (Entity/Component/System) FPS Netcode Architecture on top of DOTS (2019.03) Client-side prediction Lack Compensation Interpolation New Animation Package Runtime IK No black box Unity Physics on character Controller  Unity physics Ray-casting on shooting Render pipeline based on DOTS component  Hot-patch in editor mode(Almost everything like Shader ,Physics ,Material ,etc.) No matter what's the device you use.  This give direct feedback Hide or delete elements that optimize the performance. Transport Package (Preview) Multi-play Dedicated Server Hosting Matchmaking (Beta) Next month Voice Communication Augmented Reality AR Foundation Unified workflow ARKit ARCore HoloLens 2 magic leap Create Robust AR apps Across AR devices XR Interaction Toolkit (Preview) in 2019.3 Interactivity without coding hand gesture ,etc. MARS (Environment) Unity ...

[Unity]Shader Graph

全像投影特效 顏色切換 特校應用於物件移動中,讓玩家知道之互動物件。 參考自 Brackeys

[Unity]Visual Effects

VFX 

[Unity]我的生態球-開發日誌

新增UI圖示 新增動物販售功能 修正重新遊玩時會暫停bug

[Unity]Echosphere生態球-開發日誌-3

[Unity]MyEchosphere我的生態球-開發日誌-8月         好久沒更新日誌了,開發一段時間都會忘記(懶)要寫部落格紀錄,一方面是為了做學習筆記,紀錄自己學了什麼做了什麼,一方面也是為了宣傳自己的作品,與更多人交流。         其實我本來只是要做養植物的遊戲就好,但體驗過後覺得會動的東西比較有趣一點,所以還是捏了一些動物,新增一些特效 3D建模 哈士奇與羊 發瘋的羊群 新增羊效果,增加狀態識別 死亡、餵食、睡覺 動物設計 移動 本來我動物是用Unity MavMesh agent做,但Bake地圖一直不夠好,可能是因為我的地形不適平面的緣故,因此我打算自己寫個腳本讓物件自己移動。 一直卡在動畫這邊弄不好,所以.....改成用滾的吧XD 既然是用滾得用圓形的樣子比較適合 利用addForce施加力量進行翻滾,並且羊會搜尋距離範圍內的食物,滾到目標物。 後續會開始製作收集要素,動物UI設計