Unity 小技巧 *Rename(重新命名) Unity Project Change the unity project folder name (the parent folder of 'Assets' folder) Remove any file with .sln or .csproj suffixes under the project folder(A sibling of Asset folders). ( Unity will regenerate them) *Double click Canvas in hierarchy => UI Text 放置的地方 Text 在 Canvas 的相對位置 就是,Text 在 Camera (螢幕)的位置 *出現警告 : There are inconsistent line endings in the 'Assets/Script/Button0.cs' script. Some are Mac OS X (UNIX) and some are Windows. This might lead to incorrect line numbers in stacktraces and compiler errors. Many text editors can fix this using Convert Line Endings menu commands. 在Visual Studio => 工具 -> 選項 -> 文字編輯器 -> 自動偵測無簽章的 UTF-8 編碼 => 勾選 *Button 加入 函式 1.Create a Button in Hierarchy. 2.Add a script(button0.cs) to the Button. 3.-----------------------button0.cs ------------------------------- using System.Collections; using System.Collections.Generic; using UnityEngine; public ...
發表文章
目前顯示的是有「Unity」標籤的文章