com.wallstop-studios.unity-helpers 2.0.0-rc63 → 2.0.0-rc64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,12 +2,13 @@
2
2
  {
3
3
  using System;
4
4
  using Extension;
5
- using UnityEditor;
6
- using UnityEditor.SceneManagement;
7
5
  using UnityEngine;
8
6
  using UnityEngine.SceneManagement;
9
7
  using Object = UnityEngine.Object;
10
-
8
+ #if UNITY_EDITOR
9
+ using UnityEditor;
10
+ using UnityEditor.SceneManagement;
11
+ #endif
11
12
  public static partial class Helpers
12
13
  {
13
14
  public static T Find<T>(this Object component, string tag, bool log = true)
@@ -4,13 +4,15 @@
4
4
  using System.Linq;
5
5
  using System.Threading.Tasks;
6
6
  using Extension;
7
- using UnityEditor;
8
- using UnityEditor.SceneManagement;
9
7
  using UnityEngine;
10
8
  using UnityEngine.Events;
11
9
  using UnityEngine.SceneManagement;
12
10
  using Utils;
13
11
  using Object = UnityEngine.Object;
12
+ #if UNITY_EDITOR
13
+ using UnityEditor;
14
+ using UnityEditor.SceneManagement;
15
+ #endif
14
16
 
15
17
  public static class SceneHelper
16
18
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.wallstop-studios.unity-helpers",
3
- "version": "2.0.0-rc63",
3
+ "version": "2.0.0-rc64",
4
4
  "displayName": "Unity Helpers",
5
5
  "description": "Various Unity Helper Library",
6
6
  "dependencies": {},