Skip to content

prayag-1771/Unity_AR_simulation

Repository files navigation

Unity AR Simulation

A Unity-based augmented reality simulation project focused on rapid prototyping, scene testing, and XR workflow experimentation.

Project Description (Quick View)

This repository contains a Unity AR simulation environment intended for experimenting with AR scenes, scripts, and project settings in a structured and reproducible way.

Table of Contents

  1. Overview
  2. Key Features
  3. System Architecture
  4. Project Structure
  5. Technology Stack
  6. Getting Started
  7. Build and Run
  8. Development Workflow
  9. Troubleshooting
  10. Roadmap
  11. Contributing
  12. License

Overview

The project is organized as a standard Unity application with dedicated directories for assets, scenes, scripts, package dependencies, and project-level configuration. It is suitable for:

  • AR simulation and concept validation
  • Fast iteration on scene logic and scripts
  • Testing Unity/XR project configurations
  • Local development and team collaboration via version control

Key Features

  • Unity project scaffold ready for AR simulation workflows
  • Isolated folder structure for scenes and scripts
  • Managed package dependencies via Unity Package Manager
  • Editable project settings for graphics, input, physics, XR, and build behavior
  • Compatible with iterative development in Visual Studio Code or Visual Studio

System Architecture

flowchart TD
    A[Developer] --> B[Unity Editor]
    B --> C[Assets]
    C --> D[Scenes]
    C --> E[Scripts]
    B --> F[ProjectSettings]
    B --> G[Packages]
    G --> H[Unity Package Manager Dependencies]
    D --> I[AR Simulation Runtime]
    E --> I
    F --> I
Loading

Runtime Flow

sequenceDiagram
    participant Dev as Developer
    participant Editor as Unity Editor
    participant Scene as Scene System
    participant Script as C# Scripts
    participant XR as XR/AR Runtime

    Dev->>Editor: Open project
    Dev->>Scene: Load simulation scene
    Editor->>Script: Compile and attach behaviors
    Scene->>XR: Initialize AR simulation context
    Script->>XR: Update logic and interaction states
    XR-->>Dev: Render and simulate AR output
Loading

Project Structure

Unity_AR_simulation/
├── Assets/
│   ├── Scenes/
│   └── Scripts/
├── Packages/
│   ├── manifest.json
│   └── packages-lock.json
├── ProjectSettings/
├── UserSettings/
├── Library/            # Generated by Unity (local cache)
├── Temp/               # Generated temporary files
├── Logs/               # Editor/import/build logs
├── Assembly-CSharp.csproj
├── hand_AR.sln
└── README.md

Important Notes

  • Assets/ contains source assets you should version control.
  • Packages/manifest.json defines Unity package dependencies.
  • ProjectSettings/ captures editor and runtime configuration.
  • Library/, Temp/, and most Logs/ content are generated artifacts.

Technology Stack

  • Engine: Unity
  • Language: C#
  • Dependency Management: Unity Package Manager (UPM)
  • IDE Support: Visual Studio / VS Code
  • Version Control: Git

Getting Started

Prerequisites

  1. Unity Hub installed
  2. A Unity Editor version matching ProjectSettings/ProjectVersion.txt
  3. Git installed

Setup Steps

  1. Clone the repository:
    git clone <your-repository-url>
    cd Unity_AR_simulation
  2. Open Unity Hub and add this project folder.
  3. Launch the project with the recommended Unity Editor version.
  4. Open a scene from Assets/Scenes/.
  5. Press Play in Unity Editor to run the simulation.

Build and Run

Run in Editor

  • Open the main simulation scene.
  • Press Play.

Build (General)

  1. Open File > Build Settings.
  2. Select target platform (Android, iOS, Windows, etc.).
  3. Add required scenes to build.
  4. Configure player settings and XR options.
  5. Build and run.

Development Workflow

flowchart LR
    A[Create or modify scene/script] --> B[Test in Play Mode]
    B --> C[Validate AR behavior]
    C --> D[Commit changes]
    D --> E[Push and open PR]
Loading

Suggested Branch Strategy

  • main: stable branch
  • feature/<name>: new features
  • fix/<name>: bug fixes
  • chore/<name>: maintenance

Troubleshooting

Unity version mismatch

  • Check ProjectSettings/ProjectVersion.txt and install that editor version in Unity Hub.

Packages not resolving

  • Verify internet access and package registry settings.
  • Reopen project to trigger package restore.
  • Remove Library/ (if safe) and reopen to force reimport.

Scripts not compiling

  • Check Console for C# errors.
  • Ensure script class names match file names when required.
  • Confirm API compatibility settings in Project Settings.

Roadmap

  • Add detailed scene-level documentation
  • Add architecture notes for AR interaction systems
  • Introduce automated validation checks
  • Add platform-specific deployment guides

Contributing

  1. Fork and create a feature branch.
  2. Keep commits focused and descriptive.
  3. Open a pull request with:
    • What changed
    • Why it changed
    • How it was tested
  4. Request review and address feedback.

License

No license file is currently defined in this repository. Add a LICENSE file to specify usage and distribution terms.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors