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

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

151. 3D模型加载出错 [ 74%]

...加自定义模型         //this.box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1)));         Laya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(null, function(sp){         //Laya.Sprite3D.load("res/layatest...

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

152. this.bitmap.activeResource is not a function [ 74%]

...Resource is not a function //开放域层级 private static _openZone:Laya.Sprite; //开放域纹理 private static _openZoneTexture:Laya.Texture; public static openZone(vx:number=0,vy:number=0,scaleX:number=1,scaleY:number=1) { if(!this._openZone) { //开放域 this._openZone = new Laya.Sprite(); }...

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

153. WaterPrimaryMaterial的使用 [ 74%]

...demo吗? 我这里怎么调都是单一色块呢?   var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(10, 10))) as Laya.MeshSprite3D; // box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material: Laya.BlinnPhongMaterial = new Laya.BlinnPh...

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

154. [LayaAir 1.0]怎么给动态添加的组件 添加附加脚本 [ 74%]

...微博 QZONE 微信 ڇ迷e样ڇ 赞同来自:         let l = new Laya.Sprite();         let s = new Laya.Script();         s.onAwake = ()=>{           //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次         }         ...

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

155. 关于3D加载资源问题 [ 74%]

...了 LayaAir 的素材文件! 2.我用3dsMax 导出的文件 ,然后用Sprite3D加载没任何报错,也添加到舞台了,但是没有自动播放,我用了        role3D.getChildAt(0).getComponentByType(Animator) 去获取他的Ani 为Null! 3.我用Unity3D 导出的文件,同上...

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

156. Webgl 下绘制出错 [ 74%]

... lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 new Laya.Sprite();绘制图形以后,怎么删除释放资源? ts项目,我在程序主入口声明了公共静态类,下面new出了一个对象,把他添加到舞台中出错。 微信小游戏开启自动缓存后加载...

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

157. 2.13版本 2D物理碰撞OnTriggerEnter 第三个参数 contact.getHitInfo() 报错 [ 74%]

...前已经被锁定, 无法添加新回复 发起人 π大星 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 关于使用matterjs物理引擎鼠标问题 laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 【带附件】 ...

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

158. HTMLIframeElement 使用出错?请大神指点 [ 74%]

...答(最新版本:1.7.16) TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 微信小游戏如何使用ttf字体? LayaAirIDE下如何使用mask? 微信小游戏:HTMLDivElement的使用 使用3D时候,Property 'getCompo...

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

159. 角色碰撞器添加复合型碰撞形状,报错Qt[a[((a[(t >> 2)] + 8) >> 2)]] is not a function [ 74%]

...t;报错: //飞机 let plane = scene.getChildByName("plane") as Laya.MeshSprite3D; let character: Laya.CharacterController = plane.addComponent(Laya.CharacterController);  let collider_shape_box = new Laya.BoxColliderShape(2.5, 0.8, 0.8); collider_shape_box.localOffset.x = -0.5;  let collider_sh...

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

160. 新手,图片加载不进去,没有报错。很疑问 [ 74%]

... function BackGround(){ BackGround.__super.call(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("comp/bg.png"); this.addChild(this.bg1); } Laya.class(BackGround,"BackGround",_super); return BackGround; })(Laya.Sprite)代码我这样写可以正常显示,你试试 2017-02-22 0 1 分享 微...

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