04-08-2024, 10:17 AM
I have a "Kart" with the Volume Controller. I want to use it in different scenes, in which I have created Tracks using CG. There's just one track per scene and the tracks don't change at runtime.
As I understand it, even though I have generated a stand-alone mesh for each Track, I'll still need to have the Curvy Generator hierarchy game objects active, but without the "Create Mesh" module, as the mesh has already been created. This way, I can find a reference to the created volume for the Track in individual scenes.
So, to set the Volume in the Volume Controller, I'll search using a tag for the game object having either the BuildShapeExtrusion or the BuildShape component. However, I haven't succeeded in getting a reference to the Volume by having a reference to these components. Obviously, I'm not doing it the right way.
I'd really appreciate it if you could tell me how to achieve this, so I can set the Volume to the Volume Controller after each scene is loaded.
Thank you!
As I understand it, even though I have generated a stand-alone mesh for each Track, I'll still need to have the Curvy Generator hierarchy game objects active, but without the "Create Mesh" module, as the mesh has already been created. This way, I can find a reference to the created volume for the Track in individual scenes.
So, to set the Volume in the Volume Controller, I'll search using a tag for the game object having either the BuildShapeExtrusion or the BuildShape component. However, I haven't succeeded in getting a reference to the Volume by having a reference to these components. Obviously, I'm not doing it the right way.
I'd really appreciate it if you could tell me how to achieve this, so I can set the Volume to the Volume Controller after each scene is loaded.
Thank you!