大约有 584 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)
Laya_社区(298) Laya3.0_api(65) Laya2.0_api(58) laya_api(54) Laya2.0_示例(32) Laya_示例(31) Laya2.0_文档(26) Laya3.0_文档(20)
...搐了一下 引擎版本2.0.1beta 没有锁帧 克隆方式: Laya.Sprite3D.instantiate(sprite,parent,isHoldWorldPos,pos); 播放方式: this.animator.speed = speedRate; // animState._resetPlayState(0);//animState._elapsedTime this.animator.crossFade(animName, 0.1, 0, normalizedTime); 附...
来源: Laya_社区 发布时间: 20190905
...a.Pool.recover收回对象池。 我改了一下逻辑,改成了: 1.将Sprite的visible设为false; 2.将Sprite移动到不影响游戏逻辑的位置; 3.调用Laya.Pool.recover收回对象池。 逻辑进行这样修改之后,再没出现上述的崩溃错误了,不知道是不是box2d...
来源: Laya_社区 发布时间: 20191019
...m • 2018-08-16 15:18 请问下这段代码有什么问题? let s: Laya.Sprite = new Laya.Sprite(); s.graphics.drawRect(10, 10, 580, 470, "#000000"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollC...
来源: Laya_社区 发布时间: 20180720
...Object' of undefined ui list 里面的元素不能点击两次 如何设置Sprite的宽高和点击区域? iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 问题状态 最新活动: 2025-01-15 15:56 浏览: 3391 关注: 2 人
来源: Laya_社区 发布时间: 20250109
... this.height = this.width = 77; var cMask = new Laya.Sprite();//创建遮罩对象 var r = 38.5; //遮罩圆形半径 cMask.graphics.drawCircle(0, 0, r, "#ff0000");//画一个圆形的遮罩区域 cMask.pos(this.x+r, this.y+r);...
来源: Laya_社区 发布时间: 20181119
...te = 2;//加速播放 // 设置画布上的对齐参照物 reference = new Sprite(); this.addChild(reference); reference.pos(0, 0); reference.size(GoldConsts.contextWidth, GoldConsts.contextHeight); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#cccccc"); // 每次舞台尺...
来源: Laya_社区 发布时间: 20180313
...试代码:package { import laya.display.BitmapFont; import laya.display.Sprite; import laya.display.Text; import laya.utils.Handler; public class GraphicCircle extends Sprite { private var mFontName:String="dataFont"; private var mBitmap:BitmapFont; public function GraphicCircle() { super(); Laya....
来源: Laya_社区 发布时间: 20161116
...问题 Dialog:屏蔽点击Dialog之外的区域关闭弹框 如何设置Sprite的宽高和点击区域? iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 骨骼动画播放完后的回调时间 谷歌浏览器播放mp3出现The AudioContext was not allow...
来源: Laya_社区 发布时间: 20161013
...。 1. 使用getBounds/ getGraphicBounds。 ```javascript var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); ``` getBounds可以满足多数多数需求,但由于其需要计算边界,不适合频繁调...
来源: Laya2.0_文档 发布时间: 20210715
...(); spr.json=obj; var car:Sprite = Pool.getItemByCreateFun("Car", this.spr.create, this.spr); Laya.stage.addChild(bar); bar.pos(Browser.clientWidth/2,Browser.clientHeight/2); ...
来源: Laya_社区 发布时间: 20181108