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

大约有 6,956 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0226 秒)

1181. 分享:使用 graphics.clipRect 的注意事项 [ 79%]

...须调用下restore()。以下的步骤不能少也不能错!   var sp:Sprite = new Sprite();   sp.graphics.save();   sp.graphics.clipRect(0,0,100,100);   sp.graphics.drawRect(0,0,400,400,"#ffffff",null,1);   sp.graphics.restore();   Laya.stage.addChild(sp); 2、使用graphics.clipRect之后...

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

1182. BackGround.super(this);这个报错 Cannot read property 'call' of undefined [ 79%]

..._super) { function BackGround() { BackGround.super(this); this.bg=new Laya.sprite; this.bg.loaImage("war/beijing.png"); this.addchild(this.bg);  }; Laya.class(BackGround,"BackGround",_super) return BackGround; })(Laya.sprite); BackGround.super(this);这个报错 Cannot read property 'call' of undef...

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

1183. 分享:Dragonbones/Spine的换肤操作 [ 79%]

... laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.display.Sprite; import laya.display.Text; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var templete:Templet;//动画模板类 private var ske...

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

1184. TypeError: Cannot read property 'length' of null [ 79%]

...,错误信息如下: TypeError: Cannot read property 'length' of null at Sprite._setBelongScene (file:///D:/work/study/project/client/test/air_war/bin/libs/laya.core.js:13049:52) at Sprite._onAdded (file:///D:/work/study/project/client/test/air_war/bin/libs/laya.core.js:13129:37) at Sprite._setParen...

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

1185. 没有用ide,纯手写的,自己封装,游戏上线了 ,出现了一些问题 [ 79%]

...了 ,出现了一些问题 在手写的 代码中, 基本都是用的sprite 的  loadimage加载的图片,这样写是不是有问题。。。。在游戏中,  sprite一直在增加,如果进入游戏,一直挂在游戏大厅, sprite一直往上增加,,  2017-06-18 添加评论 ...

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

1186. MeshCollider添加报错 [ 79%]

LayaAir引擎 MeshCollider添加报错 unity的一个场景Sprite设置了MeshCollider,导出到Laya拿到那个Sprite从断点里看不到MeshCollider,实际也检测不到碰撞,看到示例是拿到Sprite手动添加了一个MeshCollider ,但我这边会收到boundBox:TypeError: Cannot r...

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

1187. Texture在绘制时能不能再次指定缩放? [ 79%]

...马赛克效果 现在只能是对每一个未加载的块都创建一个sprite感觉好浪费,地图切得小的时候刚开始可能就上百个sprite,虽然性能也没啥问题,但如果可以直接缩放渲染texture就更好了 2017-03-05 添加评论 免费帖 --> 分享 微博 QZONE ...

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

1188. drawToCanvas 截屏 以后外发光会变黑。 [ 79%]

...被折叠 要回复问题请先登录 发起人 Playerdata1 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 开启CastShadow以后,模型会莫名其妙消失,物体渲染队列的_IndexInList会被破...

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

1189. 求教 颜色滤镜和混合模式使用 [ 79%]

...applyFilter(this._mask, this._mask.rect, zeroPoint, this._colorFilter);   sprite.copyPixels(this._base, this._base.rect, zeroPoint);   sprite.draw(bitmapData, null, null, this._maskBlendMode); 2016-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

1190. 如何实现图片的没有像素部分点击无效? [ 79%]

...itArea来实现,至于你说的不规则图形的话,你可以用添加sprite的方法试试 2017-11-21 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 HummerMan 相关问题 微信关系链:LayaAir引擎针对微信小游戏好友...

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