As an Associate of Unity Asset Store, this website earns from qualifying purchases and contains affiliate links: check the footer for more info.

AR Shadow (AR Foundation: ARKit/ARCore) — Unity Asset

AR Shadow (Unity Asset) implements simple real-time shadows for apps with Augmented Reality. This is Unity shader for transparent surfaces: it works independently of AR Engine.

Demo Project included: real Plane Detection (AR Foundation Engine: ARKit, ARCore) and Object Placing. AR Safety First.

Demo Template is an Excellent Starting Point to Create Apps and Games with Augmented Reality.

Package Contains

Check the Map of Unity Assets to choose the product that best suits your needs.

Features of AR Shadow & Plane Detection Demo Project

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

AR Shadow Shader is a part of Unity Assets

AR Shooter (docs).


VR + AR: Mixed Reality (MR) (docs).


AR Throw & Score (docs).


AR Throwing (docs).


AR Basketball (docs).


AR Camera Lite (docs).

Tutorial

This tutorial is relevant for AR Shadow 3.1+.
Tutorials for the previous versions can be found in the asset folder.

Getting started with AR Shadow

Folders & Files in the package by default:

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.3.4 & “3D” Template.
  2. File > Build Settings > iOS/Android > Switch Platform.
  3. Next Packages must be manually installed with Git & Unity Package Manager:
    1. Native Camera 1.3.3. Also, check a Hot Fix for v1.3.7.
  4. Download and import AR Shadow 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. AR Foundation 4.2.3;
    3. AR Subsystems 4.2.3;
    4. ARCore XR Plugin 4.2.3;
    5. ARKit XR Plugin 4.2.3;
    6. Editor Coroutines 1.0.0;
    7. Input System 1.3.0;
    8. Subsystem Registration 1.1.1;
    9. XR Legacy Input Helpers 2.1.9;
    10. XR Plugin Management 4.2.1.
  6. Reopen Unity Project.
  7. Open Scene: Makaka Games > AR > AR Shadow > Scenes > Demo.
  8. Test in the Unity Editor or Build for Mobile.

Object Placing in AR

Simple Cube is the Object for Placing in AR by default.

To set your own Game Object in Unity Editor, place it instead of this Cube in the same position on ARGround game object, keeping the hierarchy because the project is sensitive to it.

AR Safe Zone

The player needs to stay in the Safe Zone to avoid accidents during the game and continue the game itself! The player will be notified when leaving the Safe Zone.

Position & Form

By default, the Safe Zone is a Transparent Cube that can only be seen from the outside (that is, only when required to alert the player).

The Safe Zone is placed around the Player (AR Camera) on ARGround game object with a real approximate height of 2 meters and a real approximate width of 3.5 meters. It’s enough to place and observe your AR Object from all sides. You can change the size of the Safe Zone by changing its scale.

Every AR Experience is Unique, and you can also place the Safe Zone around the Placed Object: just delete the function call which moves the Safe Zone to the Camera position:
Hierarchy View > $ > ARShadowControl.cs > Event: OnARFoundationGameWorldInitialization > ARPlaneDetectionControl.MoveObjectXZLocalPosToCamera(AR Safe Zone).

Events

Reactions to Entering and Exiting the Safe Zone can be assigned in Hierarchy View > AR Session Origin > AR Camera > AR Player: AR Player Control.

AR Light Estimation

The mechanism estimates light data in physical space and applies it to game space depending on what is supported by a particular smartphone. All options are enabled by default:

On iOS, when AR Mode is not Face Tracking, then only Ambient Intensity and Ambient Color are supported.

You can turn it off in Hierarchy View > AR Session Origin > AR Camera: AR Camera Manager > Light Estimation. Control Script is attached to the Light game object.

AR Shadow and Any AR Engine

AR Shadow Shader works independently and does not require a specific AR engine.

AR Camera Lite

For Example, you can transform your game scene into Augmented Reality in 4 minutes with AR Shadow and AR Camera Lite (docs).

Vuforia Shadow

The next Video Demo shows the work of AR Shadow with Vuforia AR Engine.

Testing

Unity Project provides Basic Editor Testing (without smartphone & plane detection) to imitate smartphone motion (such way you can test AR Safe Zone & observe AR Object from all sides):

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

You can forcibly test the case when AR is Not Supported by checking the next flags in Hierarchy View > AR Foundation Support Checker:

Tested with Mobile Devices

Support

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

Changelog

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

3.1:

Improvements:

3.0 (Complete Template — Excellent Starting Point to Create AR Apps and Games):

Features:

Improvements:

2.1:

2.0:

Exit mobile version