# 圖形編輯器的使用 - 開新專案時的名詞解釋 - HDRP:原意為強光曝光,這邊是全新的高畫質渲染效果 - 做手機APP畫布記得開符合手機螢幕的尺寸(比例) *** ## 做了一個登入畫面 ```csharp= using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; using UnityEngine.SceneManagement; //沒有導包這個轉不了頁面啦 public class login : MonoBehaviour { //宣告按鈕跟輸入框 Button b; public TMP_InputField username, password; void Start() { //抓出按鈕部件 Button btn = this.GetComponent<Button>(); btn.onClick.AddListener(TaskOnClick); } void Update() { } //做一個可以多按鈕使用的事件處理函數 void TaskOnClick() { if (username.text=="abc"&&password.text=="abc") { Debug.Log("歡迎"); //Unity用的提示 SceneManager.LoadScene("shop"); //頁面轉換,記得導包 } else { //略 } } } ``` - `Start`等同於Unity的Main方法,`Update`是更新率有關的方法 - 把寫好的程式拖曳丟到部件上就套用了事件處理函數 - 設置部件名稱(辨識用id)的方法如圖 *** ## 把東西從網路上拉下來 ```csharp= //使用WebRequest ``` [補充C#的檔案下載](/dMD1hSMMTEmGsaBTBKakLA) *** ### 補充 - 如果關於Unity的提示不見了,試試[這個](https://tedliou.com/vs-for-unity-autocomplete-not-working/),基本上有效~ - 這邊可以更換主題   {%hackmd @themes/dracula %}
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up