Skip to content

Commit

Permalink
Changed to allow using reflection baking in unity 2018.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
svermeulen committed Apr 22, 2019
1 parent 709c4f5 commit c59e070
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static void Initialize()

static void OnAssemblyCompiled(string assemblyAssetPath, CompilerMessage[] messages)
{
#if !UNITY_2018
#if !UNITY_2018_1_OR_NEWER
if (Application.isEditor && !BuildPipeline.isBuildingPlayer)
{
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public override void OnInspectorGUI()
ReflectionBakingInternalUtil.TryForceUnityFullCompile();
}

#if !UNITY_2018
#if !UNITY_2018_1_OR_NEWER
if (_isEnabledInEditor.boolValue)
{
EditorGUILayout.HelpBox(
Expand Down

0 comments on commit c59e070

Please sign in to comment.