Toggle navigation
Search
思元的開發筆記
Programming
Unity
LeetCode
Golang
Game Demos
Archive
Blog
About
思元的開發筆記
關於 web service, unity, blogger 等軟體工程筆記
×
Search dev.twsiyuan.com
Unity rendering order 整理筆記
自從上次 GameJam 體驗在 Unity 中,使用 SpriteRenderer 可直接調整 Sorting layer 來決定 render 順序後,便一直很好奇其背後實作到底是什麼,為什麼改變一個數值便能調整 sprites 在 render 結果的先後順序,而不...
Read More
王思元
3:12 下午
軟體開發
,
Unity
AWS Beanstalk: 日誌 Logs 推送到 CloudWatch 之設定筆記
參考 Reference 章節的 AWS 文件,紀錄如何將部署 在 AWS Beanstalk 的服務所產生的日誌 (logs),設定 CloudWatch Logs agent 來自動推送至 CloudWatch,而不用每次發生問題得自己花時間去撈 logs……。 ...
Read More
王思元
6:15 下午
服務部署
,
AWS
CentOS 7 環境安裝筆記,GUI/gcc/g++/Code::blocks/Go 完整的 Go/Cgo 開發環境
整理之前在 Linux 建立 Go/Cgo 開發環境的安裝筆記。
Read More
王思元
6:30 下午
Linux
HTTP TimeoutHandler 所踩到的雷與解決方式,需要額外判斷 Request.Context() 的狀態
最近遇到在 HTTP 伺服器壓力測試時遇到棘手的問題,從 nginx logs 發現伺服器回應許多 HTTP 503 service unavailable 的錯誤,一路追蹤最終發現是程式碼實作錯誤,記錄其筆記提醒自己不要忘記這個雷。
Read More
王思元
12:30 上午
軟體開發
,
程式語言
,
Golang
Go build 建置時加入時間 (build time) 與版本號 (git commit id)
因應合作廠商需求,希望我們這邊提供網路服務 (web service) 的執行檔 (executable),能透過某些方法知道其版本號或是建置時間等資訊,以協助其 IT 人員部署 (deployment) 時使用。
Read More
王思元
9:18 下午
軟體開發
,
Golang
,
Linux
較新的文章
較舊的文章
粉絲專頁
本週熱門
網誌存檔
贊助廣告
粉絲專頁
每周熱門
C++ Library callback using C# in Unity and cross thread call
由社團文章討論所做的測試,主要是有人詢問,在外部 C++ library callback 函數中,呼叫 StartCoroutine 而導致錯誤訊息 StartCoroutine can only be called from the main thread。這明顯是一個跨執...
Unity Coroutine 使用筆記
最近有人問為什麼 Nested coroutine 的機制與問題,為什麼會是需要 yield return StartCoroutine(...) ,而不能省略 StartCoroutine ?在久遠的 Unity3.x 時代,印象中得呼叫該函數才能夠正常運作。...
Unity Platformer 2D: Character Movement using Physical
物理與碰撞 想要在 Unity 中使用其物理引擎控制 2D 遊戲物件,Rigidbody2D,這一個組件(Component)是最重要的核心。把 Rigidbody2D 加上 2D 碰撞體(2D Colliders)放在同一個 GameObject 上,即可在遊戲中看到自由落...
Unity5 Editor ReorderableList
ReorderableList 整理使用 Unity ReorderableList 筆記,希望以後有範本可以直接複製貼上,不用每次都要重新找文章,依樣畫葫蘆重做一次。 // Path: /Scripts/ShopMenu.cs using UnityEngine; ...
C# Array operations in Unity
Array 整理一下 C# Array(陣列)的筆記,紀錄對陣列常用的操作。 結論:若需要使用程式對 Array 進行大量的資料操作,請改用 List。 範例都以以下程式碼為基礎,在 Start 撰寫以下的展示程式碼。請注意引用到 UnityEditor,請留意發佈的編譯...
使用 Golang 串接 Google Blogger API,張貼文章與上傳圖片
個人專案需求,建置較容易發佈文章到部落格的流程服務,使用 golang 串接 Google Blogger API,將文章文字以及其圖片上傳到 Blogger 平台。Google 已經在 Github 上發布專為 golang 所準備的 SDK 實作,其中包含管理部落...
Unity AssetBundle Variants 機制研究筆記
最近使用 AssetBundle Variants 機制來打包遊戲專案,紀錄打包遇到的問題以及解決筆記。關於 AssetBnudles 機制可以參考 系列文章 。
Unity Debug Case
這篇起因來自於 Facebook 遊戲開發者社團的 這篇求助文 。 先搞清楚作者在問什麼吧 這是錯誤訊息,導致我無法鍵入 1234 去改變動畫的動作,我應該怎麼排解呢? 錯誤?經過這麼多年寫程式經驗,對於錯誤這關鍵字太敏感了,第一個冒出的想法疑問是「是什麼錯誤?」「有沒...
Golang server + WebSocket protocol + Unity C# client
研究資料傳輸方案,運用在工作專案中可能性的筆記。嘗試使用 Golang 開發伺服器 (Server),經由 WebSocket protocol 與使用 Unity C# 開發的用戶端 (Client) 串接。實作一個的應答伺服器 (Echo server),用戶端傳什麼給伺服...
在 Unity 使用 AssetBundles 實作簡易的遊戲資源打包以及更新機制
Unity 官方之前在 Asset Store 上有分享 AssetBundle Manager ,並提供官方教學文章介紹 AssetBundle 載入機制,我們參考該教學以及範例,因應遊戲設計考量,自己使用 Unity 提供的底層 AssetBundle API,製作...
網誌存檔
▼
2018
( 27 )
►
10月
( 1 )
►
9月
( 1 )
►
8月
( 1 )
►
6月
( 3 )
▼
5月
( 5 )
Unity rendering order 整理筆記
AWS Beanstalk: 日誌 Logs 推送到 CloudWatch 之設定筆記
CentOS 7 環境安裝筆記,GUI/gcc/g++/Code::blocks/Go 完整的 Go...
HTTP TimeoutHandler 所踩到的雷與解決方式,需要額外判斷 Request.Cont...
Go build 建置時加入時間 (build time) 與版本號 (git commit id)
►
4月
( 4 )
►
3月
( 1 )
►
2月
( 6 )
►
1月
( 5 )
►
2017
( 59 )
►
12月
( 4 )
►
11月
( 3 )
►
10月
( 6 )
►
9月
( 5 )
►
8月
( 5 )
►
7月
( 5 )
►
6月
( 5 )
►
5月
( 4 )
►
4月
( 5 )
►
3月
( 8 )
►
2月
( 6 )
►
1月
( 3 )
►
2016
( 44 )
►
12月
( 3 )
►
11月
( 2 )
►
10月
( 6 )
►
9月
( 4 )
►
8月
( 5 )
►
7月
( 4 )
►
6月
( 4 )
►
5月
( 2 )
►
4月
( 2 )
►
3月
( 3 )
►
2月
( 6 )
►
1月
( 3 )
►
2015
( 1 )
►
12月
( 1 )
贊助廣告