大约有 2,033 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0083 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...stage.bgColor = "#ffffff"; Laya.stage.on(Event.CLICK, this, play); } function play():void { Laya.timer.loop(5000, this, function():void { playDragonBonesAnimation("BigAward/BigAward.sk",0...
来源: Laya_社区 发布时间: 20170406
Button点击函数逻辑bug onMouse(e) { if (this.toggle === false && this._selected) return; if (e.type === Laya.Event.CLICK) { this.toggle && (this.selected = !this._selected); this._clickHandler && this._clickHandler.run(); return; } !this._selected && (this.state...
来源: Laya_社区 发布时间: 20191112
...lor = new Laya.Vector4(0, 1, 0, 1); var index = 0; Laya.timer.frameLoop(1, this, function () { index +=1; layaMonkey.meshRender.material.transformUV.offset = new Laya.Vector2(index 0/100.0, index 0/100.0); layaMonkey.active = !debugModel; layaMonkey.transform.rotate(rotation, false); ...
来源: Laya_社区 发布时间: 20171127
...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.Stat.show(); this.cacheText(); } cacheText() { const Sprite = Laya.Sprite, Text = Laya.Text; let textBox = new Sprite(); Laya.stage.addChild(textBox); // 随机摆放文本 let text; for (let i = 0; i < 1000; i++) { text = new Text(); tex...
来源: Laya2.0_示例 发布时间: 20260303
...o.png", "res/mainpage/BtnYes.png" ]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); Laya.loader.on(Event.ERROR, this, onError); private function onAssetLoaded(texture:Texture):void{ //console.log("111...
来源: Laya_社区 发布时间: 20171001
...tate_txt:{text:str},sign_btn:{mouseEnabled:bo}, sign_btn:{gray:!bo}}); } this._signlist.array = arr; this._signlist.selectEnable = true; 以上,list中的按钮mouseEnabled与gray属性 就出问题了,乱掉了。不知道什么原因 170*****650 • 2017-08-23 15:35 还是对setItem和getCel...
来源: Laya_社区 发布时间: 20170822
...-Type','application/x-www-form-urlencoded'); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, loader]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); console.log("-----------------send------------------", url); xhr.send(url, "", "get", "arraybuffer"); 2018-07-04 添加评论 ...
来源: Laya_社区 发布时间: 20180704
...CustomMaterial.js function CustomMaterial() { CustomMaterial.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.prototype.getDiffuseTexture = function () { return this._getTextur...
来源: Laya_社区 发布时间: 20170524
...没有起作用啊cmd.blitScreenTriangle(sourceTexture, destTexture, null, this._shader, this._shaderData, 0); 2020-05-22 0 0 分享 微博 QZONE 微信 MQ 赞同来自: Try...................... render(context: { command: any; camera: { viewport: any; }; source: Laya.RenderTexture; def...
来源: Laya_社区 发布时间: 20200522
... } else { return RunDriver.drawToCanvas(this, _renderType, canvasWidth, canvasHeight, offsetX, offsetY); } } 这个两种方式,只能用这个,那个文档和源码没写清楚 2018-06-26 0 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180626