Skip to content

Commit

Permalink
feat: allow users to detect mirror version 3
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpach committed Mar 31, 2019
1 parent e75d4b2 commit ee9c737
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Assets/Mirror/Editor/PreprocessorDefine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ static void AddDefineSymbols()
HashSet<string> defines = new HashSet<string>(PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup).Split(';'))
{
"MIRROR",
"MIRROR_1726_OR_NEWER"
"MIRROR_1726_OR_NEWER",
"MIRROR_3_0_OR_NEWER"
};
PlayerSettings.SetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup, string.Join(";", defines));
}
Expand Down

0 comments on commit ee9c737

Please sign in to comment.