clear

clear() 清空所有路径。

实例

update: function (dt) {
    const ctx = node.getComponent(Graphics);
    ctx.clear();
    ctx.circle(200,200, 200);
    ctx.stroke();
}

返回 Graphics 组件参考

条与 "" 相匹配的结果

    没有与 "" 匹配的结果