Saving Prefabs
Last updated
Last updated
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 AllIn1SpriteShader 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” button that you’ll find on the asset component: