How to process objects in a scene on building or entering play mode

Hey there

The docs are really hard to navigate for this stuff.

I need to modify a number of objects in every scene when my project is built. I’ve seen the PostProcessScene attribute, but from what I can gather of the docs that is called after the scene is built. It seems like I need something more like a PreProcessScene attribute.

Can anyone point me in the right direction or to some tutorials? Whenever I search for it I just find tons of info on post-processing effects and the like (bit more popular for some reason :P)

Thanks

Have you tried just implementing a pre-process build step and then iterate the scenes yourself based on what is in the editor settings?

I agree that having a pre-scene step that hands you the actual scene would be way slicker, but it might not be available.

1 Like

That’s a good lead thanks. I’m hoping there’s a better way, but if I combine that with some editor scripting for entering play mode it would do the job I think

1 Like