How to make DropLoader instantiated objects hide when starting WebXR AR on mobile?

I’m using DropLoader.ts to load in models at runtime, and also a separate GLTFLoader to spawn in GLTF files, but they stay visible in AR prior to raycasting to place the AR Scene on the floor the usual Needle way. I have tried making a reference to the ‘Content’ gameobject which is the Web AR Session Root and using that to add the instantiated GLTF models children of it as soon as they are loaded but that doesn’t work.

I know if I do a build with some existing meshes on the ‘Content’ Web AR Session Root, they stay hidden on the start of AR until I tap on the circle to place

Original Post on Discord

by user 103054507105067008

That would suggest that the objects are not actually children of the WebARSessionRoot - the way it works that this object is disabled during placement.

I am definitely setting the spawned object to be the child of it - see rC is the spawned mesh I added to the children of Content
image.png

by user 103054507105067008

by user 103054507105067008

Nvm Mozilla WebXR viewer was caching too good

by user 103054507105067008

Ah ok :wink: