UnityMobileSetup
Setup Unity for mobile development with XCode iOS simulator tests
Summary/CheckList
- [ ] Lightning Setup
- [ ] LWRP (2019 or lower versions) or Universal Pipeline (2020 unity version)
- [ ] Switch Platform (iOS on MAC)
- [ ] Define orientation only (portrait or landscape)
- [ ] iOS Processing - Project Settings
- [ ] Mobile Moves Input
Lightning
- Find the lightning settings
- Remove real-time light and perform the baked light map
LWRP
-
Menu bar at Unity:
-
Window > Package Manager
-
All Packages (filter)
- Lightweight RP > Install
- LWRP Create
- LWRP Config
- MenuBar > Edit > Project Settings > Graphics > Drag&Drop created LWRP (LWRP Set)
-
after LWRP Set everything get pink (LWRP Process):
- MenuBar > Edit > Render Pipeline > Upgrade Project Materials to Render Pipeline
- IF Still anything pink (update it specific shader):
Switch Platform (prefer iOS on MAC)
- Menu bar at Unity
- File
- Build Settings
- Select "iOS" and click on "switch platform"
- Click "Add Open Scenes"
- Click "Player Settings" for the next steps
Define Orientation
At "Player Settings":
- Select the platorm (phone icon is iOS)
- "Resolution and Presentation":
- Default Orientation = '>' (landscape) '^' (portrait)
- Allowed Orientations for Auto Rotation
iOS Processing - Proj. Settings
- Color Space = "Gamma"
- Auto Graphic API = "Metal + OpenGLES3"
- Bundle Identifier = "com.Company.Proj"
- Target SDK = "Simulator SDK" (development) and "Device SDK" (production)
Moves Input
-
Download & Import Standard Assets Store
-
Add Adam to the scene (third controller character)
-
Find it in the project folder nav & add it to the hierarchy
-
Disable and re-enable mobile inputs (unity menu bar)
Obs.: a sample right button (jump is already there, just change it skin, to do it convert the image from default to Sprite2D UI)
Mobile Camera Moves