-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
area-PhysicsbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Release Type: GitHub
Version: master
Platform(s): N/A
Describe the bug
I'm not currently sure why or if always but on the below line the parentScene
is not set, which results in later inability to display debug colliders in game.
parentScene = Services.GetSafeServiceAs<SceneSystem>()?.SceneInstance?.RootScene; |
To Reproduce
Steps to reproduce the behavior:
- Create a new project
- Add a static collider to the ground
- Add Debug physics shapes script
- Launch game and press Ctrl+Shift+P
Expected behavior
Debug collider shapes are displayed.
Additional context
The issue can be easily mitigated by adding
SceneSystem.SceneInstance.GetProcessor<PhysicsProcessor>().ParentScene = Entity.Scene;
to the beginning of the debug script.
Metadata
Metadata
Assignees
Labels
area-PhysicsbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers