Scene.spawnOnce

Spawn a scene entity using its reference. Second time you call this method for the same id, nothing happens. Returns old/new entity reference.

  1. T spawnOnce(T entity, string id, void delegate(T) initMethod)
    class Scene
    ref
    T
    spawnOnce
    (
    T : Entity
    bool STRAT = true
    )
    (
    ref T entity
    ,
    string id
    ,
    void delegate
    (
    T
    )
    initMethod = null
    )
  2. T spawnOnce(string id, void delegate(T) initMethod)

Meta