Unity Assets
Trending

AR Shooter (AR Foundation: ARKit, ARCore) — Unity Asset

AR Shooter (Unity Asset) — first-person AR Survival Shooter: kill the zombies and save your life with full immersion in the game! Feel the power of Unity FPS AR Shooter.

Unity Asset Store | Download Button

AR Engine

The game uses 2 AR Engines with auto selection:

  1. AR Foundation (ARCore, ARKit) with real Plane Detection (includes tutorial, visual plane confirmation/resetting, placing the game around the player) & AR Safe Zone (the player needed to stay in the Safe Zone to avoid accidents during the game and meet enemies with honor; the game will be paused when leaving the Safe Zone).
  2. AR Camera Lite will be used when AR Foundation is not supported by the mobile device. It’s also used when Testing in Unity Editor: the game in Editor is always run with this Engine.

Features of AR Shooter

Bring the enchanting Power of Augmented Reality into your amazing AR Shooting Game or App:

  • Feel the Effect of Presence with AR.
  • Kill 3 Types of Zombies in Real World: Bunnies, Bears & Elephants.
  • Defend “Iron Throne” from Enemy Damage.
  • Be Warned about Enemy Attacks through Red Fullscreen Flashes & Health Bar.
  • Restart the Game without Scene Reloading.
  • Real-Time AR Shadows (docs).
  • Mobile Optimizations:
    • Object Pool with separate Enemy Manager for each Zombie prefab;
    • TextMesh PRO for Texts to update them when really needed.

Package Contains

Limitations

Learn Limitations separately for Each Asset included in package.

Tutorial

This tutorial is relevant for AR Shooter 3.2+.
Tutorial for the previous version can be found only in the asset folder.

Getting Started with AR Shooter

Folders & Files in package by default:

  • Makaka Games;
  • XR.

Steps

If you have any issues with the first launch then just Reach Support with Invoice Number and Get Help.

If you read this tutorial from PDF, first check the latest docs online to get actual information.

  1. Create New Unity Project with Unity 2021.1.12.
  2. Build Settings > iOS or Android > Switch Platform.
  3. Next Packages must be manually installed with Git & Unity Package Manager:
    1. Native Camera 1.2.9.
  4. Download and import AR Shooter into Unity.
    1. Warning Windows:
      1. Click “Import” to overwrite the Project Settings with predefined ones.
      2. Click “Install/Upgrade” for Package Manager Dependencies.
      3. Click “No” when enabling the backends for the new input system.
  5. Next Packages are provided with Unity Package Manager, and they are already installed for this Asset by default. If packages are missing (Warning Window did not appear) then install them again with Unity Package Manager (with advanced settings enabled: “Pre-release Packages” & “Show Dependencies”):
    1. TextMesh Pro 3.0.6:
      1. Always Required: Window > TextMeshPro > Import TMP Essential Resources.
    2. AI Navigation 1.0.0-exp.3;
    3. AR Foundation 4.1.7;
    4. AR Subsystems 4.1.7;
    5. ARCore XR Plugin 4.1.7;
    6. ARKit XR Plugin 4.1.7;
    7. Editor Coroutines 1.0.0;
    8. Input System 1.0.2;
    9. Subsystem Registration 1.1.0;
    10. XR Legacy Input Helpers 2.1.7;
    11. XR Plugin Management 4.0.1.
  6. Reopen Unity Project.
  7. Open Scene: Makaka Games > AR > AR Shooter > Scenes > Game.
  8. Test in the Unity Editor or Build for Mobile.

Each Unity Asset included in AR Shooter has its own documentation in the target folder or on the website (the latest docs).

How to set up your own Enemy prefab and customize Enemy Amount

  1. Duplicate one of the customized prefabs: ZomBunnyAR.
    1. Indicate your 3D-model, audio, etc. inside the new prefab.
  2. In $ game object select appropriate Enemy Manager: EnemyManagerZomBunny.
    1. In Random Object Pooler component indicate your own (duplicated & customized) prefab & Maximum Enemy Amount (Init Pooled Amount).
    2. In Enemy Manager XR set up Spawn Points & Timing as you need.
AR Shooter — Unity Asset — AR Survival Shooter — AR Foundation (ARCore, ARKit) — Enemy Manager

Testing

Basic Editor Testing (without smartphone & plane detection) is provided by AR Camera Lite (docs) to imitate smartphone motion:

  • translational: WASDQE keys — such way you can test AR Safe Zone.
  • rotational: Right Mouse Button.

Use Left Mouse Button to Shoot.

Use Fullscreen of Game View in Unity Editor while testing to get a seamless experience.

Auto Selection of AR Engine goes next way:

  1. The game starts with AR Camera Lite and checks the support of the gyroscope. If gyro is not supported then the game will be run with an accelerometer, otherwise, step 2 will be run.
  2. AR Foundation support is checked by the AR Foundation Support Checker. If it’s not supported then the game will be run with gyro using AR Camera Lite, otherwise, the game will be run with AR Foundation.

On the Mobile Device, you can forcibly test Game Version with AR Camera Lite and:

  • gyroscope on AR Foundation supported devices: Hierarchy View > AR Foundation Support Checker > Is AR Unsupported Not In Editor Test > Check, then Build And Run.
  • accelerometer. Check Docs of AR Camera Lite.

Tested with Mobile Devices

  • iOS on iPhone XS Max.
  • Android on Samsung ‪Galaxy A71.

Support

First, read the latest docs online.
If it didn’t help, get the support.

Changelog

Check the current version of AR Shooter on Asset Store.
The latest versions will be added as soon as possible.

3.2:

3.1:

3.0:

  • Unity 2021.1.5;
  • Game Version with AR Foundation (ARCore, ARKit) & Plane Detection. It will run by default if the device supports it, otherwise, Game Version with AR Camera Lite will be run.
  • AR Safe Zone for Game Version with AR Foundation. The player needed to stay in the Safe Zone to avoid accidents during the game and meet enemies with honor! The game will be paused when leaving the Safe Zone.
  • Using of Native Camera to check Camera Permission before the main scene.
  • Restart Button on Game Over screen: restart without Reloading of Scene.
  • Menu Button.

2.3:

2.2:

  • Unity 2018.3;
  • New Chapters in AR Shooter’s Documentation:
    • How to set up your own Enemy prefab;
    • How to change Death Animation.

2.1.1:

  • Fix StartCanvas, so you can seamlessly add buttons to HUDCanvas if you want

2.1:

2.0:

New Architecture of AR Shooter with Object Pools: EnemyManagersXRControl initializes each zombie type (EnemyManagerXR with Object Pool) now (more performance). There are 3 object pools in total: ZomBunny, ZomBear, Hellephant.

  • Unity 2018.1;
  • Object Pool with separate Enemy Manager for each Zombie prefab;
  • Caching of all Components & Animation Parameters for Enemy Prefabs;
  • Start Tutorial in Game Scene.

Optimizations:

  • Merge EnemyMovementXR.cs with EnemyHealthXR.cs;
  • InvokeRepeating () => Coroutine in EnemyManagerXR.cs;
  • Set “navMeshAgent.enabled = false;” once after Death;
  • Enemies are disappearing right after death now.

1.1 (More Complete Project as a Separate Game):

  • Shoot Animation,
  • Menu Scene,
  • Load Screen Control,
  • Colored Particles for Zombies,
  • Mobile Shaders for enemies,
  • Public Unity Events for more flexibility,
  • And more…
Unity Assets

Support for Unity Assets

I am Andrey Sirota, Founder of Makaka Games and full-time Publisher on Unity Asset Store. First, read the latest docs online. If it didn’t help, get the support.

Related Articles

4 Comments

  1. Hello Makaka, I need shop your module, i have a question:

    Since which android version is supported?

    Thanks

  2. Andrew, Can I play this before buy to see features runing or have a problem to deploy this to the playstore (android)?
    maybe I know answare but we need ask…

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment moderation is enabled. Your comment may take some time to appear.

Back to top button