I want to test in Unity Editor the behavior on Video Demo below but for AR Foundation (iOS, Android).
I’ve already achieved such experience for AR Foundation on iOS using Live Build Testing, but I’m wondering is there an opportunity to test it with XR Simulation?
Runtime Changing the values of AR Tracked Image in the Inspector blocks new values.
You would need to find and edit the XR simulation environment component, are you editing the trackable object spawned under trackables, or the actual environment’s simulated tracked image component?
1 Like
This is expected. AR Tracked Images (like all trackables) are controlled by their trackable manager and placed according to the platform’s tracking information. In the case of XR Simulation, you need to move the SimulatedTrackedImage GameObject in the Simulation Environment to achieve this effect. (Admittedly this is a bit difficult because the environment is hidden from you in the Hierarchy, so you’ll have to write a script for this.)
1 Like
As you can see in the example video, there is no object spawned under trackable.
There is translation from 3D Movement and Rotation of Trackable to 2D Movement and Rotation for the Player (that is not object spawned under trackable).
Is it possible to show the Simulation Environment in the Hierarchy during Runtime?
We’ve been talking about this. I think we want to make this possible, but there are a lot of things you could do in the Hierarchy window that aren’t currently supported. Ie, you can’t rotate the floor, or add new bounding boxes at runtime, etc.
But moving a tracked image is supported, and this would be the easiest way to test it. Would you rather that we make the environment visible in the Hierarchy sooner, even if some things won’t be supported?
1 Like
@andyb-unity Is it possible to integrate this method of Input (via AR Tracked Image) as “Input Provider” to the New Input System?
I’m not sure what you are asking here. If you are asking if the input system can control tracked images, the answer is no. Tracked images are not controlled by the input system; they are controlled by the XRImageTrackingSubsystem.
By the way we discussed internally, and we agree with your feedback that we want to make the environment visible in the Hierarchy. In the meantime as a workaround you should be able to edit your simulation environment and add a script that moves any simulated tracked images.
1 Like