Skip to content

Saving Prefabs

By default this asset doesn’t save the Material you are using, instead it keeps it as part of the Scene in order to avoid having too many objects cluttering your project. This means that by default, when you turn a GameObject with an AllIn1Vfx material into a prefab, the prefab won’t render correctly since it doesn’t have a reference to the Material inside the Project Asset files.

In order to save a Prefab you first need to save its Material. You can do so with the “Save Material To Folder (SEE DOC)” button that you’ll find on the asset component:

The AddAllIn1Vfx component in the Inspector with its buttons: Deactivate All Effects, New Clean Material, Create New Material With Same Properties, Save Material To Folder, Apply Material To All Children, Render Material To Image, Add Particle System Helper, Remove Component and Remove Component And Material