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

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

1251. 发现TimeLine的一些问题,像是BUG [ 48%]

...p.graphics.drawRect(0, 0, 50, 50, "#ffffff"); sp.x=xx; sp.y=yy; Laya.stage.addChild(sp); return sp; } //添加缓动的函数 private function addTime(timeLine:TimeLine,sp:Sprite,yy:Number):void { timeLine=new TimeLine(); timeLine.to(sp, {y: yy}, 3000, Ease.linearIn); timeLine.once(Event.COMPLETE,th...

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

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

..."); 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

1253. 打包成APK后,POST请求会先去Download请求的地址 [ 47%]

...imeout, dt=8,opttimeout=1798 03-09 21:15:03.207 23554 23663 I LayaBox :  [addChild][BoundReference]   download 成功log: ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 03-09 21:15:16.950 23554 23663 I LayaBox :  send httpRequest method:user.checkPlatformExist 03-09 21:...

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

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

...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

1255. 微信小游戏报错 the .lh file root type must be Scene [ 47%]

...h); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.stage.addChildAt(scene, 0); this.InitCamera(scene); return scene; } 微信小游戏报错 Scene: the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function Error: Sce...

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

1256. 3D中摄像机绕物体旋转该如何实现? [ 47%]

...t3D,给它添加一个cameraMoveScript脚本组件,然后​cameraroot.addchild创建一个摄像机,设置好摄像机的默认位置角度使其朝向物体就行了 2017-07-14 1 1 分享 微博 QZONE 微信 183*****755 赞同来自: 需要开发者参考cameraMoveScript脚本组件自己实...

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

1257. 在模型有刚体的情况下,怎么才能让模型只围绕一个轴进行旋转 [ 47%]

...; { this.car = sp.getChildAt(0).getChildAt(0) as Laya.Sprite3D; this.scene.addChild(this.car); this.rig = (this.car.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D) })); 源 • 2019-01-11 20:47 @叶子:不算。这样只是给了刚体一个索引而已 叶子 • 2019-01-11 20:54 @源:额,我...

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

1258. Skeleton骨骼动画内存泄漏 [ 47%]

...re(0); this.sk.x = 400; this.sk.y = 700; this.sk.play(0, true); Laya.stage.addChild(this.sk); } Demo如下: 附件 : --> skTest.zip 2019-03-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 10 个回复 Lee3260 赞同来自...

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

1259. 分享-js资源进度加载 [ 47%]

....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

1260. Spine适配版(TypeScript-LayaAir基础篇(TS)-动画基础) [ 47%]

...omplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Laya.Browser.width / 2, Laya.Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play) this.play(); } private onError(): void{ c...

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