• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3,269 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0071 秒)

701. 如何把加载好的二进制数据转成Texture? [ 72%]

... 这应该是你要的结果 我贴伪代码给你 loadBytes(res.bin, () => { res.texture = Texture.create(res.source, 0, 0, res.texWidth, res.texHeight); // res.source.dispose();//提交显卡是异步过程 dispose 会导致texture无效 // setTimeout(() => { // res.source.dispose(); // }, 1...

来源: Laya_社区 发布时间: 20170502

702. Animation添加帧标签无效是怎么回事。 [ 72%]

... this.takeOutMc.loadAnimation("ani/TX036.ani",Laya.Handler.create(this,()=>{                 //加载完设置label                 this.takeOutMc.addLabel("shou",26);             }));   2018-01-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 ...

来源: Laya_社区 发布时间: 20180123

703. 当使用代码创建打开场景时,onOpened触发了,但场景active和activeInHierarchy还是处于false,请问纯代码怎么实现场景创建激活,谢谢 [ 72%]

...活,谢谢?   const scene = new Laya.Scene(); scene.onOpened = () => { console.log('scene onOpened'); }; scene.open(); console.log('scene', scene.active, scene.activeInHierarchy); Laya.timer.frameOnce(10, this, () => {   console.log('scene 2', scene.active, scene.activeInHierarchy); }); ...

来源: Laya_社区 发布时间: 20190422

704. 浏览器缓存问题 [ 72%]

...2018-04-23 15:05 @130*****113:src="libs/laya.core.js?+版本号"></script> 130*****113 • 2018-04-23 15:14 @iermao:这个版本号能用什么办法自动生成么

来源: Laya_社区 发布时间: 20180423

705. HTMLDivElement文本字体描边怎么弄呢?用滤镜吗? [ 72%]

...,比如: div.innerHTML='<span style="stroke:2;strokeColor:#ffff00">hello</span>'; 2017-01-26 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 hwemail 相关问题 文本如何自动换行 微信小游戏如何使用ttf字...

来源: Laya_社区 发布时间: 20170126

706. layacmd mac 系统安装不上,急 [ 72%]

...es} yaotekejirigala:~ root# npm install layacmd -g/usr/local/bin/layacmd -> /usr/local/lib/node_modules/layacmd/layacmd.js > electron@1.8.6 postinstall /usr/local/lib/node_modules/layacmd/node_modules/electron > node install.js /usr/local/lib/node_modules/layacmd/node_modules/electron/insta...

来源: Laya_社区 发布时间: 20180508

707. 如何设置一个定时器 API看不懂 [ 72%]

...复 he853066732 赞同来自: typeScript:     box.on(Laya.Event,this,()=> { Laya.timer.once(6000,this,()=> { //提示信息 }) }) 2018-04-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 cyk123 相关问题 两个对象new了一...

来源: Laya_社区 发布时间: 20180417

708. [LayaAirIDE3]Laya.loader.on(Event.ERROR, this, this.onError) 无法侦听到加载资源失败 [ 72%]

...     Laya.loader.load(urls, Laya.Loader.IMAGE, this.onLoading).then(() =>         {             this.onAssetLoaded();         });          // 侦听加载失败         Laya.loader.on(Event.ERROR, this, this.onError);     }      private onAssetLoaded(): void     { ...

来源: Laya_社区 发布时间: 20240705

709. mac平台1.7.20.2beta版本下compileTargets设置不生效 [ 71%]

...txt); } } }  2. 修改.as3proj文件相应标签如下 <compileTargets> <compile path="src\HelloWorld.as" /> </compileTargets> 3. 运行后依然编译执行默认生成的LayaSamples.as 2018-09-14 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

来源: Laya_社区 发布时间: 20180914

710. laya.loaders.AnimationClip2DLoader_API3.0 [ 71%]

...ethods load Methods load load(task: ILoadTask): Promise<AnimationClip2D> Implementation of IResourceLoader.load Defined in laya/loaders/AnimationClip2DLoader.ts:5 Parameters task: ILoadTask Returns Promise<AnimationClip2D> Globals "laya/loaders/AnimationClip2DLoader" AnimationClip2DLoade...

来源: Laya3.0_api 发布时间: 20231115