当前位置:网站首页>cococreator dynamically set sprite
cococreator dynamically set sprite
2022-08-02 09:08:00 【Don't know is very diao anyway】
let that = this;// Image path, pay attention to no suffixlet resUrl = '123';cc.loader.loadRes(resUrl, cc.SpriteFrame, function (err, spriteFrame) {// Set the spriteFrame of the current nodethis.node.getComponent(cc.Sprite).spriteFrame = spriteFrame;});边栏推荐
猜你喜欢
随机推荐
二分类和多分类
不用Swagger,那我用啥?
js引擎运行中的预解析(变量提升和函数提升)及相关实操案例
LeetCode_2357_使数组种所有元素都等于零
QT web development - Notes - 3
小康股份更名赛力斯,如何走出一条高端产品的“丝绸之路”?
EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network
MySQL 中 count() 和 count(1) 有什么区别?哪个性能最好?
tf中tensor的大小输出
JSP页面中page指令contentPage/pageEncoding具有什么功能呢?
力扣:第 304 场周赛
你有了解过这些架构设计,架构知识体系吗?(架构书籍推荐)
WebGPU 导入[1] - 入门常见问题与个人分享
LeetCode_2358_分组的最大数量
TiFlash 存储层概览
Hikari连接池源码解读
OneNote Tutorial, How to Create More Spaces in OneNote?
RestTemlate源码分析及工具类设计
Rust 从入门到精通03-helloworld
数据库mysql









