大约有 1,720 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0061 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...let htmlCanvas: any = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); let canvas: any = htmlCanvas.sourse; canvas.toTempFilePath({ x: 100, y: 200, width: 50, height: 50, destWidth: 100, destHeight: 100, fileType: "png", quality: 1.0, success: (res) => { console.log(res.tempFil...
来源: Laya_社区 发布时间: 20200108
...destroyed dimension filterMode format gammaCorrection gammaSpace gpuMemory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory dest...
来源: Laya3.0_api 发布时间: 20231115
...e = Laya.loader.getRes(apePath); this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.ape.scale(0.8, 0.8); Laya.stage.addChild(this.ape); // 鼠标交互 this.ape.on(Event.MOUSE_DOWN, this, this.onApePress); } onApePress(e) { const Ev...
来源: Laya2.0_示例 发布时间: 20251209
...wTextureM _drawTextureM(tex: Texture, x: number, y: number, width: number, height: number, transform: Matrix, alpha: number, uv: any[] | null): void Defined in laya/resource/NativeContext.ts:375 Parameters tex: Texture x: number y: number width: number height: number transform: Matrix alpha: number ...
来源: Laya3.0_api 发布时间: 20231102
...e 组件的高度 动态变化时 内部item 没有适配 原本高度 700 height = 180; Laya.Tween.to(this.PanleList , {height : (this.thismaxHeight - height) } , 200 ) 子物体没有 适配 放大的时候会跟最最大高度适配 2017-06-16 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170616
... = datas; m_hitAreaSprite.graphics.drawRect(t.offsetX,t.offsetY,t.width, t.height,'#FFFFFF'); m_hitAreaSprite.width = t.width; m_hitAreaSprite.height = t.height; } } 理论上些类是可以有响应的,为何他没有反应,是那里写错了吗? 2016-11-16 0 2 分享 微博 QZONE 微信 nice...
来源: Laya_社区 发布时间: 20161115
...ngo = new Laya.Dialog(); this.diango.width = Laya.stage.width; this.diango.height = Laya.stage.height; var loading_array = []; for(var i = 1; i < 28; i++ ){ loading_array.push('loading/'+ i +'@2x.png',) } Laya.Animation.createFrames(loading_array, 'loading') this.fly = new Laya.Animation(); this....
来源: Laya_社区 发布时间: 20171107
...引擎 Laya.init(640, 480,WebGL); Laya.stage.scaleMode = Stage.SCALE_FIXED_HEIGHT; Laya.stage.bgColor = "#ffffff"; if (Browser.onMiniGame) { Laya.timer.once(1000, this, function():void{ //设置共享画布大小 __JS__('sharedCanvas').width = Laya.stage.width; __JS__('sharedCanvas').height = Laya.s...
来源: Laya_社区 发布时间: 20180525
...引数组 */ myShaderSprite.prototype.init = function(texture,width_Size,height_Size,vb,ib){ this.vBuffer = Laya.VertexBuffer2D.create(); this.iBuffer = Laya.IndexBuffer2D.create(); this.ibData = new Uint16Array(); if(vb) { vbArray = vb; } else{ vbArray = []; var texWidth = texture.width; var texHei...
来源: Laya_社区 发布时间: 20180619
...一个 Canvas 即 “在屏Canvas” ,无论开发者怎样设置 width height,在底层都会将width height放缩为物理像素。(gl.viewport gl.scissor 等接口的底层,我们也做了对应的放缩,所以开发者感知不到这个逻辑) 这种放缩,会让在屏Canva...
来源: Laya_社区 发布时间: 20190201