迁移auto_merge_material_instance,BillboardTest,PlaneGrid3D,RayPicking四个测试范例到新的Component结构

This commit is contained in:
2025-06-15 02:03:38 +08:00
parent cfda1fceb2
commit a180970eb6
5 changed files with 15 additions and 19 deletions

View File

@@ -156,6 +156,9 @@ namespace hgl
return(nullptr);
}
/**
* 如果此处出现转换错误请检查是否包含了对应的Component头文件。
*/
parent_node->AttachComponent(c); //将组件附加到父节点
return c;
@@ -178,6 +181,9 @@ namespace hgl
return(nullptr);
}
/**
* 如果此处出现转换错误请检查是否包含了对应的Component头文件。
*/
parent_node->AttachComponent(c); //将组件附加到父节点
c->graph::SceneOrient::SetLocalMatrix(mat);