mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Replacing prefabAssetPath with assetPath for PrefabStage to stop warning (#2210)
This commit is contained in:
parent
1ade82d435
commit
ad8af783dc
@ -680,7 +680,12 @@ void SetupIDs()
|
||||
//logger.Log(name + " @ scene: " + gameObject.scene.name + " sceneid reset to 0 because CurrentPrefabStage=" + PrefabStageUtility.GetCurrentPrefabStage() + " PrefabStage=" + PrefabStageUtility.GetPrefabStage(gameObject));
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user