-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...entation/api/DefaultEcs-Resource-AResourceManager-TInfo_TResource--Dispose().md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#### [DefaultEcs](./index.md 'index') | ||
### [DefaultEcs.Resource](./DefaultEcs-Resource.md 'DefaultEcs.Resource').[AResourceManager<TInfo,TResource>](./DefaultEcs-Resource-AResourceManager-TInfo_TResource-.md 'DefaultEcs.Resource.AResourceManager<TInfo,TResource>') | ||
## AResourceManager<TInfo,TResource>.Dispose() Method | ||
Disposes all loaded resources. | ||
Unloads all loaded resources. | ||
```csharp | ||
public void Dispose(); | ||
``` |
17 changes: 17 additions & 0 deletions
17
...efaultEcs-Resource-AResourceManager-TInfo_TResource--Unload(TInfo_TResource).md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#### [DefaultEcs](./index.md 'index') | ||
### [DefaultEcs.Resource](./DefaultEcs-Resource.md 'DefaultEcs.Resource').[AResourceManager<TInfo,TResource>](./DefaultEcs-Resource-AResourceManager-TInfo_TResource-.md 'DefaultEcs.Resource.AResourceManager<TInfo,TResource>') | ||
## AResourceManager<TInfo,TResource>.Unload(TInfo, TResource) Method | ||
Unloads a resource once it is no longer referenced by a [ManagedResource<TInfo,TResource>](./DefaultEcs-Resource-ManagedResource-TInfo_TResource-.md 'DefaultEcs.Resource.ManagedResource<TInfo,TResource>'). | ||
By default if [TResource](./DefaultEcs-Resource-AResourceManager-TInfo_TResource-.md#DefaultEcs-Resource-AResourceManager-TInfo_TResource--TResource 'DefaultEcs.Resource.AResourceManager<TInfo,TResource>.TResource') is [System.IDisposable](https://docs.microsoft.com/en-us/dotnet/api/System.IDisposable 'System.IDisposable'), calls the [System.IDisposable.Dispose](https://docs.microsoft.com/en-us/dotnet/api/System.IDisposable.Dispose 'System.IDisposable.Dispose') method. | ||
```csharp | ||
protected virtual void Unload(TInfo info, TResource resource); | ||
``` | ||
#### Parameters | ||
<a name='DefaultEcs-Resource-AResourceManager-TInfo_TResource--Unload(TInfo_TResource)-info'></a> | ||
`info` [TInfo](./DefaultEcs-Resource-AResourceManager-TInfo_TResource-.md#DefaultEcs-Resource-AResourceManager-TInfo_TResource--TInfo 'DefaultEcs.Resource.AResourceManager<TInfo,TResource>.TInfo') | ||
The [TInfo](./DefaultEcs-Resource-AResourceManager-TInfo_TResource-.md#DefaultEcs-Resource-AResourceManager-TInfo_TResource--TInfo 'DefaultEcs.Resource.AResourceManager<TInfo,TResource>.TInfo') that was used to load the resource. | ||
|
||
<a name='DefaultEcs-Resource-AResourceManager-TInfo_TResource--Unload(TInfo_TResource)-resource'></a> | ||
`resource` [TResource](./DefaultEcs-Resource-AResourceManager-TInfo_TResource-.md#DefaultEcs-Resource-AResourceManager-TInfo_TResource--TResource 'DefaultEcs.Resource.AResourceManager<TInfo,TResource>.TResource') | ||
The [TResource](./DefaultEcs-Resource-AResourceManager-TInfo_TResource-.md#DefaultEcs-Resource-AResourceManager-TInfo_TResource--TResource 'DefaultEcs.Resource.AResourceManager<TInfo,TResource>.TResource') to unload. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters