public static void UpdateScale(float scale) { for (int i = 0; i < objects.Count; i++) { IJanusObject obj = objects[i]; UObject uobj = (UObject)obj; if (!uobj) { objects.RemoveAt(i); i--; continue; } obj.UpdateScale(scale); } }
/// <summary> /// Registers an object to be updated when the exporter needs /// (for now only when the user updates the scale) /// </summary> /// <param name="obj"></param> public static void RegisterObject(IJanusObject obj) { objects.Add(obj); }