Exemple #1
0
        public static void ObjectFindAllComponentsTest()
        {
            Application a = new Application();
            Scene       s = new Scene();

            s.AddObject();
            s.AddObject();

            a.LoadScene(s);
            ManualScheduler sc = new ManualScheduler();

            a.Scheduler = sc;
            a.Start();

            IList <Transform> objs = SimulationObject.FindObjectsOfType <Transform>();

            Console.WriteLine(objs.Count);
            foreach (object obj in objs)
            {
                Console.WriteLine(obj.GetType().Name);
            }

            a.Stop();
        }