creating a procedural prefab

Hello,

let'say I have a procedural "entity" created through a script, it may be a mesh, a game level, a material or something else.

This procedural entity is created as the script is executed. Once the entity exists, is it possible to define a prefab from it? If yes, how?

Thanks.

Look at EditorUtility CreateEmptyPrefab() and ReplacePrefab.