public static GameObject SavePrefabAsset (GameObject asset);

Parámetros

assetThe assetGameObject to save.

Descripción

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.