跳到主要内容

insert_child

在指定的位置上添加子节点

声明

bool insert_child(object child, int index, string name = nil)

参数

参数名描述
child子节点对象
index子节点索引位置
name子节点名称

返回值

true - 添加成功, false - 添加失败

使用方式

返回文档