AR Core Geospatial Creator

Hi all, I’m new to programming and need some help with a unity script. I’m building an AR application with Google’s geospatial creator and, following the various tutorials, I can position an object in space using cesium, but I would like an audio to start when this object is traced and appears in the smartphone camera. I thought about adding an instance of an audio source component and playing the audio clip once this system resolves an anchor and instantiates a new game object, maybe do it on the Start() or Awake() methods but all the ones I’ve tried don’t work. Could anyone help me?

audiosource has toggle for “Play on awake” (so it will play automatically, when the prefab is spawned)

but it wont play again if you look away and look back again, if you want to do that?

could try this to start play when its visible

Thanks, but sorry I think I explained myself badly. If I select “play on awake” on the audio source the audio starts as soon as I start the application and not when the augmented reality object is tracked. I’ve already tried this way and it doesn’t work because I need the sound to start when the object appears in the scene (that is, it is viewed by the camera) and not when the application starts. Vuforia has its own script to handle this which I tried to get back to work with the geospatial creator but it doesn’t work that way either.

oh sorry, mixed it with AR Foundation (where it spawns object) in geospatial it doesnt. (its already in the scene).

Then the 2nd method for onbecome visible script should work.

maybe geospatial has some event also, to get notification when object gets tracked to position?
but not sure where API Reference - ARCore Extensions for AR Foundation  |  Google for Developers

Thanks, i Will ready the documentation to find a right way.