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

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

161. TypeError: Cannot read property 'on' of null [ 73%]

...t a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' TypeError: Laya.MovieClip is not a constructor Laya.Animation Play();后报错提示TypeError: clas is not a constructor 问题状态 最新活动: 2019-05-25 14:00 浏览: 4562 关注: ...

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

162. 加载的nativeimage处理 [ 73%]

...er的load方法type是nativeimage的时候,加载到的img如何应用到Sprite显示出来 2017-06-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: { Laya.loader.load("ui/image.png", H...

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

163. 预设对象池回收后再创建报错 [ 73%]

...runtime脚本 回收game预设里面再创建得到的是个json而不是sprite .laya 文件未上传  类库导入tiledmap 就可以了  demo运行后等子弹出屏幕范围便能触发    附件 : --> map_demo1.rar 2020-01-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

164. 2.0版本,Particle2D is not a constructor [ 73%]

...Particle2D is not a constructor export default class RunMain extends Laya.Sprite{ constructor(){ super(); Laya.loader.load([{url:"res/213.part",type:Laya.Loader.JSON}],Laya.Handler.create(this,this.onAssetsLoaded)); } onAssetsLoaded(){ let pg = Laya.loader.getRes("res/213.part"); let pd = new Laya.P...

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

165. LayaAir IDE 2.2.0beta4 动画挂点(骨骼挂点)无效 [ 73%]

...方法即可 /** * - 骨骼挂点 * @param nodeName * @param root * @param Sprite3D */ public static link2Node(nodeName: string, root: Laya.Sprite3D, Sprite3D: Laya.Sprite3D) { //递归调用 let index = 0; let child: Laya.Sprite3D = null; while (true) { child = root.getChildAt(index) as Laya.Sprite...

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

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

...须调用下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

167. Sprite 设置高度后,再次添加子对象,重新设置高度无效 [ 73%]

Sprite 设置高度后,再次添加子对象,重新设置高度无效 第一次设置Sprite.height=1000;正常。当我点击一个按钮,给Sprite里面添加一些子对象后,1000高度不够,然后在设置Sprite.height=2000;无效了,还是1000的高度。没有变,我的Spri...

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

168. 【已解决】 sprite无法加载图片 [ 73%]

【已解决】 sprite无法加载图片 我想在页面上动态加载一个图片,使用Sprite渲染,但是不起作用,运行后是黑屏,我的测试代码如下: private var chatLayer:Sprite; /** 游戏入口 */ public function Main() { //初始化引擎,建议增加WebGl模式 Lay...

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

169. 谷歌浏览器升级以后laya.core.js报错 [ 73%]

...复被折叠 要回复问题请先登录 发起人 杨永辉 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 【带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined iphone自带浏览器页面怎么锁定 谷歌浏览器播放mp3出现T...

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

170. webgl 以后 会支持滤镜吗? [ 73%]

...折叠 要回复问题请先登录 发起人 whzooo 王掌柜 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 LayaBox IDE 支持多开吗 开启CastShadow以后,模型会莫名其妙消失,物体渲染队列的_IndexInList会被破坏 new Laya.Sprite();绘制图形以...

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