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

fixed headless mode not working in unity 2021.2 #22

Merged
merged 1 commit into from
Nov 5, 2021
Merged

fixed headless mode not working in unity 2021.2 #22

merged 1 commit into from
Nov 5, 2021

Conversation

Fijo
Copy link
Contributor

@Fijo Fijo commented Nov 4, 2021

Using this toolkit in my project using unity 2021.2 I've noticed that enabling headless mode from the menu wasn't doing anything.
Since I really wanted to use this feature I did some troubleshooting and it turns out it was working correctly up until unity 2021.1.
However as of unity 2021.2 they made BuildOptions.EnableHeadlessMode obsolete and it seams like they are already ignoring it entirely too.

Luckily you can still get the same behaviour by setting

BuildPlayerOptions.subtarget = (int)StandaloneBuildSubtarget.Server;

It's kinda wired they made that property an int but it works perfectly.
I also bumped the minor version on the package.json for upm.

@neuecc
Copy link
Member

neuecc commented Nov 5, 2021

thanks!
I'll release soon.

@neuecc neuecc merged commit 021fcd8 into Cysharp:master Nov 5, 2021
@neuecc
Copy link
Member

neuecc commented Nov 5, 2021

I've released 2.5.3.

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

Successfully merging this pull request may close these issues.

2 participants