EstudosLivres / UnityMobileSetup

Setup Unity for mobile development with XCode iOS simulator tests
1 stars 0 forks source link

UnityMobileSetup

Setup Unity for mobile development with XCode iOS simulator tests

Summary/CheckList

  1. [ ] Lightning Setup
  2. [ ] LWRP (2019 or lower versions) or Universal Pipeline (2020 unity version)
  3. [ ] Switch Platform (iOS on MAC)
  4. [ ] Define orientation only (portrait or landscape)
  5. [ ] iOS Processing - Project Settings
  6. [ ] Mobile Moves Input

Lightning

  1. Find the lightning settings lightning settings location
  2. Remove real-time light and perform the baked light map light baked

LWRP

  1. Menu bar at Unity:

    1. Window > Package Manager

      1. All Packages (filter)

        1. Lightweight RP > Install

        LWRPInstall

        1. LWRP Create

        LWRPCreate

        1. LWRP Config

        LWRPConfig

        1. MenuBar > Edit > Project Settings > Graphics > Drag&Drop created LWRP (LWRP Set)

        LWRPSet

        1. after LWRP Set everything get pink (LWRP Process):

          1. MenuBar > Edit > Render Pipeline > Upgrade Project Materials to Render Pipeline

          LWRP Process

          1. IF Still anything pink (update it specific shader):

          LWRP Specific Pink Process

Switch Platform (prefer iOS on MAC)

  1. Menu bar at Unity
    1. File
    2. Build Settings
      1. Select "iOS" and click on "switch platform"
      2. Click "Add Open Scenes"
  2. Click "Player Settings" for the next steps

Switch Platform

Define Orientation

At "Player Settings":

  1. Select the platorm (phone icon is iOS)
    1. "Resolution and Presentation":
      1. Default Orientation = '>' (landscape) '^' (portrait)
    2. Allowed Orientations for Auto Rotation

Define Orientation

iOS Processing - Proj. Settings

  1. Color Space = "Gamma"
  2. Auto Graphic API = "Metal + OpenGLES3"
  3. Bundle Identifier = "com.Company.Proj"
  4. Target SDK = "Simulator SDK" (development) and "Device SDK" (production) iOS Project Settings

Moves Input

  1. Download & Import Standard Assets Store StandardAssets

  2. Add Adam to the scene (third controller character) Adam to scene

  3. Find it in the project folder nav & add it to the hierarchy

    mob-input-proj-nav
  4. Disable and re-enable mobile inputs (unity menu bar)

    disable-enable-mobile-input

Obs.: a sample right button (jump is already there, just change it skin, to do it convert the image from default to Sprite2D UI) custom ui directional

Mobile Camera Moves