当前位置:网站首页>cococreator 动态设置精灵
cococreator 动态设置精灵
2022-08-02 08:42:00 【不知道反正就是挺叼】
let that = this;
// 图片路径,注意不带后缀
let resUrl = '123';
cc.loader.loadRes(resUrl, cc.SpriteFrame, function (err, spriteFrame) {
// 设置当前节点的spriteFrame
this.node.getComponent(cc.Sprite).spriteFrame = spriteFrame;
});
边栏推荐
- Jenkins--基础--5.4--系统配置--全局工具配置
- uvm-phase机制
- Technology Cloud Report: To realize the metaverse, NVIDIA starts from building an infrastructure platform
- What is the function of the import command of the page directive in JSP?
- OneinStack多版本PHP共存
- 练习40,小蓝的旅行【最短路】
- 数据库mysql
- Redisson的看门狗机制
- oracle的sql改成mysql版本
- 第3周学习:ResNet+ResNeXt
猜你喜欢
EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network
C语言基础_结构体
Jenkins--基础--5.4--系统配置--全局工具配置
二分类和多分类
Detailed explanation of calculation commands in shell (expr, (()), $[], let, bc )
Three types of [OC learning notes] Block
【Flink 问题】Flink 如何提交轻量jar包 依赖该如何存放 会遇到哪些问题
堪称神级的阿里巴巴“高并发”教程《基础+实战+源码+面试+架构》
查看变量的数据格式
【微信小程序2】事件绑定
随机推荐
Pycharm (1) the basic use of tutorial
四字节的float比八字结的long范围大???
PostgreSQL learning summary (11) - PostgreSQL commonly used high-availability cluster solutions
天地图给多边形加标注
How to use postman
新起点丨MeterSphere开源持续测试平台v2.0发布
tf中tensor的大小输出
JSP页面中page指令contentPage/pageEncoding具有什么功能呢?
HCIP笔记十六天
PyQt5(一) PyQt5安装及配置,从文件夹读取图片并显示,模拟生成素描图像
MySQL安装与卸载详细教程
深度学习汇报(4)
Jenkins--基础--07--Blue Ocean
shell脚本
A little bit of knowledge - why do not usually cook with copper pots
文章解读 -- FlowNet3D:Learning Scene Flow in 3D Point Clouds
How Engineers Treat Open Source --- A veteran engineer's heartfelt words
js函数防抖和函数节流及其使用场景
“蔚来杯“2022牛客暑期多校训练营4
UVM之sequence机制