gmhevinci / MotionFramework

MotionFramework is unity3d game framework.
MIT License
621 stars 116 forks source link

BuildContext设计思路? #8

Closed lexnewgate closed 2 years ago

lexnewgate commented 2 years ago

https://github.com/gmhevinci/MotionFramework/blob/5a626d792256bf30b94fab605e5ebb56bd89fc09/Assets/MotionFramework/Scripts/Editor/AssetBundleBuilder/BuildSystem/BuildContext.cs#L12

BuildContext 这个类存在的主要目的是为了 https://github.com/gmhevinci/MotionFramework/blob/5a626d792256bf30b94fab605e5ebb56bd89fc09/Assets/MotionFramework/Scripts/Editor/AssetBundleBuilder/AssetBundleBuilder.cs#L170 执行的方便性么? 或者说 BuildContext是一种每次运行清零的单例管理器?

gmhevinci commented 2 years ago

主要是为了临时保存每个节点的产生的数据。重新构建的时候需要清空。