Can i export material outside scene to change it so every instance would have different materials?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By seba313

Hi, i have scene with wall texture and i want to use this wall in different part of home - ex. bathroom. And i want to use this .tscn but want also to change texture. Can it be done? Thanks

:bust_in_silhouette: Reply From: AFE-GmdG


Some more details prease.

You can save a material of a mesh in a extra resource file, use this resource on the MeshInstance node, check the “Local To Scene” button on the shader of this material and set different ShaderParameter for each MeshInstance in the Material Slot.

Yeah, I think this is the only way to do it, sadly. Otherwise it’s with all the other amazing features, hidden inside the Godot documentation next to ss reflections :wink: (the docs are really good, though, if you know what you’re looking for!)

Snail0259 | 2021-07-09 20:50

:bust_in_silhouette: Reply From: Snail0259

in blender, you can create materials and assign them (the materials only need a name), then you can edit the materials in Godot (the inspector) if you have exported them as GLTF or DAE (not .escn, as they are embedded, I think). then you can edit the generate .tres files (they appear when godot ‘(re)imports’ a 3d model).

Whoops, I don’t think I understood what you said the first time. Ill keep this answer here though, in case anyone else needs it.

Snail0259 | 2021-07-09 20:43