各范例迁移到新的CreateComponent调用

This commit is contained in:
2025-06-25 02:05:57 +08:00
parent 27e5d0bdca
commit e2a61e175f
7 changed files with 21 additions and 16 deletions

View File

@@ -90,7 +90,9 @@ private:
if(!mesh_triangle)
return(false);
return CreateComponent<MeshComponent>(GetSceneRoot(),mesh_triangle); //创建一个静态网格组件
CreateComponentInfo cci(GetSceneRoot());
return CreateComponent<MeshComponent>(&cci,mesh_triangle); //创建一个静态网格组件
}
public: