stride icon indicating copy to clipboard operation
stride copied to clipboard

Clean UI with no post FX broken when no model present in the scene.

Open mmujic2 opened this issue 2 years ago • 1 comments

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:

  1. Create new project and perform the steps as shown in the link above.
  2. Create new Scene and set the created scene as the default scene in game settings.
  3. In the newly created scene add a camera and an Entity with a UI component attached to it.
  4. Create basic page with one button and text and attach the page to the UI component of the entity.
  5. 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).
  6. After launching game the post FX should still happen and after clicking the button the warning should pop up.
  7. 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 image image

Warning that pops up after changing scene image

After adding the default ground model that comes with the project template: image image

mmujic2 avatar Aug 21 '22 19:08 mmujic2

~~Did you try using a background skybox? Or even a background sprite?~~

NicusorN5 avatar Nov 11 '22 21:11 NicusorN5