大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0082 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...该页面是一个ui界面,有race0 race1两个变量,当ts中注释掉this.race0.y += JConfig.speed; 时,js中还是会生成this.race0.y += JConfig.speed; 这一句,当ts中不住事掉this.race0.y += JConfig.speed; 时,js中会生成两条this.race0.y += JConfig.speed; 甚至出现了...
来源: Laya_社区 发布时间: 20170221
...个小问题 1、一个面板中含有几个按钮,分别为按钮添加 this.myBtn.on(Event.CLICK) 事件,点击某按钮后有时还会发送事件 this.event(...),在关闭面板时设置 this.removeSelf() ,下次生成同类型的对象面板可正常打开;若在关闭时设成 this.d...
来源: Laya_社区 发布时间: 20170914
...aNative-Release-2.1.0 1.使用layaide2.1打开工程 2.修改Label, this.tipLbll.italic = true; this.tipLbll.bold = false; this.tipLbll.text = "测试"; 3.然后使用LayaNative生成安卓项目, 进游戏会发现没显示文字 如果将this.tipLbll.text = " 测试";//前面加四个...
来源: Laya_社区 发布时间: 20190716
...4 人 135*****336 • 2020-05-20 16:36 我unity场景中设置,代码中 this._PlayerLight = this._scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; this._PlayerLight.color = new Laya.Vector3(0.7, 0.6, 0.6); this._PlayerLight.transform.worldMatrix.setForward(new Laya.Vector3(1, -1,...
来源: Laya_社区 发布时间: 20190709
...没有资源也调用了加载完成, Laya.loader.on(Laya.Event.ERROR, this, this.onLibError); Laya.loader.load([{ url:com.globals.GameConfig.XML_LIB_URL, type:Loader.BUFFER }], Handler.create(this, this.onLibLoaded)); 资源是不存在的,然后还是调用了 this.onLibLoaded 这个,这种...
来源: Laya_社区 发布时间: 20171102
...tor(){ super(); GameMain.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("main.scene"); } onEnable() { console.log('init'); } ...
来源: Laya_社区 发布时间: 20201110
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { this.createParagraph(); // 代码创建 this.showExternalHTML(); // 使用外部定义的html } createParagraph() { const HTMLDivElement = Laya.HTMLDivElement; let p = new HTMLDivElement(); Laya.stag...
来源: Laya2.0_示例 发布时间: 20251219
...出现 Cannot read property 'dir' of undefined崩溃 这个是出错信息 this.basePath=this._atlasPath?Loader.getAtlas(this._atlasPath).dir:this._url.split(".swf")[0]+"/image/"; 我们采用的播放模式是this.effectMovieClip.load(effectsPath,true); effectsPath 是路径 我们的swf 文...
来源: Laya_社区 发布时间: 20180408
....load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoaded方法中无法获取采用相对布局的控件大...
来源: Laya_社区 发布时间: 20170720
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { this.createLabel("只允许输入数字:").pos(50, 20); var input: Input = this.createInput(); input.pos(50, 50); input.restrict = "0-9"; this.createLabel("只允许输入...
来源: Laya_示例 发布时间: 20251219