大约有 2,783 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0078 秒)
Laya_社区(2254) Laya2.0_文档(123) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(51)
...答(最新版本:1.7.16) TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 微信小游戏如何使用ttf字体? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏:HTMLDivElement...
来源: Laya_社区 发布时间: 20171208
...oid { //如果子弹超出屏幕,则移除子弹 if ((this.owner as Laya.Sprite).y < -10) { this.owner.removeSelf(); } } onDisable(): void { //子弹被移除时,回收子弹到对象池,方便下次复用,减少对象创建开销 Laya.Pool.recover("bullet", this.owner); } } 在游戏中...
来源: Laya3.0_文档 发布时间: 20251010
关于fillText问题 private label_image:Laya.Sprite=new Laya.Sprite(); this.label_image.graphics.fillText(xxx, xxx,"15px Arial","#000000","center"); this.label_image.pos(0,0) Laya.stage.addChild(this.label_image); 这样写为什么CurMem会增加接近16M,这不就是在精灵上绘制嘛,...
来源: Laya_社区 发布时间: 20180425
...his, this.resetPosition); resetPosition(): void { var aniMonkey: Laya.Sprite3D = scene.getChildByName("monkey") as Laya.Sprite3D; aniMonkey.transform.position = new Laya.Vector3(math,math,math); } Laya.Tween.to(aniMonkey.transform.position, { x: math1, y: aniMonkey.transform.position.y, z:...
来源: Laya_社区 发布时间: 20180117
发现静态物件使用Laya.Sprite3D.instantiate方法复制出来的渲染批处理反复增加不会合批,这个怎么办? 发现静态物件使用Laya.Sprite3D.instantiate方法复制出来的渲染批处理反复增加不会合批,这个怎么办?复制出来的静态物件都会新...
来源: Laya_社区 发布时间: 20200612
IDE中继承Sprite对象,内部放入一个Animation,会报错 例子里面,只需看GameMain.ts和APlayer.ts 即可。打开运行即可看到报错! 附件 : --> FlyTest.zip 2017-07-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20170710
...到子节点对象 服务端用什么语言开发比较好一些? new Laya.Sprite();绘制图形以后,怎么删除释放资源? layabox能不能由xml生成节点 3D 场景中 如何做出一道3D光束,像手电筒那种,有没有官方的demo? 怎么删除元素 删除场景中的模型...
来源: Laya_社区 发布时间: 20180116
...flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; import flash.system.ApplicationDomain; import flash.system.LoaderContext; public class SwfBinary extends Sprite { public function SwfBinary() { super(); if(stage...
来源: Laya_社区 发布时间: 20151224
...然不重合?? 我使用一个Button创建的按钮,和使用 this.sprite_show = new Laya.Sprite(); this.sprite_show.graphics.drawTexture(Laya.loader.getRes(this.resStr), 0, 0, this.width, this.height); 画出来的两个对象,sprite_show的图形竟然被缩小了一点点。。。都是...
来源: Laya_社区 发布时间: 20171102
... laya123 package huamao.layer.ui { import app.TheGame; import laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:...
来源: Laya_社区 发布时间: 20171124