Forum rules - please read before posting.

How to create a persistent Volume post processing object?

Hello,

What is the correct way of spawning a Volume post processing object when loading a scene?
Currently I have it placed manually on one scene, but when I switch to another scene it breaks.

What I would like ideally:

  • Detect if object exists
  • Spawn a new prefab if it doesn't exist
  • Keep it alive

This should allow me to test scenes without manually placing that prefab on each scene(unless there is AC way of doing so)
If you can, please point me to the documentation where I can read on that, but I couldn't find anything that could help me.

Comments

  • Welcome to the comunity, @tarnos12. You can use AC's Events Editor to do this.

    Choose Adventure Creator -> Editors -> Events Editor in the top toolbar, and then define a new Scene / Begin game event. This will fire once when the game begins, regardless of scene.

    From here, you can then define an ActionList asset that runs an Object: Add or remove Action, which will spawn the prefab you assign it.

    To ensure that this prefab doesn't get removed when switching to a new scene, you can attach AC's Survive scene changes component to it.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.