Tab => Space
parent
19c7650ddf
commit
1eb11251d0
|
@ -217,11 +217,11 @@ namespace Coffee.UIExtensions
|
||||||
if (stage != null && stage.scene.isLoaded)
|
if (stage != null && stage.scene.isLoaded)
|
||||||
{
|
{
|
||||||
#if UNITY_2020_1_OR_NEWER
|
#if UNITY_2020_1_OR_NEWER
|
||||||
string prefabAssetPath = stage.assetPath;
|
string prefabAssetPath = stage.assetPath;
|
||||||
#else
|
#else
|
||||||
string prefabAssetPath = stage.prefabAssetPath;
|
string prefabAssetPath = stage.prefabAssetPath;
|
||||||
#endif
|
#endif
|
||||||
PrefabUtility.SaveAsPrefabAsset(stage.prefabContentsRoot, prefabAssetPath);
|
PrefabUtility.SaveAsPrefabAsset(stage.prefabContentsRoot, prefabAssetPath);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue