大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0057 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...f"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load([this.skin1,this.skin2],Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个CheckBox实例cb1 var cb1:Laya.CheckBox = new Laya.CheckBox(this.skin1); //添加到舞台上显示 Laya.stage.addChild...
来源: Laya2.0_文档 发布时间: 20210715
....__init__(); .... } private _setDetailNum(value){ switch (value) { case 1: this._shaderValues.addDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM2); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE...
来源: Laya2.0_文档 发布时间: 20210715
....__init__(); .... } private _setDetailNum(value){ switch (value) { case 1: this._shaderValues.addDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM2); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE...
来源: Laya2.0_文档 发布时间: 20210714
..._CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.createInput(); } private createInput(): void { var inputText: Input = new Input(); // 移动端输入提示符 inputText.prompt = "Type some word..."; //多行输入 inputText.multiline = true; inputText.wordWrap = true;...
来源: Laya_示例 发布时间: 20251219
...{ if (Render.isWebGL) { return RunDriver.getTexturePixels(this, x, y, width, height); } else { Browser.canvas.size(width, height); Browser.canvas.clear(); Browser.context.drawTexture(this, -x, -y, this.width, this.height, 0, 0); var info:* =...
来源: Laya_社区 发布时间: 20171030
...)); effect.once(Laya.Event.HIERARCHY_LOADED, this, function(){ var particle = effect.getChildAt(0).getChildAt(0).particleSystem; particle.on(Laya.Event.COMPLETE, this, function(){ ...
来源: Laya_社区 发布时间: 20170614
...的操作 private onTexLoad(tex:Laya.Texture2D):void { // let oldTex = this.material.getTexture(); this.material.setTexture(tex); this.plane.active = true; // if(oldTex) // { // MeshPool.destoryRes(oldTex["keyUrl"],oldTex); // } }我所注视的就是上面在laya.3d.js 中出现的那个alert ...
来源: Laya_社区 发布时间: 20190612
图片通过drawTexture平铺出现缝隙 this.darwSprite = new Sprite(); this.addChild(this.darwSprite); var t: Texture = Laya.loader.getRes("load/0.png"); this.darwSprite.graphics.drawTexture(t,0,0); this.darwSprite.graphics.drawTexture(t,176,0); ...
来源: Laya_社区 发布时间: 20160718
iframe跳转没反应 btn.on(Laya.Event.CLICK,this,function(){ var iframe = Laya.Browser.createElement("iframe"); iframe.src = "http://www.baidu.com"; });点击按钮没有加载百度界面 2016-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20161227
... GameUI extends Laya.Scene { constructor() { super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya....
来源: Laya_社区 发布时间: 20190314