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

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

251. Laya3D [ 81%]

..., materialBath:String):String[static] private Laya3D  init(width:Number, height:Number, antialias:Boolean = false, alpha:Boolean = false, premultipliedAlpha:Boolean = true, stencil:Boolean = true):void[static] 初始化Laya3D相关设置。 Laya3DConstructor DetailLaya3D()Constructorpublic functio...

来源: laya_api 发布时间: 20170929

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

...s.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.contentT.fontSize; this.contentDiv.style.color = thi...

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

253. 音频-播放演示 [ 81%]

...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { var gap = 10; //创建一个S...

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

254. 区块地图-滚动地图 [ 81%]

...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); })(); //创建地图 function createMap() { //...

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

255. laya.d3.core.render.RenderContext3D_API3.0 [ 81%]

...ntext3D Index Constructors constructor Properties configPipeLineMode clientHeight clientWidth Accessors cameraShaderValue Methods changeScissor changeViewport drawRenderElement Constructors constructor new RenderContext3D(): RenderContext3D Defined in laya/d3/core/render/RenderContext3D.ts:171 创...

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

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

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

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

257. 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;     list...

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

258. 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 type: click but...

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

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

...xt(_value + ""); if (isVertical) { label.x = _bar._x + 20; label.y = (_bar.height - label.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不...

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

260. CommandBuffer · LayaAir3.3 · 引擎文档 · LAYABOX [ 81%]

...e var renderTexture = RenderTexture.createFromPool(viewPort.width,viewPort.height,RenderTextureFormat.R8G8B8,RenderTextureDepthFormat.DEPTHSTENCIL_NONE); this.texture = renderTexture; //将当前渲染的结果拷贝到创建好的RenderTexture buf.blitScreenTriangle(null,renderTexture); //获得模...

来源: Laya3.0_文档 发布时间: 20251010