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.