Game Development Community

Resources & ResourceInstance in 1.8?

by Chris Calef · in Torque Game Engine Advanced · 01/30/2009 (4:29 pm) · 2 replies

In previous versions of Torque I've been accustomed to using things like TSShape::mSourceResource to get at the filename and path of the resource, like "mShape->mSourceResource->name". In 1.8 apparently there is no more ResourceInstance. Maybe that was a weird way to get that, but anybody got a quick clue as to how I should be doing it now?

Thanks!
Chris

#1
01/30/2009 (5:28 pm)
Are you talking about from a TSShapeInstance? If so, you can get the path with this:

shapePath = hShape.getPath();

#2
01/31/2009 (9:45 am)
Right on, looks like that will do it. Thanks!