当前位置:网站首页>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;});边栏推荐
猜你喜欢

边缘计算开源项目概述

SVN下载上传文件

Mysql Mac版下载安装教程

【打新必读】麦澜德估值分析,骨盆及产后康复电刺激产品

PyQt5(一) PyQt5安装及配置,从文件夹读取图片并显示,模拟生成素描图像

【电子电路】长按键拉低电平,适用在有休眠机制的MCU但是没有看门狗,一个按键多个功能场景下使用

js函数防抖和函数节流及其使用场景

PyCharm usage tutorial (detailed version - graphic and text combination)
![[Must read] Mylander valuation analysis, electrical stimulation products for pelvic and postpartum rehabilitation](/img/25/e16bac4e789cddadffd43ed9e9df7c.jpg)
[Must read] Mylander valuation analysis, electrical stimulation products for pelvic and postpartum rehabilitation

TiFlash 存储层概览
随机推荐
PyCharm usage tutorial (more detailed, picture + text)
C语言_指针
Codeforces Round #811 (Div. 3)无DF
Redis分布式锁
PyQt5安装配置(PyCharm) 亲测可用
腾讯T8架构师,教你学中小研发团队架构实践PDF,高级架构师捷径
文章解读 -- FlowNet3D:Learning Scene Flow in 3D Point Clouds
了解下C# 多线程
Jenkins--部署--3.1--代码提交自动触发jenkins--方式1
shell脚本
HCIP笔记十六天
Redisson报异常attempt to unlock lock, not locked by current thread by node id解决方案
你有了解过这些架构设计,架构知识体系吗?(架构书籍推荐)
JSP页面中page指令contentPage/pageEncoding具有什么功能呢?
在 QT Creator 上配置 opencv 环境的一些认识和注意点
深度学习汇报(4)
SVN下载上传文件
Pycharm (1) the basic use of tutorial
js函数防抖和函数节流及其使用场景
抓包工具Charles修改Response步骤