Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.04k stars 1.14k forks source link

image name in SimulatedTrackedImage #1108

Closed kndol closed 9 months ago

kndol commented 1 year ago

Is your feature request related to a problem? Please describe. I use image names to distinguish multiple tracked images. And I find the tracked image name is null in the simulator.

Describe the solution you'd like It would be nice to be able to name the image in SimulatedTrackedImage.

andyb-unity commented 11 months ago

Hi @kndol,

Can you confirm whether you have "Keep Texture at Runtime" enabled in your image library? https://github.com/Unity-Technologies/arfoundation-samples/issues/1039#issuecomment-1416492352

All existing versions of AR Foundation require "Keep Texture at Runtime" in order to load reference image information in Simulation. We are working on removing this requirement for AR Foundation 6.

andyb-unity commented 9 months ago

Closing this issue due to inactivity. Feel free to re-open it if you have further questions.

In 6.0.0-pre.5 (coming late December or early January), we made a change to XR Simulation so that the image name field is populated even if Keep Texture at Runtime is disabled. This should resolve your concern when you're ready to upgrade to 6.0.

Until then you must have Keep Texture at Runtime enabled to get image names in XR Simulation in AR Foundation 5.1.