T2dscenegraph.instance
by Matt McCracken · in Torque X 2D · 01/24/2008 (7:42 pm) · 1 replies
What's the proper way to do this now? I'm assuming the instance property was removed in 1.5.
T2DSceneGraph.Instance.FindObjects(location, 1.0f, unitType, 0xFFFFFFFF, foundObjects);
I tried:
T2DSceneGraph sg = new T2DSceneGraph();
sg.FindObjects(location, 1.0f, unitType, 0xFFFFFFFF, foundObjects);
With no luck.
T2DSceneGraph.Instance.FindObjects(location, 1.0f, unitType, 0xFFFFFFFF, foundObjects);
I tried:
T2DSceneGraph sg = new T2DSceneGraph();
sg.FindObjects(location, 1.0f, unitType, 0xFFFFFFFF, foundObjects);
With no luck.
About the author
Torque Owner Viktor Rumanuk