当前位置:网站首页>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;});边栏推荐
猜你喜欢
随机推荐
Rust 从入门到精通03-helloworld
查看变量的数据格式
OneinStack多版本PHP共存
PyQt5(一) PyQt5安装及配置,从文件夹读取图片并显示,模拟生成素描图像
每天花2小时恶补腾讯T8纯手打688页SSM框架和Redis,成功上岸美团
Jenkins--基础--6.2--Pipeline--语法--声明式
OneNote Tutorial, How to Create More Spaces in OneNote?
spark:热门品类中每个品类活跃的SessionID统计TOP10(案例)
软件exe图标变记事本或浏览器、360压缩打不开的几种应急解决方法
ABAP 和json转换的方法
The god-level Alibaba "high concurrency" tutorial "basic + actual combat + source code + interview + architecture"
Fiddler(七) - Composer(组合器)克隆或者修改请求
Gorilla Mux 和 GORM 的使用方法
C Language Basics_Union
Redisson实现分布式锁
Redisson报异常attempt to unlock lock, not locked by current thread by node id解决方案
Jenkins--基础--6.1--Pipeline--介绍
day_05_pickel 和 json
Technology Cloud Report: To realize the metaverse, NVIDIA starts from building an infrastructure platform
Analysis of software testing technology How far is Turing test from us








