Skip to content

Commit

Permalink
Resolved compilation with older version of Unity
Browse files Browse the repository at this point in the history
  • Loading branch information
voldien committed Feb 10, 2023
1 parent ff2d95e commit 3b75ab6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Editor/Builder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ internal static void InternalBuildTarget(BuildTarget buildTarget)
buildPlayerOptions.target = buildTarget.target;
buildPlayerOptions.targetGroup = buildTarget.targetGroup;
buildPlayerOptions.options = buildTarget.options;
buildPlayerOptions.extraScriptingDefines = buildTarget.ScriptingDefines;
#if UNITY_2021_1_OR_NEWER
buildPlayerOptions.extraScriptingDefines = buildTarget.ScriptingDefines;
#endif


/* assign all scenes. */
Expand Down

0 comments on commit 3b75ab6

Please sign in to comment.