您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
827 B
827 B
uid |
---|
ecs-world |
World
A World
owns both an EntityManager and a set of ComponentSystems. You can create as many World
objects as you like. Commonly you would create a simulation World
and rendering or presentation World
.
By default we create a single World
when entering Play Mode and populate it with all available ComponentSystem
objects in the project, but you can disable the default World
creation and replace it with your own code via a global define.
- Default World creation code (see file: Packages/com.unity.entities/Unity.Entities.Hybrid/Injection/DefaultWorldInitialization.cs)
- Automatic bootstrap entry point (see file: Packages/com.unity.entities/Unity.Entities.Hybrid/Injection/AutomaticWorldBootstrap.cs)