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

Fix to do dispatch agent if mapped scene is not active when launching autopilot #77

Merged
merged 4 commits into from
Oct 22, 2024

Conversation

nowsprinting
Copy link
Contributor

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

@nowsprinting nowsprinting requested a review from a team as a code owner October 20, 2024 11:18
@github-actions github-actions bot added the fix label Oct 20, 2024
@@ -8,9 +8,11 @@
using DeNA.Anjin.Loggers;
using DeNA.Anjin.Settings;
using DeNA.Anjin.Utilities;
using UnityEditor;
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! fix in 95acd36

@nowsprinting
Copy link
Contributor Author

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.
Copy link
Contributor

@bo40 bo40 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bo40 bo40 merged commit f7065af into DeNA:master Oct 22, 2024
1 check passed
@bo40
Copy link
Contributor

bo40 commented Oct 22, 2024

@nowsprinting

Thanks for your contribution.

@nowsprinting nowsprinting deleted the fix/agent_dispatch_on_launch branch October 22, 2024 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants