Skip to content

Conversation

@timbotimbo
Copy link
Collaborator

Description

A fix for a very minor issue.
The exporter script is supposed to show an error dialog on Unity versions that aren't 2022.3.

However the code within #if !UNITY_2022_3 doesn't even compile, it likely got left behind in a refactor because the 2022.3 compiler doesn't validate it.

This PR simply makes it compile again.

#if !UNITY_2022_3
-        ShowErrorMessage("This plugin only supports Unity 2022.3 LTS (Long Term Support).");
-        return ProjectExportCheckerResult.Failure();
+        ProjectExportHelpers.ShowErrorMessage("This plugin only supports Unity 2022.3 LTS (Long Term Support).");
+        return false;
#endif

@jamesncl jamesncl merged commit baea14e into learntoflutter:main Jul 4, 2024
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