public SEntityComponentId SpawnScenePicker_EngineThread(CWorld world) { CScenePickerEntity scenePicker = world.LoadedLevel.GetEntity <CScenePickerEntity>(); if (scenePicker == null) { scenePicker = world.SpawnEntity <CScenePickerEntity>(); } return(new SEntityComponentId(scenePicker.ScenePickingComponent)); }
public static CEntity SpawnEntity() { CWorld world = GetCurrentWorld(); return(world.SpawnEntity <CEntity>()); }