stride
stride copied to clipboard
Clean UI with no post FX broken when no model present in the scene.
Release Type:
Official Release
Version:
4.1.0.1457-beta
Platform(s):
Windows
Describe the bug:
After performing steps for clean UI with no post processing (steps can be found here: https://github.com/herocrab/StrideCleanUI ), if a scene without a model is created (scene contains only camera and entity with UI component) the post FX still happens, and after loading a new scene a warning pops up that says:
[SceneCameraRenderer]: Warning: SceneCameraRenderer [82781b1c-a13f-4f6c-90fa-fce37b46a656] has no camera assigned to its Slot[Main]. Make sure a camera is enabled and assigned to the corresponding Slot.
To Reproduce:
Steps to reproduce the behavior:
- Create new project and perform the steps as shown in the link above.
- Create new Scene and set the created scene as the default scene in game settings.
- In the newly created scene add a camera and an Entity with a UI component attached to it.
- Create basic page with one button and text and attach the page to the UI component of the entity.
- Create a new sync script which will set the button.Click method to change scenes, attach script to camera (The scene has to be changed through the Click method, otherwise the warning doesn't pop up).
- After launching game the post FX should still happen and after clicking the button the warning should pop up.
- Add any model or entity containing model component to the created scene and the problem should be resolved.
Expected behavior:
The post FX shouldn't happen even if a model isn't added to the scene and the warning shouldn't pop up.
Screenshots:
No model added
Warning that pops up after changing scene
After adding the default ground model that comes with the project template:
~~Did you try using a background skybox? Or even a background sprite?~~