IProcessSceneWithReport invokes the following callback when building the player, building Addressable Groups or entering playmode: void OnProcessScene(Scene scene, BuildReport report)
When entering playmode or building Addressables, the BuildReport argument is null. This way I can differentiate between entering playmode or building a player. However, now since Addressables are used in my project, I need to know when Addressable scenes are being processed during the bundle build, but not during enter playmode. Any ideas how to do this?
I’m stripping GameObjects from scenes during the build. Previously (before using Addressables), this was very easy with this callback and simply checking the BuildReport argument. I want my GameObject to be removed when it’s a real build, but I need them to stay during play mode in the editor.