当前位置:网站首页>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;
});边栏推荐
- R language plotly visualization: plotly visualizes the scatter plot of the actual value of the regression model and the predicted value of the regression, analyzes the prediction performance of the re
- The custom table form
- 大厂外包,值得拥有吗?
- Seleniu screenshots code and assign name to the picture
- AttributeError: module ‘clr‘ has no attribute ‘AddReference‘
- [OC学习笔记]weak的实现原理
- Redis分布式锁
- pycharm的基本使用教程(1)
- 查看变量的数据格式
- 了解下C# 多线程
猜你喜欢

PyCharm usage tutorial (more detailed, picture + text)

Pycharm (1) the basic use of tutorial

Business Intelligence Platform BI Business Intelligence Analysis Platform How to Choose the Right Business Intelligence Platform BI

Jenkins--部署--3.1--代码提交自动触发jenkins--方式1

Bigder:41/100生产bug有哪些分类

自定义卡包效果实现

pnpm:简介

Wang Xuegang - compiled shipment line file

houdini 求出曲线的法向 切线以及副法线

MySQL Workbench 安装及使用
随机推荐
Business Intelligence Platform BI Business Intelligence Analysis Platform How to Choose the Right Business Intelligence Platform BI
Jenkins--基础--6.1--Pipeline--介绍
AI目标分割能力,无需绿幕即可实现快速视频抠图
RetinaFace: Single-stage Dense Face Localisation in the Wild
数据库mysql
etcd实现大规模服务治理应用实战
JSP中page指令的import命令具有什么功能呢?
Redis分布式锁
Seleniu screenshots code and assign name to the picture
PyCharm usage tutorial (detailed version - graphic and text combination)
JSP页面中page指令有哪些属性及方法可使用呢?
day——05 迭代器,生成器
MySQL 中 count() 和 count(1) 有什么区别?哪个性能最好?
【电子电路】长按键拉低电平,适用在有休眠机制的MCU但是没有看门狗,一个按键多个功能场景下使用
C Language Basics_Union
Ansible learning summary (11) - detailed explanation of forks and serial parameters of task parallel execution
Redisson实现分布式锁
Redisson的看门狗机制
Pycharm (1) the basic use of tutorial
动态规划每日一练(3)