Testing of Mutable Runtime Reference Image Library in Unity Editor: XR Simulation + AR Foundation
This is a Video Demo on How to test Mutable Runtime Reference Image Library correctly in Unity based on my Text Tutorial ⭐ #MutableRuntimeReferenceImageLibrary
MutableRuntimeReferenceImageLibrary is intended to add Images for Tracking on the go when the user has running app on his phone. Using AR Foundation and the next tips, you can test the Adding of New Images into the Mutable Library in the Runtime correctly with XR Simulation.
---------------------------------
Demo Scene to Test
---------------------------------
There is BasicImageTracking Example Scene that uses Mutable Library in AR Foundation Samples, and I:
🧶 1. Duplicated the Simulated Environment by Default: Window — XR — AR Foundation — XR Environment — XR Environment overlay — Pencil icon — Duplicate Environment.
🧶 2. Added one more Tracked Image next to the existing one on the Scene and set the Image field of its Simulated Tracked Image component for All Images: to bind a simulated tracked image to your reference image library.
🧶 3. Added the next parts of code in the OnTrackablesChanged() method of .
-----------------------------------
2 Approaches to Test
-----------------------------------
You can test the Adding of New Image in Runtime using 2 predefined lists.
🧶 1. added list
foreach (var newImage in added)
{
(“added : “ );
}
There is no reaction to added list when a new image added to the library during runtime because all Simulated Tracked Images were in the Camera View at start.
The Simulated Environment assumes that AR Image is static in the environment, so once it appears in the camera view, it marks as static because this is not a separate image — this is a container for an image () which is not moving.
To trigger added list, you just need to add a new into the camera view: you can just place the SimulatedTrackedImage Game Objects before the Scene Start at some distance to the right/to the left from the Camera View.
This method will not work for true testing goals:
Scene View — open Duplicated Simulation Environment prefab to observe camera position — root Game Object — Simulation Environment component — Camera Starting Pose — Rotation/Position.
🧶 2. updated list
foreach (var newImage in updated)
{
(“updated: “ );
}
It can trigger perfectly for Added Image in Runtime and you can track the first appearance after adding an image to the library.
-----------------
Resources
-----------------
🧶 Complete AR Testing Tutorial:
🧶 My AR Assets:
#AR #Unity #ImageTracking
19 views
936
381
4 days ago 00:29:28 1
🎥 Can you guess the Anime by the First 10 Seconds? 🔥 Anime Quiz
5 days ago 00:31:06 1
Whistleblow Uncovers Covid Scam
1 week ago 00:03:02 1
SPX Options Trading : Strategies for Big Gains!
2 weeks ago 00:16:36 1
PS5 Pro | LEGO Horizon Adventures | Performance / Gameplay
2 weeks ago 00:06:09 1
Audi Adblue Issues - P20BD Reductant Heater Circuit - Engine light on Audi Q5 TDI
2 weeks ago 01:10:29 1
Поиграли в 8 пропущенных игр [РефАААнд?!]
3 weeks ago 00:17:21 1
Russian Video, the first orbital flight of Buran
3 weeks ago 00:02:02 12
DayZ Update Teaser
3 weeks ago 00:08:02 1
ЗАСМЕЯЛСЯ ПОДПИСАЛСЯ | Тест на Психику Челендж | ЛУЧШИЕ ПРИКОЛЫ 2024 года | УГАР #105
4 weeks ago 00:39:19 1
Historian Answers Witchcraft Questions | Tech Support | WIRED