# imantihero/temp architecture

> Architecture diagram of the GitHub repository imantihero/temp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-05-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/imantihero/temp
- Repository: https://github.com/imantihero/temp

## Overview

1. This is a Unity-based XR application, not a traditional web/backend repo. The runtime target is Android/Meta Quest-style headset deployment, with most behavior driven by scene assets, prefabs, and a small amount of C# glue code.

2. The main app entry point appears to be the Unity scene in `Assets/Scene/Visual_wegovy.unity`. A second scene in `Assets/UI_Assets/Assets/Scenes/SampleScene.unity` looks like a UI/package sample or a local testbed rather than the primary experience.

3. The XR platform layer is configured through `Assets/XR`, `Assets/Oculus`, and `Assets/MetaXR`, with OpenXR as the loader (`Assets/XR/Loaders/OpenXRLoader.asset`). These settings define the headset/runtime boundary: device tracking, input, and rendering are handled by Unity’s XR stack plus Meta/Oculus project configuration.

4. Interaction and hand/controller input are likely mediated by the imported Interaction SDK prefab at `Assets/InteractionSDK/ComprehensiveInteraction.prefab`. This is the main boundary between device input and in-scene interactive UI/content.

5. The only clearly custom runtime script in the root assets is `Assets/Script/UiCameraFollower.cs`, which likely keeps a UI element positioned relative to the XR camera. That suggests a diegetic or head-locked UI layer rather than a flat desktop canvas.

6. The bulk of the application-specific UI logic lives under `Assets/UI_Assets/Assets/Scripts`: `ExperimentManager`, `EvaluationController`, `VASController`, `SimpleNextButton`, and `SliderTextUpdater`. These names indicate a guided experiment or questionnaire flow, probably including a visual analog scale (VAS) rating interaction and step-by-step progression.

7. The UI subsystem is packaged separately from the main scene content. `Assets/UI_Assets/Assets/Prefabs/VAS_UI/Canvas.prefab` is the reusable UI container, while the scripts above orchestrate panel state, button navigation, and slider-to-text synchronization. `VASPanelManager(deprecated).cs` suggests this UI flow was refactored and the old panel manager is retained only for compatibility.

8. Text and labels are rendered with TextMesh Pro, which is imported twice: once at the repository level and once inside the `UI_Assets` package. This is an imported presentation dependency, not core app logic, but it materially affects how UI text, fonts, and styling are authored.

9. Rendering and visual presentation are configured through URP assets in `Assets/UI_Assets/Assets/Settings` and project-wide graphics settings in `ProjectSettings`. The repository also includes a LUT asset (`Assets/LUT/blue_food_filter.xcf`), hinting at visual filtering or color-processing assets used by the experience.

10. Android packaging is customized via `Assets/Plugins/Android/AndroidManifest.xml`, while the generated Burst debug folders at the root are build artifacts and not part of the shipped architecture. The presence of these artifacts confirms an Android-targeted Unity build pipeline.

11. Resource assets in `Assets/Resources` provide global configuration objects such as `InputActions.asset`, `OVRBuildConfig.asset`, `OculusRuntimeSettings.asset`, and `ImmersiveDebuggerSettings.asset`. These are the app’s shared configuration boundary: input mappings, Oculus/Meta build behavior, and debug/runtime settings.

12. Overall data flow is: XR hardware input and camera pose enter through OpenXR/Meta XR + Interaction SDK, scene objects and UI prefabs consume that state, the experiment controllers manage progression and VAS input, and TextMesh Pro/URP handle presentation. There is no obvious external service backend; the app appears self-contained inside the Unity runtime.

Main entry points: [`Assets/Scene/Visual_wegovy.unity`](https://github.com/imantihero/temp/blob/main/Assets/Scene/Visual_wegovy.unity) (Main scene), [`Assets/UI_Assets/Assets/Prefabs/VAS_UI/Canvas.prefab`](https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Prefabs/VAS_UI/Canvas.prefab) (VAS canvas), [`Assets/XR/XRGeneralSettingsPerBuildTarget.asset`](https://github.com/imantihero/temp/blob/main/Assets/XR/XRGeneralSettingsPerBuildTarget.asset) (XR settings), [`Assets/UI_Assets/Assets/Scripts/VASController.cs`](https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scripts/VASController.cs) (VAS input)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_grp_runtime["Runtime"]
  node_node_scene_main["Main scene<br/>unity scene"]
  node_node_ui_camera["UI follower<br/>camera glue"]
end

subgraph group_grp_ui["UI Package"]
  node_node_scene_sample["Sample scene<br/>unity scene<br/>[SampleScene.unity]"]
  node_node_ui_canvas["VAS canvas<br/>ui prefab<br/>[Canvas.prefab]"]
  node_node_experiment_manager["Experiment<br/>flow controller"]
  node_node_evaluation_controller["Evaluation<br/>interaction controller"]
  node_node_vas_controller["VAS input<br/>rating controller<br/>[VASController.cs]"]
  node_node_next_button["Next button<br/>navigation helper"]
  node_node_slider_text["Slider text<br/>ui sync"]
  node_node_vas_legacy["Legacy panel<br/>deprecated controller"]
end

subgraph group_grp_platform["Platform"]
  node_node_xr_loader["OpenXR loader<br/>[OpenXRLoader.asset]"]
  node_node_xr_settings["XR settings<br/>xr config"]
  node_node_meta_settings["Meta XR<br/>platform config"]
  node_node_oculus_config["Oculus config<br/>platform config"]
  node_node_android_manifest["Android manifest<br/>android config"]
  node_node_resources[("Shared resources<br/>config assets")]
end

subgraph group_grp_presentation["Presentation"]
  node_node_tmp["TextMesh Pro<br/>text rendering"]
  node_node_urp_settings["URP settings<br/>render pipeline"]
  node_node_lut["Color LUT<br/>visual asset"]
end

subgraph group_grp_assets["Assets"]
  node_node_interaction_sdk["Interaction SDK<br/>input prefab"]
end

node_node_scene_main -->|"uses"| node_node_interaction_sdk
node_node_scene_main -->|"hosts"| node_node_ui_canvas
node_node_scene_main -->|"follows"| node_node_ui_camera
node_node_scene_main -->|"renders text"| node_node_tmp
node_node_scene_main -->|"applies"| node_node_lut
node_node_ui_canvas -->|"orchestrated by"| node_node_experiment_manager
node_node_ui_canvas -->|"contains"| node_node_vas_controller
node_node_ui_canvas -->|"contains"| node_node_slider_text
node_node_ui_canvas -->|"contains"| node_node_next_button
node_node_experiment_manager -->|"coordinates"| node_node_evaluation_controller
node_node_evaluation_controller -->|"collects"| node_node_vas_controller
node_node_vas_controller -->|"updates"| node_node_slider_text
node_node_next_button -->|"advances"| node_node_experiment_manager
node_node_vas_legacy -.->|"replaced by"| node_node_vas_controller
node_node_xr_loader -->|"configured by"| node_node_xr_settings
node_node_xr_settings -->|"aligned with"| node_node_meta_settings
node_node_xr_settings -->|"aligned with"| node_node_oculus_config
node_node_resources -->|"supplies"| node_node_xr_loader
node_node_resources -->|"feeds input"| node_node_interaction_sdk
node_node_android_manifest -->|"packages for"| node_node_xr_settings
node_node_urp_settings -->|"profiles"| node_node_scene_main
node_node_urp_settings -->|"profiles"| node_node_scene_sample
node_node_tmp -->|"styles"| node_node_ui_canvas
node_node_scene_sample -->|"uses"| node_node_tmp

click node_node_scene_main "https://github.com/imantihero/temp/blob/main/Assets/Scene/Visual_wegovy.unity"
click node_node_scene_sample "https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scenes/SampleScene.unity"
click node_node_ui_canvas "https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Prefabs/VAS_UI/Canvas.prefab"
click node_node_experiment_manager "https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scripts/ExperimentManager.cs"
click node_node_evaluation_controller "https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scripts/EvaluationController.cs"
click node_node_vas_controller "https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scripts/VASController.cs"
click node_node_next_button "https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scripts/SimpleNextButton.cs"
click node_node_slider_text "https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scripts/SliderTextUpdater.cs"
click node_node_vas_legacy "https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scripts/VASPanelManager(deprecated).cs"
click node_node_ui_camera "https://github.com/imantihero/temp/blob/main/Assets/Script/UiCameraFollower.cs"
click node_node_interaction_sdk "https://github.com/imantihero/temp/blob/main/Assets/InteractionSDK/ComprehensiveInteraction.prefab"
click node_node_xr_loader "https://github.com/imantihero/temp/blob/main/Assets/XR/Loaders/OpenXRLoader.asset"
click node_node_xr_settings "https://github.com/imantihero/temp/blob/main/Assets/XR/XRGeneralSettingsPerBuildTarget.asset"
click node_node_meta_settings "https://github.com/imantihero/temp/blob/main/Assets/MetaXR/MetaXRProjectSettings.asset"
click node_node_oculus_config "https://github.com/imantihero/temp/blob/main/Assets/Oculus/OculusProjectConfig.asset"
click node_node_android_manifest "https://github.com/imantihero/temp/blob/main/Assets/Plugins/Android/AndroidManifest.xml"
click node_node_resources "https://github.com/imantihero/temp/tree/main/Assets/Resources"
click node_node_tmp "https://github.com/imantihero/temp/tree/main/Assets/TextMesh Pro"
click node_node_urp_settings "https://github.com/imantihero/temp/tree/main/Assets/UI_Assets/Assets/Settings"
click node_node_lut "https://github.com/imantihero/temp/blob/main/Assets/LUT/blue_food_filter.xcf"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_node_scene_main,node_node_ui_camera toneBlue
class node_node_scene_sample,node_node_ui_canvas,node_node_experiment_manager,node_node_evaluation_controller,node_node_vas_controller,node_node_next_button,node_node_slider_text,node_node_vas_legacy toneAmber
class node_node_xr_loader,node_node_xr_settings,node_node_meta_settings,node_node_oculus_config,node_node_android_manifest,node_node_resources toneMint
class node_node_tmp,node_node_urp_settings,node_node_lut toneRose
class node_node_interaction_sdk toneIndigo
```

## Components

### Runtime

Primary Unity XR experience and headset-facing execution path.

- [Main scene](https://github.com/imantihero/temp/blob/main/Assets/Scene/Visual_wegovy.unity): unity scene · Primary app entry point for the XR experience. · `Assets/Scene/Visual_wegovy.unity`
- [UI follower](https://github.com/imantihero/temp/blob/main/Assets/Script/UiCameraFollower.cs): camera glue · Positions UI relative to the XR camera. · `Assets/Script/UiCameraFollower.cs`

### UI Package

Reusable experiment and questionnaire UI flow.

- [Sample scene](https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scenes/SampleScene.unity): unity scene · Secondary UI/sample testbed rather than the core experience. · `Assets/UI_Assets/Assets/Scenes/SampleScene.unity`
- [VAS canvas](https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Prefabs/VAS_UI/Canvas.prefab): ui prefab · Reusable UI container for the VAS workflow. · `Assets/UI_Assets/Assets/Prefabs/VAS_UI/Canvas.prefab`
- [Experiment](https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scripts/ExperimentManager.cs): flow controller · Coordinates guided progression through the study flow. · `Assets/UI_Assets/Assets/Scripts/ExperimentManager.cs`
- [Evaluation](https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scripts/EvaluationController.cs): interaction controller · Handles evaluation state and user response collection. · `Assets/UI_Assets/Assets/Scripts/EvaluationController.cs`
- [VAS input](https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scripts/VASController.cs): rating controller · Manages the visual analog scale interaction. · `Assets/UI_Assets/Assets/Scripts/VASController.cs`
- [Next button](https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scripts/SimpleNextButton.cs): navigation helper · Advances the questionnaire or experiment step flow. · `Assets/UI_Assets/Assets/Scripts/SimpleNextButton.cs`
- [Slider text](https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scripts/SliderTextUpdater.cs): ui sync · Keeps slider values synchronized with displayed text. · `Assets/UI_Assets/Assets/Scripts/SliderTextUpdater.cs`
- [Legacy panel](https://github.com/imantihero/temp/blob/main/Assets/UI_Assets/Assets/Scripts/VASPanelManager(deprecated).cs): deprecated controller · Old VAS panel manager retained for compatibility. · `Assets/UI_Assets/Assets/Scripts/VASPanelManager(deprecated).cs`

### Platform

XR, Android, and Meta/Oculus project configuration boundary.

- [OpenXR loader](https://github.com/imantihero/temp/blob/main/Assets/XR/Loaders/OpenXRLoader.asset): xr loader · Configures the headset runtime loader for device tracking and input. · `Assets/XR/Loaders/OpenXRLoader.asset`
- [XR settings](https://github.com/imantihero/temp/blob/main/Assets/XR/XRGeneralSettingsPerBuildTarget.asset): xr config · OpenXR editor/package settings and per-build XR setup. · `Assets/XR/XRGeneralSettingsPerBuildTarget.asset`
- [Meta XR](https://github.com/imantihero/temp/blob/main/Assets/MetaXR/MetaXRProjectSettings.asset): platform config · Meta XR project settings for Quest-style deployment. · `Assets/MetaXR/MetaXRProjectSettings.asset`
- [Oculus config](https://github.com/imantihero/temp/blob/main/Assets/Oculus/OculusProjectConfig.asset): platform config · Oculus project setup and runtime configuration assets. · `Assets/Oculus/OculusProjectConfig.asset`
- [Android manifest](https://github.com/imantihero/temp/blob/main/Assets/Plugins/Android/AndroidManifest.xml): android config · Custom Android packaging and application manifest. · `Assets/Plugins/Android/AndroidManifest.xml`
- [Shared resources](https://github.com/imantihero/temp/tree/main/Assets/Resources): config assets · Global runtime assets for input, build, debugger, and overlay settings. · `Assets/Resources`

### Presentation

Text and rendering dependencies used across the app.

- [TextMesh Pro](https://github.com/imantihero/temp/tree/HEAD/Assets/TextMesh%20Pro): text rendering · Text, font, and shader assets used for UI presentation. · `Assets/TextMesh Pro`
- [URP settings](https://github.com/imantihero/temp/tree/main/Assets/UI_Assets/Assets/Settings): render pipeline · Universal Render Pipeline assets for mobile and sample rendering. · `Assets/UI_Assets/Assets/Settings`
- [Color LUT](https://github.com/imantihero/temp/blob/main/Assets/LUT/blue_food_filter.xcf): visual asset · Color filter or grading asset used in the experience. · `Assets/LUT/blue_food_filter.xcf`

### Assets

Reusable scene and prefab assets that drive interaction.

- [Interaction SDK](https://github.com/imantihero/temp/blob/main/Assets/InteractionSDK/ComprehensiveInteraction.prefab): input prefab · Imported interaction boundary for hands, controllers, and XR UI. · `Assets/InteractionSDK/ComprehensiveInteraction.prefab`

## Connections

- Main scene → Interaction SDK: uses · Main scene consumes the imported interaction prefab for XR input and UI interaction.
- Main scene → VAS canvas: hosts · Primary scene includes the reusable experiment UI canvas.
- Main scene → UI follower: follows · Scene UI is positioned relative to the headset camera.
- Main scene → TextMesh Pro: renders text · In-scene labels and questionnaire text use TextMesh Pro assets.
- Main scene → Color LUT: applies · Visual presentation can use a LUT-based color filter.
- VAS canvas → Experiment: orchestrated by · The canvas is driven by the main experiment flow controller.
- VAS canvas → VAS input: contains · VAS UI includes the rating interaction controller.
- VAS canvas → Slider text: contains · Slider labels are updated by the text sync helper.
- VAS canvas → Next button: contains · Navigation control advances the step sequence.
- Experiment → Evaluation: coordinates · Experiment flow hands off to evaluation logic.
- Evaluation → VAS input: collects · Evaluation logic receives VAS responses.
- VAS input → Slider text: updates · VAS changes are reflected in displayed slider text.
- Next button → Experiment: advances · Next action moves the experiment to the following stage.
- Legacy panel → VAS input: replaced by · Deprecated panel manager was superseded by the current VAS controller flow.
- OpenXR loader → XR settings: configured by · OpenXR loader is part of the wider XR build configuration.
- XR settings → Meta XR: aligned with · XR runtime settings are paired with Meta XR project configuration.
- XR settings → Oculus config: aligned with · XR runtime settings are paired with Oculus project configuration.
- Shared resources → OpenXR loader: supplies · Shared input and runtime assets support the XR loader boundary.
- Shared resources → Interaction SDK: feeds input · Input action assets back the interaction SDK layer.
- Android manifest → XR settings: packages for · Android packaging is tuned for the XR deployment target.
- URP settings → Main scene: profiles · Rendering profiles shape the primary scene presentation.
- URP settings → Sample scene: profiles · Sample scene uses the package's rendering settings.
- TextMesh Pro → VAS canvas: styles · TextMesh Pro underpins the reusable UI canvas text elements.
- Sample scene → TextMesh Pro: uses · Sample UI scene demonstrates TextMesh Pro presentation assets.
