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 3D Shader 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 AddAllIn13DShader component, with Save Material To Folder (SEE DOC) third in its buttons