Yuka js库中的清除方法,用于清除指定资源的所有引用,以及相关的内存。
yuka.clear();
无。
const entity = new yuka.Entity(); yuka.entities.add(entity); // 清除实体及其引用 yuka.clear();