大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0102 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...e("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = L...
来源: Laya2.0_文档 发布时间: 20210714
Sprite加载图片 是异步操作吗? this.bg_2.loadImage("background.png"); this.bg_2.pos(0,this.bg_2.height); 这时候 this.bg_2.height 的值打印出来是0 2017-10-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...
来源: Laya_社区 发布时间: 20171002
...splay(value) { if (!value) { if (this._cacheStyle) { this._cacheStyle.releaseContext(); this._cacheStyle.releaseFilterCache(); if (this._cacheStyle.hasGlowFilter) { ...
来源: Laya_社区 发布时间: 20210629
...ity导出一个文件,然后layabox中加载场景。 Laya.loader.create(this.strScene, Laya.Handler.create(this, this.onLoadScene)); private onLoadScene() { var scene: Laya.Scene = Laya.Scene.load(this.strScene); if (scene == null) { return; } this.mScene = scene; 大致的流程如上 错...
来源: Laya_社区 发布时间: 20180418
...该页面是一个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