Baker

IBaker不是接口,而是类。

BakedEntityData

GetEntity、CreateEntityForPrefab、CreateEntityForGameObject
World > BakingUtility > BakingSystem > BakedEntityData > Baker

BakingSystem

The system inherited from the class SystemBase.

通过Subscene来管理资源

1、动态加载Subscene

把subscene放入一个独立的Scene,subscene设置成非自动加载,然后打包成ab,通过AB加载场景。

在subscene中,把不同的资源设置不同的SectionIdex:
在Baker的GameObject上添加SceneSectionComponent,并设置SectionIndex

发表评论

电子邮件地址不会被公开。 必填项已用*标注