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

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

221. 文字在框内滑动、滚动文本 [ 57%]

...00);     //这里没看出来是什么意思     this.txt.x=Laya.stage.width-this.txt.width>>1;     this.txt.y=Laya.stage.height-this.txt.height>>1;     this.txt.borderColor="#ffff00";     this.txt.fontSize=20;     this.txt.color="#ffffff";     Laya.stage.addChild(this.txt)...

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

222. laya.html.dom.HTMLDivElement_API3.0 [ 57%]

... background-color:#ff0000; 背景颜色 border-color:#ff0000; 边框颜色 width:100px; 对象宽度 height:100px; 对象高度 示例用法: var div:HTMLDivElement=new HTMLDivElement(); div.innerHTML = "adivspanspan2p"; Hierarchy Sprite HTMLDivElement HTMLIframeElement Index Constructors construc...

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

223. Texture,和Texture2D如何互转? [ 57%]

...:对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null 怎么修改Texture的颜色 Texture自动恢复还是存在另外的问题 问题状态 最新活动: 2019-02-19 12:17 浏览: 2122 关注: 3 人 出离 • 2018-05-21 22:00 再有,2D用的贴图和3D用的贴...

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

224. laya.d3.resource.RenderTextureCube_API3.0 [ 57%]

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

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

225. sprite添加texture后,sprite无法触发点击事件? [ 57%]

... 2017-08-26 17:23 利用getBounds获取的时候发现sprite是有height和width的,为什么还要设置size呢?

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

226. laya.resource.RenderTextureCube_API3.0 [ 56%]

...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

227. 【LIST无法拖动】参照官方实例做的 [ 56%]

...ngbang.text = "已获得关卡";         paihangbang.x = (list.width - paihangbang.fontSize * 3) / 2;         console.info(list.x + "---"+list.y + "---"+paihangbang.x + "---"+paihangbang.y + "---")         paihangbang.y -= (paihangbang.fontSize + 20);  ...

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

228. getimagedata直接调用无法获取有效像素问题 [ 56%]

... texture的 getpixels 得到有效数据。__proto.getPixels=function(x,y,width,height){ if (Render.isWebGL){ return RunDriver.getTexturePixels(this,x,y,width,height); }else { Browser.canvas.size(width,height); Browser.canvas.clear(); Browser.context.drawTexture(this,-x,-y,this.width,this.height,0,0...

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

229. laya.device.media.Video [ 56%]

...mouseThrough属性。 影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...

来源: laya_api 发布时间: 20170929

230. textinput动态修改宽度 会出现重叠的文字 [ 56%]

...ut(input:Laya.TextInput, event:Event){ if(input.text.length > 2){ input.width += 20; } } 请问怎么解决这个问题? 附件 : --> 2017-08-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识...

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