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

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

301. Maximum call stack size exceeded [ 59%]

...GameMain extends Laya.Scene {         constructor(){             super();               GameMain.instance = this;               Laya.MouseManager.multiTouchEnabled = false;               this.loadScene("main.scene");           }           onEnable() {     ...

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

302. 面板容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

...a; @regClass() export class UI_Panel extends Laya.Script { constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 创建Panel组件 let panel: Laya.Panel = new Laya.Panel(); panel.hScrollBarSkin = "atlas/...

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

303. UI运行时 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

... { console.log("Game start"); this.ui = this.owner.scene as RuntimeScript; super.baseUI(this.ui); } } import { Main } from "./Main"; import { ButtonRuntime } from "./ButtonRuntime"; const { regClass, property } = Laya; @regClass() export class ButtonScript extends Main { private ui: ButtonRuntime; o...

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

304. 【LIST无法拖动】参照官方实例做的 [ 59%]

...xt;      private img: Image;     constructor(){         super();         this.size(Item.WID, Item.HEI);         this.img = new Image();         this.img.width = 200;         this.img.height = 200;         this.height = 230;    ...

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

305. 求助,屏幕旋转后滚动条没有跟随旋转 [ 59%]

...dule dialog { export class WanF extends ui.dialog.WanFUI { constructor() { super(); this.rotation = 90; this.pos(1060, 280); let panel = new Laya.Panel(); panel.size(638, 527); panel.vScrollBarSkin = "CommDialog/vscroll.png"; this.sp_wanfa.addChild(panel); let t = new Laya.Label(); t.width = 638; t....

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

306. 真机下运行帧率不稳定 [ 59%]

...模式和slow模式都有这个问题  class Scene_Test { constructor() { super(); Laya.timer.frameLoop(1,this,this.update); } private update() { let dt = Laya.timer.delta / 1000; console.log("dt="+dt); } } 附件中图1是在iphone6上面运行打印的信息,图2是在模拟下运行打印的...

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

307. Laya3D场景加载问题 [ 59%]

... [         "gate/Conventional/Test.ls",     ];     constructor() { super(); }     onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }     onPreLoadFinish() {         //初始化3D场景         let test = Laya....

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

308. 鼠标穿透问题 [ 59%]

...y.Sprite; class RecordItem extends Sprite { public function RecordItem() { super(); this.size(240, 27); } } 2017-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 DemonWu 赞同来自: Charles _loadingBg添加m...

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

309. 我在Layasample主类中,检测键盘按下并输出一切正常,可是放到其他类里面则能检测到按键按下,却一直输出undefined [ 59%]

...测到按键按下,却一直输出undefined var GameStart = (function (_super) {     function GameStart() {         GameStart.super(this);         Laya.stage.on(Laya.Event.KEY_DOWN,LayaSample,Test);     }     function Test(e){         console.log(e.keycode);     ...

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

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

..."resources/res/ui/tab1.png", "resources/res/ui/tab2.png"]; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then( ()=>{ this.onLoadComplete(); } ); } private onLoadCompl...

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