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

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

1491. 在Unity中导出拖尾系统(TypeScript-3D基础(TS)-LayaAir3D之拖尾系统) [ 54%]

...er.create(this,function(sp){ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function(){ //使用差速来体现移动 box.transform.translate(new Laya.Vector3(0,0.05,0),false); camera.transform...

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

1492. TypeError: Cannot set property 'material' of undefined [ 54%]

...D = Laya.Loader.getRes("Unity/Unit.lh") as Laya.MeshSprite3D; this.scene3D.addChild(this.unit3D);         this.unit3D.transform.localScale = new Laya.Vector3(1, 1, 1); this.unit3D.transform.translate(new Laya.Vector3(0, 0, 0));          var material:Laya.UnlitMaterial = Laya.Loader....

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

1493. [BUG]大量调用 graphics.drawCircle 导致错误 [ 54%]

...dom() * 500, Math.random() * 800, 50, "#666666", "#555555", 5); Laya.stage.addChild(Sprite) } 其他: Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebGL);//Laya.WebGL Laya.stage.scaleMode = "showall"; Laya.stage.alignH = "center"; Laya.stage.alignV = "center"; Laya.stage.useHDRendering = ...

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

1494. 龙骨动画残影 [ 54%]

...ani created:" + ani);         this._hero = ani;         this.addChild(this._hero);         this._hero.pos(300, 400);         this._hero.scale(0.3, 0.3);         this._hero.on(Laya.Event.STOPPED, this, this._onPlayed);         this._play();           ...

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

1495. 关于js继承类class的参数问题 [ 54%]

...e(100, 20);//设置 label 的宽度、高度。      *         this.addChild(label);//将 label 添加到显示列表。      *     };      *     Laya.class(Item,"mypackage.listExample.Item",_super);//注册类 Item 。      * })(laya.ui.Box); 2018-04-26 0 0 分享 微博 QZONE ...

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

1496. laya图片路径问题 [ 54%]

...w Laya.Animation();  roleAni.loadImages();  roleAni.play();  Laya.stage.addChild(roleAni);   这样就会报路劲错误   var urls = [ 'img/food/f1.png', 'img/food/f2.png', 'img/food/f3.png', 'img/food/f4.png', 'img/food/f5.png', 'img/food/f6.png', 'img/food/f7.png', 'img/food/f8.png', 'img/f...

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

1497. 关于大量绘制 draw的性能优化问题 [ 54%]

....init(800, 1030); Stat.show(0,0); var drawLayer = new Sprite(); Laya.stage.addChild(drawLayer); drawLayer.width = 800; drawLayer.height = 1030; drawLayer.on(Event.MOUSE_MOVE, this, mousemove); function  mousemove(e) {     drawLayer.graphics.drawCircle(e.target.mouseX,e.target.mouseY,20,"#ffffff")...

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

1498. 关于fillText问题 [ 54%]

...xxx,"15px Arial","#000000","center"); this.label_image.pos(0,0) Laya.stage.addChild(this.label_image); 这样写为什么CurMem会增加接近16M,这不就是在精灵上绘制嘛,简单来说就是一个精灵,用不了这么多吧   2018-04-25 添加评论 免费帖 --> 分享 微博 QZONE ...

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

1499. 关于TS 调用外部导入的 js的问题 [ 54%]

... 人 laya_zhangjie222 • 2018-04-18 16:18 我想做出类似与Laya.stage.addchild(xx);这个类型的调用,我的方法是init(),但是我想有个moudle obj,在.d.ts文件中:declare module obj{ init();}; 之后再Layasample中 obj.init(); 调用,我想这种怎么办? 155*****359 • 20...

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

1500. 为什么全局属性赋值后,在另外个函数中调用会自动变成undefined [ 54%]

... function(scene:Scene3D):void {                 Laya.stage.addChild(scene) as Scene3D;                 camera = scene.getChildByName("Main Camera") as Camera;                 Laya.stage.on(Event.MOUSE_DOWN, this, onMouseDown);             ...

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