Skip to content

Commit

Permalink
fix: revert preprocessor change
Browse files Browse the repository at this point in the history
  • Loading branch information
uweeby committed Feb 20, 2021
1 parent 3568d8a commit b89c454
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Assets/Mirage/Runtime/NetworkIdentity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
using UnityEngine.Events;
#if UNITY_EDITOR
using UnityEditor;
#if UNITY_2018_3_OR_NEWER
using UnityEditor.Experimental.SceneManagement;
#endif
#endif

namespace Mirage
{
Expand Down Expand Up @@ -615,7 +617,11 @@ void SetupIDs()
sceneId = 0;
// NOTE: might make sense to use GetPrefabStage for asset
// path, but let's not touch it while it works.
#if UNITY_2020_1_OR_NEWER
string path = PrefabStageUtility.GetCurrentPrefabStage().assetPath;
#else
string path = PrefabStageUtility.GetCurrentPrefabStage().prefabAssetPath;
#endif

AssignAssetID(path);
}
Expand Down

0 comments on commit b89c454

Please sign in to comment.