Встановлення

Почніть зі стартового репозиторію або встановлюйте пакети по одному з Git.

Вимоги

  • Unity 6000.6
  • Встановлений Git, щоб Unity міг завантажувати пакети за URL
  • Для сканування кімнат через 3d-unity-spatial: Meta XR MR Utility Kit (com.meta.xr.mrutilitykit)
  • Для 3d-unity-firebase: Firebase SDK не потрібен; пакет використовує REST API Firebase з google-services.json вашого проєкту

Рекомендований редактор: Unity 6000.6.8f1. Пакети рушія й наші ігри збираються та тестуються саме на ній, тому та сама версія тримає ваш проєкт узгодженим із ними. Це порада, а не вимога: підійде будь-який редактор Unity 6000.6, а інша версія на ваш розсуд.

Без Meta XR MR Utility Kit 3d-unity-spatial усе одно компілюється й повідомляє, що сканування недоступне.

Найшвидший старт: стартовий репозиторій

Кожен конструктор має репозиторій-стартер: порожній проєкт Unity з налаштуваннями git та AGENTS.md, який веде вас або вашого ШІ-агента через додавання потрібних пакетів і створення гри. Клонуйте стартер для вашого стилю камери під назвою вашої гри.

git clone https://github.com/IT-Kamianets/3d-constructor-character-view <game-name>

Увесь шлях — від вибору конструктора до надсилання змін рушія — описано на сторінці Почати гру.

Встановлення пакетів по одному

  1. У Unity відкрийте Window › Package Manager.
  2. Виберіть + › Add package from git URL.
  3. Вставте URL пакета з таблиці нижче.

Спершу додайте залежності. Unity встановлює Unity-залежності пакета (наприклад, Input System), але не інші git-пакети. Тож перед пакетом додайте кожен потрібний йому пакет рушія: їх перелічено на сторінці кожного пакета в розділі «Залежності».

Для Character View почніть із цього набору з усіма необхідними залежностями:

{
  "dependencies": {
    "com.itkamianets.3d-unity-core": "https://github.com/IT-Kamianets/3d-unity-core.git",
    "com.itkamianets.3d-unity-input": "https://github.com/IT-Kamianets/3d-unity-input.git",
    "com.itkamianets.3d-unity-character": "https://github.com/IT-Kamianets/3d-unity-character.git",
    "com.itkamianets.3d-constructor-character-view-camera": "https://github.com/IT-Kamianets/3d-constructor-character-view-camera.git",
    "com.itkamianets.3d-constructor-character-view-controls": "https://github.com/IT-Kamianets/3d-constructor-character-view-controls.git"
  }
}

Перед релізом закріпіть кожну Git-залежність на опублікованому тегу або повному SHA коміту. Версія пакета не гарантує наявність однойменного тегу. Замініть <tag-or-commit> на дійсну ревізію.

Спільна оболонка гри за потребою

Поточні Unity-ігри використовують 3d-unity-shell для меню та лобі, 3d-unity-account для входу, 3d-unity-update для оновлень релізів і 3d-unity-net для мережевої гри з авторитетним хостом. Додайте оболонку разом з усіма її залежностями рушія:

{
  "dependencies": {
    "com.itkamianets.3d-unity-core": "https://github.com/IT-Kamianets/3d-unity-core.git",
    "com.itkamianets.3d-unity-input": "https://github.com/IT-Kamianets/3d-unity-input.git",
    "com.itkamianets.3d-unity-ui": "https://github.com/IT-Kamianets/3d-unity-ui.git",
    "com.itkamianets.3d-unity-account": "https://github.com/IT-Kamianets/3d-unity-account.git",
    "com.itkamianets.3d-unity-update": "https://github.com/IT-Kamianets/3d-unity-update.git",
    "com.itkamianets.3d-unity-net": "https://github.com/IT-Kamianets/3d-unity-net.git",
    "com.itkamianets.3d-unity-shell": "https://github.com/IT-Kamianets/3d-unity-shell.git"
  }
}

Налаштуйте власні ShellConfig і GameAccount.Config перед запуском оболонки. Підключення за прямою адресою та Unity Relay — окремі варіанти; для онлайн-гри потрібні ваші налаштування Unity Services.

Пакети

ПакетURL для Package ManagerВерсія
3d-scene-schemaФайли JSON Schema, не пакет Unity 1.1.0
3d-asset-schemaФайли JSON Schema, не пакет Unity 1.1.0
3d-network-schemaФайли JSON Schema, не пакет Unity 1.0.0
3d-save-schemaФайли JSON Schema, не пакет Unity 0.1.0
3d-inventory-schemaФайли JSON Schema, не пакет Unity 0.1.0
3d-unity-core https://github.com/IT-Kamianets/3d-unity-core.git 0.1.0
3d-unity-scene https://github.com/IT-Kamianets/3d-unity-scene.git 0.1.0
3d-unity-input https://github.com/IT-Kamianets/3d-unity-input.git 0.1.0
3d-unity-character https://github.com/IT-Kamianets/3d-unity-character.git 0.1.0
3d-unity-assets https://github.com/IT-Kamianets/3d-unity-assets.git 0.1.0
3d-unity-audio https://github.com/IT-Kamianets/3d-unity-audio.git 0.1.0
3d-unity-ui https://github.com/IT-Kamianets/3d-unity-ui.git 0.1.1
3d-unity-save https://github.com/IT-Kamianets/3d-unity-save.git 0.1.1
3d-unity-synth https://github.com/IT-Kamianets/3d-unity-synth.git 0.1.0
3d-unity-graybox https://github.com/IT-Kamianets/3d-unity-graybox.git 0.2.0
3d-unity-shell https://github.com/IT-Kamianets/3d-unity-shell.git 0.2.2
3d-unity-account https://github.com/IT-Kamianets/3d-unity-account.git 0.2.0
3d-unity-update https://github.com/IT-Kamianets/3d-unity-update.git 0.1.0
3d-unity-net https://github.com/IT-Kamianets/3d-unity-net.git 0.1.0
3d-unity-interaction https://github.com/IT-Kamianets/3d-unity-interaction.git 0.1.0
3d-unity-spatial https://github.com/IT-Kamianets/3d-unity-spatial.git 0.1.0
3d-unity-xr https://github.com/IT-Kamianets/3d-unity-xr.git 0.1.0
3d-unity-firebase https://github.com/IT-Kamianets/3d-unity-firebase.git 0.1.0
3d-unity-assetra https://github.com/IT-Kamianets/3d-unity-assetra.git 0.1.0
3d-unity-network https://github.com/IT-Kamianets/3d-unity-network.git 0.1.0
3d-unity-combat https://github.com/IT-Kamianets/3d-unity-combat.git 0.2.0
3d-unity-feedback https://github.com/IT-Kamianets/3d-unity-feedback.git 0.1.0
3d-unity-ai https://github.com/IT-Kamianets/3d-unity-ai.git 0.2.0
3d-unity-inventory https://github.com/IT-Kamianets/3d-unity-inventory.git 0.1.0
3d-constructor-character-view-camera https://github.com/IT-Kamianets/3d-constructor-character-view-camera.git 0.1.0
3d-constructor-character-view-controls https://github.com/IT-Kamianets/3d-constructor-character-view-controls.git 0.1.0
3d-constructor-vr-controls https://github.com/IT-Kamianets/3d-constructor-vr-controls.git 0.1.0
3d-constructor-character-view-templateUnity-проєкт: склонуйте репозиторій 0.1.0
3d-unity-fixed-camera https://github.com/IT-Kamianets/3d-unity-fixed-camera.git 0.1.0
3d-unity-topdown-camera https://github.com/IT-Kamianets/3d-unity-topdown-camera.git 0.1.0