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

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

511. 微信小游戏报错 the .lh file root type must be Scene [ 62%]

...是老的报错 hejianchun • 2018-03-27 12:56 @joshua0526:在加载异步回调中将sceneadd进去,如: let scene = Laya.loader.create("res/UnityRes/Battle1V1.ls", Laya.Handler.create(this, function (): void { Laya.stage.addChild(scene); })); joshua0526 • 2018-03-27 13:32 @hejianc...

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

512. Laya2.0 beta3 Animator 中的 on 事件 怎么没了 [ 62%]

...ya_Aaron 赞同来自: 可以给动画添加事件脚本,重写脚本的 回调方法,达到目的 2019-04-03 0 0 分享 微博 QZONE 微信 Laya_Xq 赞同来自: //当动画播放到百分之五十到六十之间时进行克隆 if (0.6>(heroAni.getCurrentAnimatorPlayState(0)._normalizedTime-...

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

513. 微信小游戏利用开放域好友关系链做排行榜 [ 62%]

...aya.timer.once(400,this,function():void{                 //回调处理                 if(caller == null || caller == undefined){                     callback(message);                 }else{                    ...

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

514. laya.d3.core.MeshSprite3D_API3.0 [ 62%]

...。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from RenderableSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(node: Node): boolean Inherited from Nod...

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

515. laya.d3.core.particleshuriken.ShuriKenParticle3D_API3.0 [ 62%]

...。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from RenderableSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(node: Node): boolean Inherited from Nod...

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

516. 声音播放问题 native下采用Audio播放导致声音每次都是从头播放 [ 62%]

...明 游戏运行在chrome里面 听不见声音 骨骼动画播放完后的回调时间 关于适配采用showAll后留白部分的颜色问题 谷歌浏览器播放mp3出现The AudioContext was not allowed to start. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正...

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

517. AS代码如何new一个js库中的类并且使用这个类 [ 62%]

...26 赞同来自: 比例在AS类中加载abc.js 步骤1)加载JS 2)加载完回调 3)new需要的类   //加载 Laya.loader.load(getModuleJSPath("abc.js"), Handler.create(this,loadedHandler)); function loadedHandler(data:*):void{       //加载完回调       __JS__('window.eval(data + "//# so...

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

518. laya.d3.core.SkinnedMeshSprite3D_API3.0 [ 62%]

...。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from RenderableSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(node: Node): boolean Inherited from Nod...

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

519. laya.d3.core.trail.TrailSprite3D_API3.0 [ 62%]

...。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from RenderableSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(node: Node): boolean Inherited from Nod...

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

520. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 61%]

...h,sp.height); })); Laya.stage.addChild(sp); ``` loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 1. **直接调用size设置:** ```javascript Laya.loader.load("res/apes/monkey2.png",Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.p...

来源: Laya2.0_文档 发布时间: 20210715