Cho-Hsun Lu
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    5
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- tags: Unity --- # Unity 安裝教學 :::info 2024.07.19 更新 ::: 以下說明 Unity 安裝的教學,大略可以分成五個階段: :::success 1. **安裝 Unity Hub** 2. **調整語言顯示(非必要)** 3. **取得數位授權** 4. **安裝 Unity 編輯器** 5. **安裝 Visual Studio 程式碼編輯器** ::: ## 安裝 Unity Hub Unity Hub 是 Unity 專案與編輯器管理軟體,可以控管你的 Unity 專案,也能夠讓不同版本的 Unity 編輯器同時都安裝到電腦裡面。 請至 [Unity Hub](https://unity.com/download) 網站下載,可參考下圖,請直接按「Download for Windows」或「下載」,來下載Unity Hub 安裝檔。我們以 Windows 作業系統為範例。 ![](https://imgur.com/fvLSvr5.png) *英文版* ![](https://imgur.com/tqfQ65G.png) *這一年以來不知道為什麼都只能顯示簡體版...* 安裝完成請點兩下以下的安裝檔圖示。 ![](https://imgur.com/KVyvmf0.png) 剩下的安裝過程都很簡單,按下我同意、安裝,依照畫面操作即可。 ![](https://imgur.com/N7sUqvA.png) ![](https://imgur.com/eXzJITi.png) ![](https://imgur.com/Ooa0fp6.png) 最後出現以下畫面,請勾選執行 Unity,再按完成開啟 Unity Hub。 ![](https://imgur.com/1EHzRYw.png) ### Unity 帳號申請 開啟 Unity 後就會出現一個主畫面。由於 Unity Hub 需要登入一個帳號,若你有帳號與密碼,請點「Sign in」按鍵,然後出現瀏覽器的登入畫面,輸入帳號密碼就可以登入 Unity Hub。 :::warning 如果你從來沒有用過與學過 Unity,應該是沒有帳號密碼,建議請申請一個帳號。申請帳號是免費的,請在瀏覽器登入畫面中按「Creat Account」新增帳號,或者直接用 Gmail、facebook ... 等帳號登入。 ::: ![](https://imgur.com/jPsoZzb.png) ![](https://imgur.com/xsXZdBE.png) 如果登入成功,就會跳出以下的指示,點選開啟即可。接下來我們說明怎麼安裝 Unity 編輯器, ![](https://imgur.com/U01autg.png) ## 調整語言顯示(非必要) 登入成功之後,你就會看到以下登入後的畫面,假如你英文苦手,我們可以先把介面改成中文的,請點擊齒輪圖示進入「偏好設定」選項。 ![](https://imgur.com/ylTBQe0.png) 請選擇「Appearance」的頁籤,你可以看到關於 Unity Hub 的外觀畫面選項,語言項目就是 Language,你可以在裡面找到中文的項目,選擇繁體中文你就會發現介面變成中文了。 ![](https://imgur.com/NRRyF6P.png) ![](https://imgur.com/Dajm3oF.png) ## 取得數位授權 :::info 2024.07 更新:目前看起來 Unity 把取得數位授權的方式簡化,你只要登入進去,一般來說都會自動幫你取得授權,不過以下內容仍暫時保留,假如你的授權消失,可以藉此重新取得授權。 ::: 接下來,我們要說明如何取得 Unity 數位授權。 由於 Unity 對於版權使用管理很嚴格,所以我們還需要取得一個數位授權。你可能會擔心是不是要收費,別擔心,如果只是個人使用,可以使用個人版授權,這部分是不用收費的。 取得數位授權的方式,你可以先點右上角的「取得授權」按鍵。也可以回到上一節的「偏好設定」選項,再點選「授權」頁籤,就會出現以下的畫面。 請點選「新增」或「新增授權」。 ![](https://imgur.com/ixmRerB.png) 以下畫面就可以選擇你要的數位授權,由於我們要使用的是免費的個人授權,請選擇「取得免費的 Personal 授權」。 ![](https://imgur.com/mLSnxgm.png) 按下「取得免費的 Personal 授權」後,就會出現以下畫面,請再點下「同意並取得 Personal 授權」。這時請注意,有時網路授權的伺服器回覆會比較慢,請按一次就好,如果沒有反應稍等即可,不需要一直按。 ![](https://imgur.com/vla0avx.png) 如果取得了個人授權,就會顯示以下畫面,這時代表你的數位授權已取得,關閉偏好設定視窗即可。接下來我們說明怎麼安裝 Unity 編輯器。 ![](https://imgur.com/UL02kEX.png) ## 安裝 Unity 編輯器 安裝 Unity Hub 成功之後,其實還沒有結束,你還需要安裝 Unity 編輯器。 :::info 你可能會好奇一件事,為什麼不直接幫我們安裝編輯器呢?這是因為 Unity 從以前到現在有相當多的版本,並且遊戲設計師會用不同版本的編輯器,來建置不同版本的遊戲內容,因此使用者可以在電腦裡面安裝多個版本的 Unity 編輯器。 ::: 接下來我們就要介紹 Unity 編輯器的安裝方式。 如果你已經登入 Unity Hub 成功,如果過去也都沒有安裝任何一個版本的 Unity 編輯器,就會跳出以下的畫面。不過為了方便說明,請直接按下「跳過安裝」的選項關閉它。 ![](https://imgur.com/FhdQdw1.png) 接下來就會看到 Unity Hub 的主要操作畫面,我們直接先跳到「安裝」這個頁籤。這個頁籤就列出你電腦中所有的 Unity 編輯器,以下是一個「完全沒有安裝任何編輯器」樣子。 現在我們要安裝一個 Unity 編輯器,請按下「安裝編輯器」,中間或右上角的按鍵都可以。 ![](https://imgur.com/sd6VmOl.png) ### 編輯器版本選擇 接下來你可以選擇特定版本的編輯器,一般來說,Unity 都推薦安裝「長期支援版本(LTS)」,並且會提供兩個年度的最新版。 :::info 1. 這部分可能因為年度不同而有所變動,以下圖來說,LTS 版本 Unity Hub 建議可以安裝 2022 或 2021 的版本。 2. 你可以注意到,年份後面有 3.xx 的數字,那是每一年度的版本號,版本號也可能會變動,所以你可能當下看到的數字不同,這是正常的。 ::: 更新的版本則會在其他版本中顯示,一般來說都會是最新的 Unity 版本,以下圖來說就是 2023 的版本。 我們會建議同學先以 LTS 為主,至於要哪個年份的?如果是初學階段其實甚麼版本都可以,我們就選比較新的 2022 版本。 :::info 可以參考本文的「[附註1:應該選擇哪一個Unity版本?](https://hackmd.io/K7FsirQXRUOfgM4gCMpE8A?view#%E9%99%84%E8%A8%BB1%EF%BC%9A%E6%87%89%E8%A9%B2%E9%81%B8%E6%93%87%E5%93%AA%E4%B8%80%E5%80%8BUnity%E7%89%88%E6%9C%AC%EF%BC%9F)」,了解選擇 Unity 編輯器版本的建議指南。 ::: ![](https://imgur.com/2QTssmD.png) 接下來就會出現以下的畫面,請特別注意,務必要有開發工具 Microsoft Visual Studio Community 2019 被勾選,這是預設的 Unity 遊戲開發的程式碼編輯器,我們之後會講這一塊安裝的說明細節,請在這裡先確認它有被勾選。 :::info 你可能會注意到你的選項是 **Microsoft Visual Studio Community 2022**,這沒關係,也請確認有被勾選就好。 ::: 其他項目則是如果要在不同平台開發遊戲,就會需要額外安裝的套件,在這裡我們先跳過。 ![](https://imgur.com/yXl2Liv.png) 假如你想要安裝中文版,請捲動到下方「語言套件」的地方,勾選繁體中文選項,這部分可選也可不選,不過之後我們是以英文版為主。 選擇完成之後,請按「繼續」的按鍵來安裝編輯器。 ![](https://imgur.com/ed0SMUp.png) 然後會跳出使用條款的文字,也是請勾選「我已閱讀並同意上述與條件」,再按「安裝」按鍵。 ![](https://imgur.com/9DkTDYi.png) 接下來的安裝過程就要等待,你可以點開細項來看目前安裝的進度。 ![](https://imgur.com/PfjCxJz.png) :::warning 這裡要提示同學,這部分有可能會失敗。不要擔心,如果有項目失敗,請參考下圖,點選重新安裝的圖示「 ↻」就會繼續安裝,請確認網路是正常的,應該就可以繼續安裝。 ::: ![](https://imgur.com/owxUQ28.png) ## 安裝 Visual Studio 程式碼編輯器 Unity 遊戲引擎主要支援的程式碼編輯器是微軟的 Visual Studio 程式碼編輯器,因此通常在安裝 Unity 編輯器的過程中都會順帶幫你安裝這個軟體。 :::info Unity 當然可以使用其他程式碼編輯器,譬如 Visual Studio Code,不過還是 Visual Studio 支援最完整,我們以這個軟體為主。 ::: 安裝 Unity 編輯器的過程中,你應該會看到以下的畫面,這是說明要開始安裝 Visual Studio 程式碼編輯器,請按下「繼續」按鍵。 ![](https://imgur.com/oWQNpS5.png) 然後就會出現以下的進度畫面,請靜待它的完成。 ![](https://imgur.com/EnyBUMk.png) 完成之後,會跳出套件選項,請捲動畫面到遊戲項目(參考下圖),務必確認「使用 Unity 進行遊戲開發」這個項目有被勾選,這樣編輯器才能有效的支援 Unity 編輯器,確認後,請點選「安裝」按鍵。 ![](https://imgur.com/y6Finq4.png) [點我看大圖](https://i.imgur.com/y6Finq4.png) 接下來也是要等待一下,才會完成 Visual Studio 程式碼編輯器的安裝。 ![](https://imgur.com/fReGs61.png) ### Visual Studio (微軟)帳號申請 安裝完成之後,你還會看到以下的畫面,請使用你的微軟帳號密碼登入進去,微軟的帳號可能是「@hotmail.com」或「@outlook.com」的電子郵件。 :::warning 1. 假如你沒有微軟的帳號密碼,可以點選「建立一個吧!」來申請,這部分不困難就留給你自己去申請了。 2. 你應該會發現,要用 Unity 來製作遊戲,會需要兩個帳號,Unity 與 Visual Studio 的帳號,請務必申請。 ::: ![](https://imgur.com/Iav9IuZ.png =300x) ![](https://imgur.com/isM586T.png =300x) 登入成功之後可能會出現以下的畫面,請直接關閉就好。 ![](https://imgur.com/bKR6SIZ.png) 最後確認一下這個畫面,如果出現安裝完成的指示,就代表你安裝完成了。 ![](https://imgur.com/KIjrOot.png) 如果你回到安裝頁籤,應該可以看到你剛剛安裝的 Unity 編輯器項目。 ![](https://imgur.com/9NgTPoq.png) :::warning 假如你安裝的過程總是失敗,建議參考「[附註2:如果你安裝總是失敗](https://hackmd.io/K7FsirQXRUOfgM4gCMpE8A?view#%E9%99%84%E8%A8%BB2%EF%BC%9A%E5%A6%82%E6%9E%9C%E4%BD%A0%E5%AE%89%E8%A3%9D%E7%B8%BD%E6%98%AF%E5%A4%B1%E6%95%97)」 ::: ## 附註 ### 附註1:應該選擇哪一個Unity版本? 一般來說,建議優先使用LTS版本,除非有特別理由,不要用太舊的Unity版本,例如你碰到某些第三方開發套件軟體只支援2019或更早版本,這時才去使用舊版本的Unity。 重要的遊戲開發(例如專題製作),版本建議要「從一而終」,從開發的起始階段到完成開發,都使用同一版本的Unity。和別人一起開發,也要講好使用特定的版本,避免造成不必要的問題。 如果是舊版本 Unity 建立的專案,你可以藉由升級轉換成較新的版本,不過一般來說升級比較容易成功,降級通常會失敗,沒有必要請勿降級。 如果你有必要同時使用多個版本的 Unity 開發不同專案,請利用 Unity Hub 安裝多個 Unity 編輯器。 ![](https://imgur.com/weQhj0H.png =600x) ### 附註2:如果你安裝總是失敗 首先檢查你的 Windows 登入名稱是不是「中文」?最簡單的檢查方式,看 C 磁碟機的「使用者」資料夾,確認你有沒有剛好就是有一個跟你登入名稱一樣的中文名稱資料夾。 因為 Unity 對中文的支援還是不好,解決方式如下: :::info 1. 新增一個英文名稱帳號,在這個帳號裡面安裝 Unity,你可以參考[這個網站](https://support.microsoft.com/zh-tw/windows/%E5%9C%A8-windows-%E4%B8%AD%E5%BB%BA%E7%AB%8B%E6%9C%AC%E6%A9%9F%E4%BD%BF%E7%94%A8%E8%80%85%E5%B8%B3%E6%88%B6%E6%88%96%E7%B3%BB%E7%B5%B1%E7%AE%A1%E7%90%86%E5%93%A1%E5%B8%B3%E6%88%B6-20de74e0-ac7f-3502-a866-32915af2a34d)的做法。 2. 重新安裝/設定 Windows,使用英文名稱建立帳號。只是這個做法會整個重置 Windows,除非你熟悉如何重置並且恢復原來的軟體設定,不然建議還是以第一個做法比較保險。 ::: ## 結語 以上大致將所有的 Unity 安裝教學說明,不過 Unity 其實一直不斷的更新版本,未來可能視窗內容與流程或許都會有變化,但基本概念與邏輯都是差不多的,希望以上的教學對你來說有幫助。

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully