-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix to do dispatch agent if mapped scene is not active when launching autopilot #77
Conversation
Runtime/Autopilot.cs
Outdated
@@ -8,9 +8,11 @@ | |||
using DeNA.Anjin.Loggers; | |||
using DeNA.Anjin.Settings; | |||
using DeNA.Anjin.Utilities; | |||
using UnityEditor; |
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.
[ASK]
Maybe #if UNITY_EDITOR ... #endif
symbol guard is necessary?
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.
Thanks! fix in 95acd36
I will rebase after revert 6352869 |
… autopilot Situation: Launch autopilot while in play mode, or player build. And multiple scenes are loaded, but the scene the agent is mapped to is not active (it is loaded). Problem: Did not dispatch agent mapped to a loaded scene. Fixes: Check mapping all loaded scenes if active scene is not mapped on launch.
6352869
to
f2d5f9f
Compare
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.
LGTM
Thanks for your contribution. |
Problem
Situation
Launch autopilot while in play mode or running player build.
Multiple scenes are loaded, but the scene the agent is mapped to is not active (it is loaded).
Actual
Did not dispatch agent.
Expected
Dispatch agent mapped in the loaded (not active) scene.
Fixes
Check mapping all loaded scenes if active scene is not mapped on launch.
Priority
I want it to be released at the same time as #76
Contribution License Agreement