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

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

951. Laya2.6、2.7等支持async、await编译经验分享 [ 41%]

...urn new Promise((resolve,reject)=>{ Laya.timer.once(10000,this,()=>{ console.log("10s后") resolve() }) }) }  如果有什么问题,欢迎大家一起来分享感恩。 附件 : --> regenerator.runtime_.zip 2020-07-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

952. 真机调试 开启子域后 提示出现window is not defined [ 41%]

...工程 bt_rank_call_back(body){   this.bt_rank.CALL_BACK = function () { console.log("排行榜") var player_rank = body.wxData.get_canvas_4_code("SHOW_PLAYER_RANK",0) var rankTexture = new Laya.Texture(sharedCanvas); rankTexture.bitmap.alwaysChange = true; var pl = new Laya.Sprite() pl.graphics.dr...

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

953. [临时解决]bug?加载sk问题 [ 41%]

...rototype;      _proto.preload = function (complete) {         console.log("preload..." + (++this.numPreloadCalls));          if (this.dragon_sk._templet) {             complete();         } else {             Laya.timer.frameOnce(1, this, this.pr...

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

954. 导航标签组组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

...owner.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } 运行效果如下动图所示: (动图2-1) Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{c...

来源: Laya3.0_文档 发布时间: 20251010

955. 报无法找到资源,未升级ide之前不报错 [ 40%]

...n(() => { // 加载完成后,处理逻辑 this.progress.value = 0.98; console.log("加载结束", this.progress.value); Laya.Scene.open("scenes/Index.ls"); //不要使用Laya.Scene.open("./Scenes/Index.ls"); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR...

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

956. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 40%]

...w Laya.Vector3(0,0,-1);         Laya.timer.loop(2000, this, function(){console.log(rigidBody.linearVelocity.z)});     } } //激活启动类 new PhysicsWorldBaseCollider(); 2019-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

957. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 40%]

...ial = customMaterial; mesh.meshRender.sharedMaterial = customMaterial2; // console.log(mesh4.meshRender.sharedMaterial); shaderDemo.zip 2017-05-25 0 0 分享 微博 QZONE 微信 ebaww 赞同来自: 我按你说的改了一下CustomMaterial.js,效果正确了,现在我想不用代码,直接改....

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

958. 自己写了个label继承官方的label,出现了问题,求指导~ [ 40%]

...String(rightMargin); _indent = String(indent); _leading = String(leading); console.log("font==="+_font, "size==="+_fontSize, "color==="+_color, "bold==="+_bold, "italic==="+_italic, "underline==="+_underline,"leftMargin==="+_leftMargin, "rightMargin==="+_rightMargin); } } } 附件 : --> DemoLabel.zi...

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

959. VR的demo有没有加载3D场景的啊,实在不知怎么加 [ 39%]

....2); sprite3D.once(Laya.Event.HIERARCHY_LOADED, null, function(sprite) { //console.log(scene.numChildren+","+sprite._childs.length); setMeshParams(sprite, Laya.StandardMaterial.RENDERMODE_OPAQUE, new Laya.Vector4(3.5, 3.5, 3.5, 1.0), new Laya.Vector3(0.6823, 0.6549, 0.6352), new Laya.Vector2(25.0, 2...

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

960. Spine渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 39%]

...currentSkin; this.spine.play("idle", false); //切换后重新播放一次 console.log(`当前皮肤切换至:${currentSkin}`); }); } } 2.6 动画名称 animationName 在前文的示例代码中,我们通过play方法来直接播放动画。为了在IDE面板中更方便易用,我们提供的...

来源: Laya3.0_文档 发布时间: 20260131