碎片形状随机化:唯一代键替代命中点量化缓存键(每次命中重新随机 Voronoi),配套碎片模型生命周期回收(销毁次帧卸载 + OnDestroy 兜底)
This commit is contained in:
@@ -182,6 +182,12 @@ namespace Engine
|
||||
ModelRef LoadModel(const std::string& path, ParsedModel&& parsed);
|
||||
Model* GetModel(ModelRef h) const { return m_Models.Get(h); }
|
||||
void UnloadModel(ModelRef h) { m_Models.Unload(h); }
|
||||
// 按路径卸载模型(未加载为 no-op;手上只有路径的场景,
|
||||
// 如脚本程序化碎片模型回收)
|
||||
void UnloadModelByPath(const std::string& path)
|
||||
{
|
||||
m_Models.UnloadByPath(path);
|
||||
}
|
||||
// 按路径查已加载的模型(未加载返回 null,不触发加载)——
|
||||
// 面板 hover 信息卡用
|
||||
Model* GetModelByPath(const std::string& path) const
|
||||
|
||||
Reference in New Issue
Block a user