-
Notifications
You must be signed in to change notification settings - Fork 11
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
Enhacement: Show scene limits through debug panel (#1873) #2023
Enhacement: Show scene limits through debug panel (#1873) #2023
Conversation
It shows the name, the number of parcels and the height of the current scene in the debug panel.
The box is not visible when the avatar visits zones that are not properly set as scenes.
…ntainer builder Now the cube uses the Scene shader. Added a null check to prevent the build to crash when not using --debug.
Windows and Mac build successfull in Unity Cloud! You can find a link to the downloadable artifact below.
|
WalkthroughThe pull request introduces several changes across multiple files, primarily enhancing debugging capabilities within the scene management system. Key modifications include the addition of a new constant for current scene categorization, adjustments to diagnostic settings, and updates to the Changes
Possibly related PRs
Suggested labels
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA testing for this ticket is complete, and the feature works as expected. Here are two observations:
- The scene name displays as a sequence of letters rather than something more recognizable (e.g., "dollhouse").
- When the "Show scene bounds" checkbox is enabled, there is a visual glitch on the scene's floor. This issue only occurs when the checkbox is selected and does not affect functionality (e.g., second scene visited in the video --> seed).
Is this expected? @QThund
🟢 Everything else is functioning correctly. Approved by QA!
Explorer.2024-09-11.15-52-58.mp4
Yes it is. The glitch happens due to z-fighting between the base of the red box and the ground of the scene. It can be easily fixed if needed. About the name, I didn't find an easy way to get a "prettier" name. That name may be useful to search for the scene in the Unity scene hierarchy. |
What does this PR change?
How to test the changes?
The panel should show information about the current scene (name, parcels and height). If you enable the "Show scene bounds" checkbox, a red box should surround the scene.
If there is no scene info, "" should be displayed, and the box should not be visible.
Recording.2024-09-11.170211.mp4
Summary by CodeRabbit
New Features
CURRENT_SCENE
for better categorization in debugging.Bug Fixes
Documentation
ISceneFacade
interface for clarity by repositioning theIsEmpty
property.Chores
unity-shared-dependencies
to track the latest version.