Tag Info

New answers tagged


Because textures are unmanaged resources, you can not garbage collect them like most objects. Use a ContentManager for this task instead. Once you want to release the textures of a content manager, you should call Unload(); like this: Texture2D apple = Content.Load<Texture2D>("apple"); //Content is the default Content manager //... //When you don't ...


Yes, it is possible to do using iterators. I've put some pseudo C# code here to give you an idea. You use yield return to return something from an iterator, which has the same behavior as yield in a theoretical coroutine. You can then store the iterators in a list, dictionary, or other structure to keep track of them, and run them all. Note that coroutines ...

Top 50 recent answers are included