跳至主要內容

EntityEvents.spawned

芒果凍布丁2026/7/28小於 1 分鐘

/**
 * Invoked when an entity is about to be added to the world.
 *
 * This event also fires for existing entities when they are loaded from a save.
 */
function spawned(
  extra: $ResourceKey$$Type<$EntityType<object>>,
  handler: (event: $EntitySpawnedKubeEvent) => void,
): void;
function spawned(handler: (event: $EntitySpawnedKubeEvent) => void): void;
最近更新:
貢獻者: Evan Hsieh