当前位置:网站首页>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;});边栏推荐
- redis-desktop-manager下载安装
- How to use postman
- Gorilla Mux 和 GORM 的使用方法
- 【论文阅读】Distilling the Knowledge in a Neural Network
- What is the function of page directive contentPage/pageEncoding in JSP page?
- JS中的数组方法
- 软件exe图标变记事本或浏览器、360压缩打不开的几种应急解决方法
- HCIA静态路由综合练习
- The packet capture tool Charles modifies the Response step
- AttributeError: module ‘clr‘ has no attribute ‘AddReference‘
猜你喜欢
随机推荐
day_05_pickel 和 json
利用minlm比较句子之间的相似度
新起点丨MeterSphere开源持续测试平台v2.0发布
USACO美国信息学奥赛竞赛12月份开赛,中国学生备赛指南
练习40,小蓝的旅行【最短路】
十、 网络管理
day1-机器学习-回归问题
【并发编程】- 线程池使用DiscardOldestPolicy策略、DiscardPolicy策略
【论文阅读】Distilling the Knowledge in a Neural Network
HCIP笔记第十三天
C Language Basics_Union
自定义View实现波浪荡漾效果
三国演义小说
What is the function of the import command of the page directive in JSP?
Jenkins--部署--3.1--代码提交自动触发jenkins--方式1
百数应用中心——选择一款适合企业的标准应用
ABAP 和json转换的方法
不用Swagger,那我用啥?
cococreator 动态设置精灵
C语言_指针








