I want to change the materials on already created cube I do this code to change it:
// define some materials
// define the new Cube Materials
cubedataLight = new CubeMaterialsData(
{top:_mattopLight,
bottom:matbottom,
front:matfront,
back:matback,
left:matleft,
right:matleft})
// apply new materials
_myCube.cubeMaterials = cubedataLight;
Nothing happens.
There is a listener on ChangeMaterial, but nowhere is explained how to
use it.
