Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pressing the Windows Key in the editor disables underwater rendering #1124

Open
2 tasks done
Revmatek opened this issue Jun 19, 2023 · 3 comments
Open
2 tasks done

Pressing the Windows Key in the editor disables underwater rendering #1124

Revmatek opened this issue Jun 19, 2023 · 3 comments

Comments

@Revmatek
Copy link

Revmatek commented Jun 19, 2023

Is there an existing issue for this?

  • I have searched the existing issues.

Have you checked the documentation to resolve your problem?

  • I have read the linked documentation and could not resolve my issue.

Current Behavior

While debugging gameplay or otherwise using the editor with camera above or below water pressing the windows key disables the ocean
image

Expected Behavior

Pressing the windows key in the editor should not disable features
image

Steps To Reproduce

  1. Open the "main" scene
  2. Hit play
  3. Move the camera underwater
  4. Press the windows key
  5. Observe most of the ocean (underwater) disappears

Unity Version

2021.3.26f1

Crest Version

4.17.3

Render Pipeline

Built-In

Editor or Standalone

Editor (Edit Mode), Editor (Play Mode)

Environment

- OS: Windows

Anything else?

This does not occur at runtime so it is not really a big deal. It can also happen in scene view. This was known working in 4.15.2

@daleeidd
Copy link
Collaborator

This is due to Unity going out of focus where Crest will pause any work so some things may stop working. This was added as doing work when out of focus has always been problematic in the editor (source of leaks) and saves on energy.

I'll leave this open for a while as I may look at it again and maybe keep the UR running.

@Revmatek
Copy link
Author

For anyone reading you can disable this by commenting out all the references to:
UnityEditorInternal.InternalEditorUtility.isApplicationActive
image

@Revmatek
Copy link
Author

This is due to Unity going out of focus where Crest will pause any work so some things may stop working. This was added as doing work when out of focus has always been problematic in the editor (source of leaks) and saves on energy.

I'll leave this open for a while as I may look at it again and maybe keep the UR running.

This is useful for testing things locally in multiplayer and it can be problematic sometimes when underwater tests are happening. Could be a flag or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants