Studio Wikiv0.8.7

Wiki / Editor manual

Build a reusable prefab with a material

Create a shared material, apply it to a mesh, save a grouped object as a prefab, then add another instance.

Make and assign a material

Choose Project → New Material… and name it Signal Red. In the Material Inspector, set Tint to #e83b32 and leave Surface on Opaque. For a textured lamp, drag a PNG from the project’s Assets onto Material texture.

Select a mesh in the Hierarchy and drag Signal Red from Assets onto its Material asset field. Click Edit Material if you want to adjust the tint later. Other meshes using this material share those settings.

Save and reuse the object branch

Choose + Object → Empty and name it Signal Lamp. Put a cube under it in the Hierarchy and assign Signal Red to that cube. Select Signal Lamp and choose GameObject → Save as Prefab…. The prefab now contains the lamp and its child.

Select the prefab in Assets and click Instantiate Prefab. Move the selected copy to the other side of the scene and press Save. You now have two lamps that you can position independently. When sharing the project, include the material and any texture it uses.

If Studio reports that a Visual Action targets an object outside the prefab, move that target into the branch or remove the reference before saving. A prefab that uses a Canvas widget also needs that widget in its destination scene.