發表文章

目前顯示的是 2月, 2020的文章

Latest

英文、中文 / 諺語、片語、成語、口語對照 (2025.08.25 更新)

做表面功夫 go through the motion 目中無人;自視甚高 have one's nose in the air 有完沒完;別再說了 give it a rest  = can in 兵來將擋,水來土掩 roll with the punches (衍伸至拳擊) = take it as it comes 時間過得好慢。 The day is dragging on. 少臭美了 be full of oneself = Get over yourself! 你真是自以為是。 You are really all about yourself. 你一定找得到的。 You can't miss it. 那還用說。 You're telling me. 物超所值 get more bang for the buck 加把勁 pull one's socks up 出洋相;大吵大鬧 make a scene 風馬牛不相及 be neither here nor there 挖東牆補西牆 rob Peter to pay Paul 我覺得事有蹊蹺。 I smell a rat.  冤冤相報何時了。 Two wrongs don't make a right. 沒魚,蝦也好。 It's not so great, but it'll have to do.  自斷後路 burn one's bridge  這是掛保證的。 You can take it to the bank.  = You can quote me on that. 白手起家 rags-to-riches 放規矩點! Behave youself. = Mind your p's and q's. 悉聽尊便。 Anything you say. = It's up to you. = As you wish. 夠了!(住嘴) Cut it out! = Stop it! 閉嘴! Hold your tongue. = Shut up! 別太挑剔了! Don't be so fussy. 別搞砸了! Don't blow it. 別老叫我做東做西! Don't boss me arou...

【Unity】Layer、Sorting Layer 差別

圖片
Layer:把GameObject分類,可用在碰撞 Sorting Layer:Camera看到2D物品的前後顯示順序 Which is the difference between layer and sorting layer? 相關設定可以參考影片教學 ↓

【Unity】TextMesh Pro 顯示中文

圖片
這兩天在研究TextMesh Pro的功能 這篇文章教了我如何匯入中文字體 (別的文字應該也是相同邏輯) Unity TextMeshPro 中文字體 @ 迷途_Unity工作室 :: 痞客邦 :: 從C:\WINDOWS\Fonts找到我想要的字體 (微軟正黑體) 這時候會發現微軟正黑體 (Microsoft JhengHei = MSJH) 有三個.TTC (TrueType Font Collection)檔: MSJH (標準) MSJHBD (粗體) (BD = Bold) MSJHL (淡) (L = Light) 之後複製到Asset中 (這邊他會自動生成.meta檔,跑的有點久,我最後是讓他慢慢跑完,沒有用到網路解法) 再來Unity Window -> TextMeshPro -> Font Asset Creator進行相關設定 (字符可直接用貼到Custom Character List或用匯入檔案的方式來放入) 之後Generate Font Altas後並存成.asset檔 - - - 採雷 - - - 一開始我還git上找到了 chinese简繁常用字表.txt 拿取裡面的全形符號 (共75個) 和繁體中文 (共3753個) 取得共3828個字符 (Character) 來生成.asset檔 出現三個引起我注意的點: 1. Character Included的字符數比我來源的字符數少 (只有抓到3748個) 2. Atlas Resulotion設大一點會抓到比較多字 3. 3753個繁體中文字數量不夠 (像是裡面不包含「町」這個字),得抓更大的 - - - 我目前使用的字符檔 - - - 在 3000-traditional-hanzi/data/frequency.txt 找到了足夠數量的繁體漢字 (共13060個) 之後結合75個全形符號,總共13135個字符 我以8196x8196去Generate Font Altas之後的Character Included為13134個字 多一個的字符是什麼目前還沒查出... - - - 結果 - - - 因為.asset檔超過100mb,所以上傳到gi...

Git 的 LFS

LFS = Large File Storage 簡單來說,我們可以把大容量的檔案放到LFS中 可參考 Git LFS 原理、大小檔案都適用 或 Atlassian上的介紹 然後我們可以在.gitattributes檔案中去設定哪些副檔名做LFS處理: *.psd filter=lfs diff=lfs merge=lfs -text *.png filter=lfs diff=lfs merge=lfs -text *.ttf filter=lfs diff=lfs merge=lfs -text *.fbx filter=lfs diff=lfs merge=lfs -text *.FBX filter=lfs diff=lfs merge=lfs -text *.unity filter=lfs diff=lfs merge=lfs -text