Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 2.21 KB

AResourceManager_TInfo,TResource_.Manage(World).md

File metadata and controls

22 lines (15 loc) · 2.21 KB

AResourceManager<TInfo,TResource>.Manage(World) Method

Sets up current AResourceManager<TInfo,TResource> instance to react to ManagedResource<TInfo,TResource> components on Entity instances of the provided World.
Once no Entity contains a ManagedResource<TInfo,TResource> component anymore, the shared TResource resource is disposed automatically.

public System.IDisposable Manage(DefaultEcs.World world);

Parameters

world World

The World instance on which to react to ManagedResource<TInfo,TResource> components.

Returns

System.IDisposable
An System.IDisposable instance used to make current AResourceManager<TInfo,TResource> instance stop reacting to ManagedResource<TInfo,TResource> component of the provided World.