Version: 2018.4
public static GameObject SavePrefabAsset (GameObject asset);

パラメーター

assetThe assetGameObject to save.

説明

Use this function to write a Prefab from the Library folder back to the Assets folder as a source asset.

The given object has to be an asset object from a Prefab.

If you have an object from a Prefab instance and get the corresponding object you will have an asset object.

In case you have modified an object that comes the Library folder you use this function to write the changes back to the Assets folder.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961