大约有 1,738 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0067 秒)
Laya_社区(1124) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(39)
...件 2、打开文件,搜索【HTMLDivElement】找到这个类,重写width和height,并重新设置点击区域,修改如下 到这里就已经处理好第一个和第三个bug了,运行效果如下: 3、接下来处理超链接换行bug,还是在laya.html.js文件中,搜索【wor...
来源: Laya_社区 发布时间: 20200206
...擎有没有地方设置不更改viewport啊,现在直接给强制写成width=device-width,这样移动设备上的分辨率很低的,即使舞台的分辨率很高显示出来依然很模糊啊 2016-05-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20160501
...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_示例 发布时间: 20240930
...如图这种适配问题 适配方案是这样的: const GAME_CONFIG = { WIDTH: 1334, HEIGHT: 750, SCREEN_MODE: Laya.Stage.SCREEN_HORIZONTAL, //可选自动横屏:Laya.Stage.SCREEN_HORIZONTAL 或者 自动竖屏:Laya.Stage.SCREEN_VERTICAL SCALE_MODE: Laya.Stage.SCALE_FIXED_WIDTH, //自动横屏时...
来源: Laya_社区 发布时间: 20200410
...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
...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
...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
...(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
...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