Skip to content

Unity Setup

JaXt0r edited this page Aug 22, 2024 · 3 revisions

Unity setup hints

  • For local Gothic installation directory, please create file GameSettings.dev.json next inside Assets/StreamingAssets. This file is ignored by git and you need to set its values to make the game run in Unity.
  • Load scene "Bootstrap" in your Editor. Hit play and you're good to go.
  • You can configure the runtime through a GameConfiguration scriptable object (see below).

GameConfiguration

  • One for Production is set by default
  • You can create your own by:
    • Navigating to the Gothic-UnZENity-Core/Resources/GameConfigurations directory in Unity
    • creating a new GameConfiguration object via Right Click > Create > ScriptableObjects > GameConfiguration
    • dragging it into the "Config" inspector-slot of the GameManager scene object
  • Can be edited in the inspector by either selecting it in the file view, or double-clicking its field in the Inspector

Deprecated

Updating Unity or packages

Updating XR Interaction Toolkit
XRI Default Input Actions.inputactions are put from the Samples folder into Assets/GothicVR/XR Interaction Toolkit/. This ensures (e.g.) velocity handling for Climbing ladders persists after updates. Nevertheless, after an update, it needs to be rechecked.

Update hints from Unity: Starter Assets

XRDeviceSimulator

You can play the game with OpenXR's control simulator. This enables you to test without setting up your HMD. It needs to be activated via FeatureFlag UseXRDeviceSimulator and is implemented to run in Editor mode only.

We're using the default controls which are:

HMD (No specific controller activated) Left controller Right controller
HMD Left Controller Right Controller
Clone this wiki locally