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.