As the question suggests, is it possible to use DeleteTexture(texture) to release resources when the instance is destroyed?
DeleteTexture(texture)
Thankyou
Destroyed instances should not be used at all. If you need to run any extra cleanup code, make sure it happens upon the instance being destroyed, not afterwards.
thanks Ashley. but how can i do that? a doc link would be a bit more helpful. thanks
Develop games in your browser. Powerful, performant & highly capable.
Never mind, found a way to do that. Thanks :)