大约有 144 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
... 我试着用代码实现物理效果class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:laya.physics.Box...
来源: Laya_社区 发布时间: 20190428
...正确。 //这段注释掉,imgMask则正常显示。 let bigMask:Laya.Sprite = new Laya.Sprite(); bigMask.graphics.drawRect(0, 0, 300, 200, "#ffffff"); this.mask = bigMask; // let imgMask:Laya.Sprite = new Laya.Sprite(); imgMask.graphics.drawRect(0, 0, 100, 300, "#ffffff"); this.img.mask = imgMas...
来源: Laya_社区 发布时间: 20190722
sprite点击事件 位置便宜 var canvas2 = Laya.init(480, 360, WebGL); canvas2.style.top = canvas.style.top; canvas2.style.left = canvas.style.left; 当设置stage的位置的时候,再设置sprite的点击事件,发现位置会偏移,点击促发的位置和stage的位置设置有关系...
来源: Laya_社区 发布时间: 20180205
... init() { //这段注释掉,imgMask则正常显示。 let bigMask:Laya.Sprite = new Laya.Sprite(); bigMask.graphics.drawRect(0, 0, 300, 200, "#ffffff"); this.mask = bigMask; // let imgMask:Laya.Sprite = new Laya.Sprite(); imgMask.graphics.drawRect(0, 0, 100, 300, "#ffffff"); this.img.mask = imgMas...
来源: Laya_社区 发布时间: 20190722
...题 请问LayaAir中如何使图片以圆形的方式显示? 如何设置Sprite的宽高和点击区域? Texture图片能否进行翻转? Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 配置layaAir需要注意的 matter中layasprite怎么改变图片大小? ios14系统下 b...
来源: Laya_社区 发布时间: 20170104
...rseInt(1.5); b.mask遮罩使用; flash环境下: 1、静态遮罩 var sp:Sprite=new Sprite(); sp.graphics.beginFill(0xFFFF00); sp.graphics.drawRect(0,0,200,200); sp.graphics.endFill(); addChild(sp); var mask:Sprite=new Sprite(); mask.graphics.beginFill(0xFF0000); mask.graphics.drawCircle(0,0,50); ...
来源: Laya_社区 发布时间: 20170207
...知,必看!!!不按提问规则的,官方拒绝解答!!! sprite旋转以后,但是原来碰撞检测rect没有旋转 unity导出粒子文件问题 laya针对页游耗用内存大的问题是如何解决的? LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版...
来源: Laya_社区 发布时间: 20191230
...复被折叠 要回复问题请先登录 发起人 孤影楠 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 加载到舞台的3D模型不显示贴图 编译调试启动chrome出现错误: Error processing launch: Error Could not attach to main target 缓动Tween能用在3...
来源: Laya_社区 发布时间: 20181017
...问题请先登录 发起人 剑锋所指,所向披靡。 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 缓动Tween能用在3D物体或者特效上面吗? 摄像机跟随刚体移动,刚体出现抖动。 3D模型tween旋转 开启CastShadow以后,模型会莫名...
来源: Laya_社区 发布时间: 20191107
多个UI3D出现点击位置不对 点击右边的Sprite3D(1),点击事件会跑到左边的Sprite3D去 但将右边的Sprite3D(1)的position的x值改为2.37622,则又正常了 附件 : --> LayaProject10.zip 2023-09-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20230912