大约有 1,852 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0059 秒)
Laya_社区(1125) Laya3.0_api(242) Laya2.0_文档(103) Laya2.0_示例(94) Laya_示例(91) Laya2.0_api(82) laya_api(76) Laya3.0_文档(39)
...pePath); let texture = 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); } onApe...
来源: Laya2.0_示例 发布时间: 20241118
...Memory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getPixels gpuCompressFormat hasListener isCreateFromURL of...
来源: Laya3.0_api 发布时间: 20231115
...(x: number, y: number, radius: number, fillColor: any, lineColor: any, lineWidth: number, vid: number): void Defined in laya/resource/NativeContext.ts:442 Parameters x: number y: number radius: number fillColor: any lineColor: any lineWidth: number vid: number Returns void _drawLine _drawLine(x: num...
来源: Laya3.0_api 发布时间: 20231102
...t:Texture = 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 ...
来源: Laya_社区 发布时间: 20161115
...tand.alone.version/libs/laya.d3.js:37382: TypeError: Cannot read property 'width' of undefined 05-18 09:55:36.987: I/0(27649): minWidth=Math.min(minWidth,image.width); 05-18 09:55:36.987: I/0(27649): ^ 05-18 09:55:36.987: I/0(27649): TypeError: Ca...
来源: Laya_社区 发布时间: 20190518
...ig.closeDialogOnSide = false; this.diango = 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') ...
来源: Laya_社区 发布时间: 20171107
... ib顶点索引数组 */ 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...
来源: Laya_社区 发布时间: 20180619
...,第一个 Canvas 即 “在屏Canvas” ,无论开发者怎样设置 width height,在底层都会将width height放缩为物理像素。(gl.viewport gl.scissor 等接口的底层,我们也做了对应的放缩,所以开发者感知不到这个逻辑) 这种放缩,会让在...
来源: Laya_社区 发布时间: 20190201
...a.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.showApe(); } showApe() { th...
来源: Laya2.0_示例 发布时间: 20241118
...链接 提交 1 个回复 cuixueying 赞同来自: (1)Iflash.setSize(width:int,height:int); 设置浏览器舞台的宽高。该值一般同步SWF(width="width",height="height") IFlash.setSize (600,600);//设置舞台宽为600,高为600; (2)IFlash. setBgcolor(value:String); 设...
来源: Laya_社区 发布时间: 20151204