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

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

2941. getChildAt有bug取到的值和_children[]不一样 [ 56%]

...ublic function getChildAt(index:int):Node {             return this._children[index] || null;         }   请提供不一样的demo 2019-02-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 友人A 相关问题 TypeS...

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

2942. 关于裁剪的问题 [ 56%]

...maths.Rectangle(0, 0, 0, loginUI.bbbar.height) Game.timer.loop("progress", this, function() { //console.log("loginUI.bar.value = ", loginUI.bar.value); loginUI.bbbar.viewport.width = loginUI.bbbar.viewport.width + 0.2 //console.log("loginUI.bbbar.viewport.width = ", loginUI.bbbar.viewport.width); },...

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

2943. Spine动画闪烁 [ 56%]

...re(aniMode:int = 0):Skeleton {             return new Skeleton(this, aniMode);         } 看这个, 第二个翅膀用1 2018-12-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 @DT_ 相关...

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

2944. Laya.stage报null [ 56%]

...台上面移除掉所有对象,并且置为null 莫名其妙的报错,this.getStyle()是null 打包apk之后,突然报一个错误, Cannot read property 'createTexture' of null。明明没有加载图片,为啥执行到了这里。 Error processing "launch": Error: 找不到文件: null ...

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

2945. 位图字体预加载 [ 56%]

...   bitmapFont.loadFont("../../../../res/bitmapFont/test.fnt",new Handler(this,onFontLoaded, [bitmapFont]));         }         private function onFontLoaded(bitmapFont:BitmapFont):void         {             bitmapFont.setSpaceWidth(10);             Text.registerB...

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

2946. 材质的加载(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 56%]

...载 Laya.BaseMaterial.load("res/skyBox2/skyBox2.lmat",Laya.Handler.create(this,function(mat) { var skyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = Laya.SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` ![](img/1.png)(图1)

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

2947. 材质的加载(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 56%]

...载 Laya.BaseMaterial.load("res/skyBox2/skyBox2.lmat",Laya.Handler.create(this,function(mat) { var skyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = Laya.SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` ![](img/1.png)(图1)

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

2948. 微信上测试加载服务器资源 [ 56%]

...p://212.xx.xx.xx/"; Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,loadComplete)); loadComplete(){显示自己的ui}; 项目设置选择不校验合法域名。(我没有配置域名,用IP可以吗?) 发现comp.atlas是加载下来了,图片不行,但是没有ui。怎么搞...

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

2949. 怎么对动画进行毎帧侦听? [ 56%]

怎么对动画进行毎帧侦听? ani.on(Laya.Event.COMPLETE, this, _OnComplete);   function _OnComplete() {   var bounds = ani.getGraphicBounds();   console.log(bounds.width);   console.log(bounds.height); } 这样的话获取动画宽高  还是只会取到第一帧宽高  并没有办...

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

2950. 如果更换Sprite图片 [ 56%]

...94632691ru.png@120w.png",0,0, 60,60); statusBar.x = 20; statusBar.y = -70; this.addChild(statusBar); 如何通过动态事件更换Sprite图片? 2017-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueyi...

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