Method RequestMonsterPrefab
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
RequestMonsterPrefab(string, Action<MonsterRankBehaviour>)
"Spawn it when the prefab is ready" — the form a spawner should use.
A resident prefab calls back immediately (same frame, no ordering change), so the common case pays nothing; a miss loads asynchronously and the spawn happens a frame or two later instead of blocking. That is what makes "no preload" true rather than aspirational: the first Skeleton in an area arrives a little late, every one after it is instant.
public void RequestMonsterPrefab(string name, Action<MonsterRankBehaviour> onReady)
Parameters
namestringonReadyAction<MonsterRankBehaviour>