Skip to content

KernelAPI reference

Interface IDestroyedCallback

Namespace: MicroEngine.Scenes
Assembly: MicroEngine.Scene.dll
Guide: Scenes

An attachment told when its entity is released (at the end of the step its entity was destroyed in).

C#
public interface IDestroyedCallback

Methods

OnDestroyed(EntityId)

Called once; the entity’s transform and attachments are still readable, and it may destroy other entities.

C#
void OnDestroyed(EntityId entity)

Parameters

entity EntityId