Game Development Community

T3D 1.1b2 - RenderMeshExample doesn't load materials - FIXED

by Matt Huston · in Torque 3D Professional · 09/12/2010 (11:59 pm) · 1 replies

If you give RenderMeshExample a material via the World Editor, the material loads and renders on the mesh, however if you save the RenderMeshExample to your mission file and reload, the material is not loaded.

Add this at the end of the ::onAdd function

if ( isClientObject() )
	{	
		updateMaterial();
	}

#1
05/31/2011 (10:49 am)
Broken again in B3, same fix. It should probably get a default material from the editor as well.