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

大约有 236 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0036 秒)

31. Laya api 中可能的bug [官方来看] [ 85%]

...调整zorder时是调整不到的__proto.render=function(context,x,y){ var childs=this._childs; this._childs=this._showGridList; _super.prototype.render.call(this,context,x,y); this._childs=childs; }2.core中Sprite的zorder的set方法中 有一行代码有疑似bug,麻烦官方帮忙确认 /**z...

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

32. laya.d3.animation.AnimationNode_API3.0 [ 85%]

...mplements IClone Index Constructors constructor Properties name Methods addChild clone cloneTo getChildByIndex getChildByName getChildCount removeChild Constructors constructor new AnimationNode(): AnimationNode Defined in laya/d3/animation/AnimationNode.ts:22 创建一个新的 AnimationNode 实例...

来源: Laya3.0_api 发布时间: 20231102

33. 删除场景中的模型,scene.removeChildAt()有问题(已解决) [ 85%]

删除场景中的模型,scene.removeChildAt()有问题(已解决) 想从场景的子节点中获取模型     获取到的索引却包含camera和灯光   但这问题也不大,去除前两个节点就好了   这里就调用removeChildAt函数了 结果:场景中还是有两个模...

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

34. 把场景中的对像删除,就会报错 [ 82%]

...r: Cannot read property 'visible' of null     at RenderSprite3D.__proto._childs (Main.max.js?r0.22069932534774384:33147)     at RenderSprite3D.__proto._graphics (Main.max.js?r0.22069932534774384:33079)     at NpcView.__proto.render (Main.max.js?r0.22069932534774384:54362)     at RenderSprite...

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

35. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 82%]

...ion initMatter():void { var gameWorld:Sprite = new Sprite(); Laya.stage.addChild(gameWorld); engine = Matter.Engine.create({enableSleeping:true}); Matter.Engine.run(engine); var render = LayaRender.create({engine:engine,container:gameWorld,width:stageWidth,height:stageHeight,options:{wireframes:true...

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

36. 不知道是不是引擎的bug [ 82%]

...我试着改了引擎的代码后就没有问题 这一行改为  (ele = (childs[i]))._style && (ele=(childs [i]))._style.visible && ele.render(context,x,y); 这样就没有问题 附件 : --> 2018-04-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

37. 获取lh动画控制失败【已解决】 [ 81%]

...接异步加载             var layaMonkey:Sprite3D = scene.addChild(Sprite3D.load(url+"LayaScene_sharedunity/sharedunity.lh")) as Sprite3D;                          var zombieAnimator:Animator =layaMonkey.getChildAt(0).getComponentByType(Animator) as Animator;  ...

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

38. layaUI.max.all.js 这个文件怎么生成的? [ 81%]

...eUI,         ['uiView',function(){return this.uiView={"type":"View","child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,...

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

39. 动画-旧版骨骼动画 [ 81%]

... Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLig...

来源: Laya_示例 发布时间: 20240930

40. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 80%]

...r: Cannot read property 'visible' of null     at RenderSprite3D.__proto._childs (laya.core.js:6194)     at RenderSprite3D.__proto._transform (laya.webgl.js:6730)     at Character.__proto.render (laya.core.js:15656)     at RenderSprite3D.__proto._childs (laya.core.js:6194)     at RenderSpri...

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