Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mtschoen-unity committed Aug 21, 2020
1 parent a4aa8e5 commit e679702
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Runtime/Scripts/Data/FolderData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public FolderData(string name, int guid, int depth)
m_Depth = depth;
}

#if UNITY_EDITOR
public static IEnumerator CreateRootFolderData(HashSet<string> assetTypes, Action<FolderData> callback)
{
var hp = new HierarchyProperty(HierarchyType.Assets);
Expand Down Expand Up @@ -126,5 +127,6 @@ static AssetData CreateAssetData(HierarchyProperty hp, HashSet<string> assetType

return new AssetData(hp.name, hp.guid, typeName);
}
#endif
}
}
5 changes: 4 additions & 1 deletion Runtime/Scripts/Modules/HighlightModule/HighlightModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
using Unity.EditorXR.Interfaces;
using Unity.XRTools.ModuleLoader;
using Unity.XRTools.Utils;
using UnityEngine;

#if UNITY_EDITOR
using UnityEditor;
using UnityEditor.XRTools.Utils;
using UnityEngine;
#endif

namespace Unity.EditorXR.Modules
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
using TMPro;
using Unity.EditorXR.Data;
using UnityEditor;
using UnityEditor.XRTools.Utils;
using UnityEngine;
using UnityEngine.UI;
using Button = Unity.EditorXR.UI.Button;

#if UNITY_EDITOR
using UnityEditor;
using UnityEditor.XRTools.Utils;
#endif

namespace Unity.EditorXR.Workspaces
{
sealed class InspectorComponentItem : InspectorListItem
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
using System;
using TMPro;
using Unity.EditorXR.Data;
using UnityEditor.XRTools.Utils;
using UnityEngine;
using Object = UnityEngine.Object;

#if UNITY_EDITOR
using UnityEditor.XRTools.Utils;
#endif

namespace Unity.EditorXR.Workspaces
{
#if UNITY_EDITOR
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
using TMPro;
using Unity.EditorXR.Data;
using UnityEditor.XRTools.Utils;
using UnityEngine;

#if UNITY_EDITOR
using UnityEditor.XRTools.Utils;
#endif

namespace Unity.EditorXR.Workspaces
{
sealed class InspectorUnimplementedItem : InspectorPropertyItem
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
using System;
using System.Collections.Generic;
using Unity.EditorXR.Data;
using UnityEngine;

#if UNITY_EDITOR
using UnityEditor;
using UnityEditor.XRTools.Utils;
using UnityEngine;
#endif

namespace Unity.EditorXR.Workspaces
{
Expand Down

0 comments on commit e679702

Please sign in to comment.