• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,754 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0080 秒)

371. laya.resource.RenderTextureCube_API3.0 [ 82%]

...ipmapLevel mipmap mipmapCount multiSamples obsolute referenceCount samples width wrapModeU wrapModeV wrapModeW bindCanvasRender cpuMemory currentActive gpuMemory Methods _addReference _clearReference _end _removeReference _setCPUMemory _setCreateURL _setGPUMemory _start destroy event getData gpuComp...

来源: Laya3.0_api 发布时间: 20231115

372. laya.d3.webxr.core.WebXRRenderTexture_API3.0 [ 82%]

...ipmapLevel mipmap mipmapCount multiSamples obsolute referenceCount samples width wrapModeU wrapModeV wrapModeW bindCanvasRender cpuMemory currentActive gpuMemory Methods _addReference _clearReference _createRenderTarget _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getData...

来源: Laya3.0_api 发布时间: 20231115

373. 创建[HTMLDivElement]时遇到错误(手动实例一次本组件可定位错误) [ 82%]

....x = this.contentT.x; this.contentDiv.y = this.contentT.y; this.contentDiv.width = this.contentT.width; this.contentDiv.height = this.contentT.height; this.contentDiv.style.width = this.contentT.width; this.contentDiv.style.height = this.contentT.height; this.contentDiv.style.fontSize = this.content...

来源: Laya_社区 发布时间: 20191028

374. 用LayaAir引擎解析Tiled Map地图(JavaScript-2D进阶篇(JS)-扩展模块) [ 82%]

... 创建地图示例 ```javascript //初始化舞台 Laya.init(Laya.Browser.width,Laya.Browser.height,Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect = new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height); //创建Tile...

来源: Laya2.0_文档 发布时间: 20210715

375. 区块地图-滚动地图 [ 82%]

...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(); createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图 func...

来源: Laya_示例 发布时间: 20251209

376. HTMLDivElement img 标签问题 [ 81%]

...img 标签问题 做聊天图文混排 <img src='image/chat/face15.png' width='30px' height='30px'></img> 原图为81*81,第一次发,显示是81*81,第2次发就是30*30 图片非要预加载一次吗 附件 : --> 2017-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

来源: Laya_社区 发布时间: 20170329

377. list item 添加事件后无法监听 [ 81%]

...求大神解答     // 初始化ListView function createListView(x, y, width, height, item_width, item_height) {     var list = new Laya.List();     list.itemRender = initItem(item_width, item_height);      list.repeatX = 1;     list.size(width, height);     list.x = x;    ...

来源: Laya_社区 发布时间: 20180724

378. Button连续点击触发MOUSE_OUT事件问题 [ 81%]

...况?   日志如下:========================================= button width: 155, height: 155 mouse position, x: 374, y: 835 event type: click button width: 155, height: 155 mouse position, x: 374, y: 835 event type: mouseout button width: 155, height: 155 mouse position, x: 374, y: 835 event ty...

来源: Laya_社区 发布时间: 20180724

379. label如何保证右对齐? [ 81%]

...bel设置一个固定的宽高 2、如果label.text的内容超出了label.width,那么默认超出部分会从右侧继续延伸显示 3、如果label.text的内容小于等于label.width,你会发现label.text是居右对齐的 也就是说,label的对齐方式是在label.text不超过label....

来源: Laya_社区 发布时间: 20170410

380. Slider控件的标签不居中 [ 81%]

....height) * 0.5 + _bar._y; } else { label.y = _bar._y - 20; label.x = (_bar.width - label.width) * 0.5 + _bar._x; } } }在Slider类里面显示改变标签使用的是label.textField.changeText,导致label不会重新计算尺寸,后面的坐标计算使用的label.width不能反映label的真实...

来源: Laya_社区 发布时间: 20190125