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

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

2021. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 44%]

...t(fontName); }   createText(font) { let txt = new Laya.Text(); Laya.stage.addChild(txt); txt.width = 250; txt.wordWrap = true; txt.text = "Do one thing at a time, and do well."; txt.font = font; // 文本的字体名称,以字符串形式表示 txt.leading = 5; // 垂直行间距 txt.pos(Laya.sta...

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

2022. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 44%]

...(0.5, 0.5); mArmature.on(Event.STOPPED, this, completeHandler); Laya.stage.addChild(mArmature);   play(); }); }   function completeHandler() { mArmature.stop();         mArmature.removeSelf();         mArmature.removeChildren();         mArmature.destroy(true);           Laya.Pool...

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

2023. laya.ui.UIGroup_API3.0 [ 44%]

...wport visible width x y zOrder Methods _initialize _processActive _setSkin addChild addChildAt addChildren addComponent addComponentInstance addItem bubbleEvent callLater clearTimer contains customRender delItem destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frame...

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

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

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

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

2025. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 44%]

...e("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); }  以上是子域项目中加载图集和取资源的代码。代码是参照 https://ask.layabox.com/question/15086 这个帖子的。 图集加载是ok的,但是这样new Image("rank/country.png");从图...

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

2026. 手机QQ厘米秀GLTF模型使用说明(TypeScript-小游戏适配文档-QQ小游戏) [ 44%]

...Sprite3D, renderableMap: Map>) { // 将节点添加到场景中 this.scene.addChild(sprite); } ``` 4. 自定义部分 1. 添加动画示例 - 厘米秀人物模型共用一套骨骼, 在 unity 中使用对应骨骼模型导出 *.lani 动画数据文件, 加载到人物上 - 可自行添加,组...

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

2027. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 44%]

...ationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } }new Main(); ``` 运行后,按钮被按下时,动画效果如动图11所示: ![12](img/12.gif)(图11) ### 4、多个动效模板创建复杂动效 刚刚实现了按钮按下后,从小变大的动画...

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

2028. laya.ui.LayoutBox [ 44%]

...nherited Public Methods Show Inherited Public Methods MethodDefined By  addChild(child:Node):Node[override] 添加子节点。 LayoutBox  addChildAt(child:Node, index:int):Node[override] 添加子节点到指定的索引位置。 LayoutBox addChildren(... args):void 批量增加子节点 Node...

来源: laya_api 发布时间: 20170929

2029. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 44%]

...s(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.height)...

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

2030. 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) [ 44%]

...时触发 progressBar.changeHandler=new Handler(this,onChange); Laya.stage.addChild(progressBar); } private function onChange(value:Number):void { trace("进度: "+Math.floor(value*100)+"%"); } //游戏资源加载进度函数 private function onProgress(pro:Number):void { trace("加载了总文件...

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