createOverlayElement...how to set material?

Blackbeard

12-03-2007 06:58:20

Hi, i currently play with panels.
Text works fine, but i simply cant figure out how to assign materials.

Thought my code should look like this:

t = OverlayManager.Singleton.CreateOverlayElement("BorderPanel", "testinstance");

t.setMaterial("Blabla");

But method setMaterial() doesnt exist.
Anyone could tell me how that works :?:

grizzley90

12-03-2007 21:51:19

It should be

t.MaterialName = "blabla";

Blackbeard

12-03-2007 23:08:10

Ouch, i see.
Thank you :)