Game Development Community

ReloadMaterials()

by Peter Haffenreffer · in Torque Game Engine Advanced · 10/20/2008 (1:56 pm) · 3 replies

Typing reloadMaterials in the script window does nothing.
Anyone have to do anything to get this to work?

We would love to be able to change textures on the fly.

#1
10/20/2008 (1:58 pm)
Uhm, have you tried this ?
#2
10/20/2008 (2:08 pm)
I don't want to change the texture on a mesh.

I want to make a change to a texture while the game is open, type in reloadMaterials, and see the changes in game.
#3
10/20/2008 (4:28 pm)
In resManager.cpp, i just added .png to the alwaysCRCList since that is the texture file type we use.