Virtual Pet Game Template
  • VIRTUAL PET GAME TEMPLATE
  • Getting Started
    • ๐ŸŽฏ Project Setup Guide
    • ๐Ÿงฉ Home Scene Overview
    • ๐Ÿ—บ๏ธ UI Main Menu
    • ๐Ÿ—บ๏ธ LoadingManager
    • ๐Ÿ—บ๏ธ GameInstance
    • ๐Ÿ—บ๏ธ ToolsManager
    • ๐Ÿ—บ๏ธ AudioManager
    • ๐Ÿ—บ๏ธ LanguageManager
    • ๐Ÿ—บ๏ธ MonetizationManager
    • ๐Ÿ—บ๏ธ PlayerSave
  • Modifying the project
    • ๐Ÿพ How to Add a New Pet
    • ๐Ÿ“œHow Add a New Pet Rules
    • ๐Ÿ’ฐ How to Add a New Currency
    • ๐ŸŽ How to Add a New Food Item
    • ๐Ÿงข Adding a New Accessory
    • ๐ŸŽฎ How to Add a New Minigame
  • Modifying Minigames
    • ๐ŸŒค๏ธ Minigame "Jump Sky"
    • ๐Ÿ” Minigame "Food Flicker"
    • ๐Ÿฆ Minigame โ€œFlappyโ€
    • ๐Ÿ’Ž Minigame โ€œGem Hunterโ€
Powered by GitBook
On this page
  • ๐Ÿš€ Recommended: Start with a New Project
  • โš™๏ธ Advanced: Importing into an Existing Project
  • โœ… You're Ready!
  1. Getting Started

๐ŸŽฏ Project Setup Guide

Project Setup Guide โ€“ Virtual Pet Game Template

Welcome to the Virtual Pet Game Template! This page will walk you through the setup process, whether you're starting a new Unity project or integrating the template into an existing one.


๐Ÿš€ Recommended: Start with a New Project

To ensure the template works exactly as intended, it's highly recommended to start with a new Unity project using URP (Universal Render Pipeline).

Step-by-Step Installation โ€“ New Project

  1. Open Unity Hub and click New Project.

  2. Choose the URP 2D or 3D template.

  3. Name your project and create it.

  4. Once Unity opens, import the Virtual Pet Game Template package.

  5. Let Unity compile and finish the import.

  6. Open the PetCare/Res/Scenes/Home scene to start.

  7. Play the scene โ€“ everything is ready to go!

If you get errors after importing:

Open the PackageManager, select the Unity Registry tab and install the In-App Purchasing and Advertisement Legacy packages


โš™๏ธ Advanced: Importing into an Existing Project

If you already have a Unity project and want to integrate the template, follow these steps carefully.

Step-by-Step Installation โ€“ Existing Project

  1. Backup your current project.

  2. Import the Virtual Pet Game Template package.

  3. Switch to URP if your project is not already using it:

    • Go to Edit > Project Settings > Graphics and assign a URP pipeline asset.

    • Convert your existing materials or sprites if needed.

  4. Set Required Tags & Layers:

    Go to Edit > Project Settings > Tags and Layers, and add the following:

    • Player (Tag)

    • Platform (Layer)

    • Food (Layer)

  5. Assign Tags & Layers in Prefabs:

    • Player Tag: Assign to all player controllers (e.g., FlappyPlayerController, JumpPlayerController).

    • Platform Layer: Assign to platform prefabs used in the Jump Sky mini-game.

    • Food Layer: Assign to food prefabs used in the Food Flick mini-game.

โš ๏ธ Note: While integration is possible in existing projects, we strongly recommend starting with a fresh project to avoid conflicts and missing references.


โœ… You're Ready!

Youโ€™re now ready to begin developing with the Virtual Pet Game Template. If you're unsure where to go next, we recommend checking out the Scene Structure and Feature Overview pages next.

Happy developing! ๐Ÿพ

PreviousVIRTUAL PET GAME TEMPLATENext๐Ÿงฉ Home Scene Overview

Last updated 9 days ago