AResourceManager_TInfo,TResource_.OnResourceLoaded(Entity,TInfo,TResource).md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs.Resource.AResourceManager<TInfo,TResource>

AResourceManager<TInfo,TResource>.OnResourceLoaded(Entity, TInfo, TResource) Method

Called when a resource is loaded from a ManagedResource<TInfo,TResource> component of an Entity.

protected abstract void OnResourceLoaded(in DefaultEcs.Entity entity, TInfo info, TResource resource);

Parameters

entity Entity

The wEntity with the ManagedResource<TInfo,TResource> component.

info TInfo

The TInfo info used to load the resource.

resource TResource

The TResource resource.