You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.
I notice that the ContentManager contains a non-generic Load() method that types a Type object. I would like it if the equivalent virtual unload method could be added:
boolUnload(TypeassetType,stringassetName);
Some time ago I added an Unload(assetName) method to the ContentManager that did not require a type. Since then, I noticed the AssetKey type has been added which requires the use of a type. My content manager subclass has that type, but I'm currently having to create a generic delegate from a Type object to work around this issue.
To elaborate on why I need this: my content manager subclass manages references to assets both for asynchronous loading and to unload assets that are no longer being used. This is necessary since it's an online multiplayer game where multiple levels in a world can be streamed in or out of memory as necessary.
The text was updated successfully, but these errors were encountered:
I notice that the ContentManager contains a non-generic Load() method that types a Type object. I would like it if the equivalent virtual unload method could be added:
Some time ago I added an Unload(assetName) method to the ContentManager that did not require a type. Since then, I noticed the AssetKey type has been added which requires the use of a type. My content manager subclass has that type, but I'm currently having to create a generic delegate from a Type object to work around this issue.
To elaborate on why I need this: my content manager subclass manages references to assets both for asynchronous loading and to unload assets that are no longer being used. This is necessary since it's an online multiplayer game where multiple levels in a world can be streamed in or out of memory as necessary.
The text was updated successfully, but these errors were encountered: