Game Development Community

How to Dispaly Material List in Component? [SOLVED]

by Aaron Scovel · in Torque X 2D · 09/12/2010 (10:14 am) · 2 replies

For animations there is T2DAnimationData and it will list all the animations from the animation list of the editor onto the component.
public T2DAnimationData ButtonAnimUp
        {
            get { return _buttonAnimUp; }
            set { _buttonAnimUp = value; }
        }

What is the equivalent for StaticSprites(the Material list)?
I have tired T2DStaticSprite but that only returns "on scene" staticSprites with script names.

Many Thanks,
Aaron

About the author

Previously a PHP/MySQL Programmer/Web Developer of 10 years. In Aug 2010 I decided to change careers, and this is were I landed! I also parent 3 kids full time. TopNotched.com


#1
09/12/2010 (5:08 pm)
Try RenderMaterial
#2
09/12/2010 (7:35 pm)
Thanks Duncan! & Pino(via email)! This works great!

Note: One needs to be using the following for RenderMaterial to work.
using GarageGames.Torque.Materials;