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

大约有 114 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)

81. 为什么谷歌浏览器调试可以显示这些文字打包后却没有了 [ 59%]

...room/othersay.png"; paopao.imgJudge.visible = true; } paopao.imgSayBg.addChild(div); gRoomView.chatBox.addChild(paopao); //更新高度 gRoomView.chatBox.height = gRoomView.chatBox.height + paopao.height; gRoomView.chatPanel.refresh(); gRoomView.chatPanel.vScrollBar.value = gRoomView.chatPanel....

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

82. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 58%]

..."); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("test/test.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage....

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

83. 分享-js资源进度加载 [ 58%]

....onProgress)); } onProgress() { this.Progress = new Progress(); Laya.stage.addChild(this.Progress); //加载资源进度并且监听 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetsLoaded), Laya.Handler.create(this, this.onAssetsLoading, null, false)); } onAssetsLoading(progress) {...

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

84. 绘制曲线(JavaScript-LayaAir基础篇(JS)-矢量图) [ 57%]

...    {         sp = new Sprite();         Laya.stage.addChild(sp);         //画曲线         sp.graphics.drawCurves(10, 58, [0, 0, 19, -100, 39, 0], "#ff0000", 3);     } })(); ``` 发布后如下图所示,我们成功的绘制了一条简单的...

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

85. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 57%]

... txt.font = this.mFontName; txt.fontSize = 50; txt.leading = 5; Laya.stage.addChild(txt); } } } ``` ### **Text 类中相关接口:** **registerBitmapFont () 方法** public static function registerBitmapFont(name:String, bitmapFont:BitmapFont):void 注册位图字体。 参数 ​ name:String — ...

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

86. 绘制曲线(TypeScript-LayaAir基础篇(TS)-矢量图) [ 56%]

...      this.sp = new Sprite();             Laya.stage.addChild(this.sp);             //画折线             this.sp.graphics.drawCurves(10, 58, [0, 0, 19, -100, 39, 0], "#ff0000", 3);       }     } } new laya.Sprite_DrawShapes(); ``` ...

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

87. 绘制曲线(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 56%]

...         sp = new Sprite();             Laya.stage.addChild(sp);             //画曲线             sp.graphics.drawCurves(10, 58, [0, 0, 19, -100, 39, 0], "#ff0000", 3);                        }     } } ``` 发布...

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

88. TiledMap地图 · LayaAir3.0文档 · LAYABOX [ 56%]

... private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } } 编译运行代码,效果如图3-3所示,说明地图已创建成功。 (图3-3) 3.3...

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

89. 无法触发浏览器文件上传框 [ 56%]

...labelSize = 12; button.labelColors = '#000000,#000000,#000000'; Laya.stage.addChild(button); return button; } private onClick(): void { // 触发浏览器文件上传框 let fileInput = Laya.Browser.document.getElementById('file'); fileInput.click(); console.log(fileInput);//input#file } } new GameM...

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

90. 发布h5项目,在浏览器上初始加载资源过多导致卡顿怎么优化 [ 54%]

...ld"; //设置文本颜色 txt.color = "#ffffff"; Laya.stage.addChild(txt); yaorao • 2018-03-30 11:39 @qian:看了下 lib目录的文件有6M左右。会是因为加载这个目录导致的嘛? qian • 2018-03-30 11:54 不确定 但是你可以把不需要的手动删除一下

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