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

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

601. 使用 addChild 加载界面后,绑定事件报错 [ 56%]

...载场景后报上面图片的错误 GameStart 类如下: export default class GameStart extends ui.GameStartUI {     constructor() {         super();          this.btnStart.on(Laya.Event.CLICK, this, this.startGame);     }      startGame(): void {         //L...

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

602. 1.7版本要初始化后有些代码才能用了 [ 56%]

...= new laya.display.Text(); // in this line is error , so you can't defined class before "Laya.init" Laya.init(800,600); //test.text = new laya.display.Text(); // in this line is right test.text.text = "dsafdsdsada"; test.text.color = "#ff0000"; Laya.stage.addChild(test.text); </script> 2017-03...

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

603. 如何自定义 d.ts 文件 - typescript [ 56%]

...s 文件中,声明的类型为interface时,不会有代码提示. 更改为class 就好了.. 2018-05-22 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ZJ 相关问题 2.0一不小心删了bin目录下的某个场景json文件。。竟然...

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

604. Vbox的问题 [ 56%]

...怎么不能排列 https://layaair.ldc.layabox.com/api/?category=UI&class=laya.ui.LayoutBox#changeItems() 父类重写sortitem方法 能实现你需求吗,有问题再反馈 2018-03-02 0 6 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

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

605. 2.3.0beta版本,微信真机调用async函数报错 [ 56%]

...s5,但是降到es5以后又会其他地方报错: Uncaught TypeError: Class constructor Scene cannot be invoked without 'new'   现在这个问题有办法解决吗? 2019-10-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

606. laya.d3.core.particleshuriken.module.GradientSize_API3.0 [ 56%]

...u Globals "laya/d3/core/particleShuriKen/module/GradientSize" GradientSize Class GradientSize GradientSize 类用于创建渐变尺寸。 Hierarchy GradientSize Implements IClone Index Constructors constructor Accessors constantMax constantMaxSeparate constantMin constantMinSeparate gradient gradien...

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

607. 看一下这是什么问题,运行报错 [ 56%]

...l1 = (function (_super) { function MPanel1() { MPanel1.super(this); } Laya.class(MPanel1, "MPanel1", _super) var _proto = MPanel1.prototype; return MPanel1; }(ui.Panel1UI));代码如上,报错如下   附件 : --> 2018-02-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

608. LayaAir3D导出scene 报错 [ 56%]

...zation.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)   附件 : --> 2018-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞...

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

609. Laya.Script的派生类的_update函数不工作? [ 56%]

...的_update函数不工作? 我从Laya.Script类extends了一个自己的class,贴在一个物体上,运行的时候脚本的_start函数中的log正常打印出来了,但是_update函数中的log没有打印 _update(state:Laya.RenderState) { console.log("state:", state.elapsedTime); } 请...

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

610. drawToCanvas转出图片与游戏内显示颜色差距过大 [ 56%]

...出图片与游戏内显示颜色差距过大 测试代码 export default class TestView {     constructor() {         this.init();     }     init() {         Laya.stage.bgColor='#ffffff';         Laya.stage.addChild(new Laya.Image('comp/img/img1.png'));         Laya.timer.once...

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