Skip to content

Commit

Permalink
🐛 Fix WebGL build (magicblock-labs#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePicco authored Aug 19, 2022
1 parent 73c9e46 commit 89ebd3a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Runtime/Plugins/HideIf/Editor/HideIfAttributeDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if UNITY_EDITOR

using System;
using System.Collections.Generic;
using System.Linq;
Expand All @@ -6,6 +8,7 @@
using UnityEditor;
using HideIf_Utilities;


public abstract class HidingAttributeDrawer : PropertyDrawer {

/// <summary>
Expand Down Expand Up @@ -188,3 +191,5 @@ public static bool ShouldDraw(SerializedObject obj, HideIfEnumValueAttribute hid
return equal != hideIfEnumValueAttribute.hideIfEqual;
}
}

#endif
6 changes: 5 additions & 1 deletion Runtime/Plugins/HideIf/Editor/Utilities.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if UNITY_EDITOR

using System;
using System.Collections;
using System.Collections.Generic;
Expand Down Expand Up @@ -84,4 +86,6 @@ public static TValue GetOrAdd<TKey, TValue>(this Dictionary<TKey, TValue> dict,
return value;
}
}
}
}

#endif

0 comments on commit 89ebd3a

Please sign in to comment.