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

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

711. list图片路径没问题.为什么图片就是不显示.啊啊啊也,求解答 [ 71%]

...eList.vScrollBarSkin = ""; this._furnitureList.array = []; this..addChild(this._furnitureList); } private __renderFurnitureItem(cell:FurnitureItemCell, index:number):void { cell.furnitureInfo = cell.dataSource; } http://layaair.ldc.layabox.com ... DList 官方例子也有。 你不写逻...

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

712. [LayaAir3]3D场景里面鼠标感应区域 3.2.1跟3.3不同 [ 71%]

...e.texture.sourceHeight = Laya.stage.height; //添加2D精灵, this.owner.addChild(this.spRole); this.spRole.pos(0, 0); this.spRole.size(Laya.stage.width, Laya.stage.height); }); 2025-01-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无...

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

713. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 71%]

...; var sp:Sprite = new Sprite(); sp.loadImage(data,0,0,200,200); Laya.stage.addChild(sp); } } } ``` 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来。loadImage这个方法中的参数不仅仅接收地址形式的url还接受base64和svg的格式...

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

714. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /** * 发起HTTP连接请求 */ private connect(): void { //创建HttpRequest对象 this.hr = new HttpRequest(); //请求响应的进度改变时触发 this.hr.on(Event.PROGRESS, this, this.onHttpReques...

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

715. 多摄像机窗口的使用(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 71%]

...离,代码如下: ```typescript //创建场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //创建相机1 var camera1 = scene.addChild(new Laya.Camera(0, 0.1, 100)); //设置相机1清除颜色 camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new L...

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

716. bitmap渲染问题 [ 71%]

...; bmd2.copyPixels(bmd1, rect, pt); var bm1:Bitmap = new Bitmap(bmd1); this.addChild(bm1); var bm2:Bitmap = new Bitmap(bmd2); this.addChild(bm2); bm2.x = 50; trace(rect.width); trace(rect.height); 输出正常,不知道你那边是如何写的?

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

717. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 71%]

...else { printNumber++; } } } drawTextBySprite(sprite: Laya.Sprite) { sprite.addChild(this.sprite); this.drawText(sprite.x, sprite.y, sprite.width, sprite.height); } onEnable(): void { } onDisable(): void { } } export enum layoutType { /**竖排 */ verticalRight = 0, } 2019-11-03 添加评论 免费...

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

718. 位图字体生效 [ 71%]

...就不生效了 txt.fontSize=60; txt.name='CEshi' txt.zOrder=2; this.owner.addChild(txt); console.log(this.owner) } 附件 : --> 2019-11-08 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 vvv123 赞同来自: ...

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

719. 创建laya的视图销毁destroy()清除不了 [ 71%]

...ail2UI; constructor(){ super(); this.display = new ui.mail.mail2UI(); this.addChild(this.display); } public destroy():void { this.display.destroy(); this.display.removeSelf(); super.destroy(); } }就是这段简单的测试代码,怎么销毁,内存还是创建后的大小 2017-02-21 添加评...

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

720. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 71%]

...离,代码如下: ```typescript //创建场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //创建相机1 var camera1 = scene.addChild(new Laya.Camera(0, 0.1, 100)); //设置相机1清除颜色 camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new L...

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