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

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

51. 分享:截屏! [ 50%]

...示对象             sp= new Sprite();             sp.loadImage("logo.png");             Laya.stage.addChild(sp);         }                  private function onClick():void         {             //HTMLCanvas 是 Html Canvas 的代理类,...

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

52. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 49%]

...径 var skin = "./res/img/btn_test.png"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个Button实例 var btn = new Laya.Button(skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Bu...

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

53. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 49%]

...颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个Button实例 var btn:Laya.Button = new Laya.Button(this.skin); //将Button添加到舞台上 Laya....

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

54. 分享:自己个人开发的H5游戏《西游战》 [ 48%]

...回复问题请先登录 发起人 daohu 相关问题 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) 【屏幕适配】在LayaAir上面是竖屏,为什么到微信开发工具中就是横屏,而且还被拉伸了 写个捕鱼游戏练练手 招聘:H5游戏开发 坐标:...

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

55. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 48%]

...颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin, Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个Button实例 var btn:Button = new Button(skin); //将Button添加到舞台 Laya.stage.addChild(btn); ...

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

56. 动态图集 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

...,指定添加到哪个大纹理。 //使用示例 const texture = Laya.loader.getRes("resources/hero.png", Laya.Loader.IMAGE); const success = atlasManager.addTexture(texture, 0.5, 0); // 添加到指定图集,缩放为 0.5 通过 URL 添加纹理 //接口 addTextureByUrl(url: string, scale: numbe...

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

57. 某些机型drawToCanv绘图颜色变深 [ 46%]

...效会掉色,掉成雾效颜色 微信小游戏兼容性bug 部分机型load场景不显示 Morn UI中的Label文字颜色显示不正确 问题状态 最新活动: 2018-07-03 16:45 浏览: 1539 关注: 4 人 jzhlaya • 2018-02-08 15:29 我认为不是兼容性问题,因为我的vivo x5在提...

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

58. [LayaAir3]3.3.0-beta.4已知新bug汇总 [ 44%]

...ss = (value: number) => h.runWith(value); } // @ts-ignore return Scene._load(url, progress).then(scene => { scene.open(closeOther, param); if (complete instanceof Handler) complete.runWith(scene); else if (complete) complete(scene); return scene; }); } }2.长音频播放暂停和恢复 触发...

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

59. 按钮组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 39%]

...G * (this.skins.length / this.COLUMNS - 1) - this.BUTTON_HEIGHT) / 2; Laya.loader.load(this.skins).then(() => { this.onUIAssetsLoaded(); }); } private onUIAssetsLoaded(e: any = null): void { for (var i: number = 0, len: number = this.skins.length; i < len; ++i) { var btn: Laya.Button = this.cr...

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

60. 绘制能力 · LayaAir3.4 · 引擎文档 · LAYABOX [ 29%]

..., offset || Point.EMPTY, color)); else return null; } 代码示例: Laya.loader.load("resources/layaAir.png").then((res: Laya.Texture) => { let sp = new Laya.Sprite(); // 绘制填充纹理 sp.graphics.fillTexture(res, 0, 0, 500, 500, "repeat"); this.owner.addChild(sp); }); 运行效果: (...

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