大约有 738 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
...加自定义模型 //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
...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
...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
...微博 QZONE 微信 ڇ迷e样ڇ 赞同来自: let l = new Laya.Sprite(); let s = new Laya.Script(); s.onAwake = ()=>{ //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 } ...
来源: Laya_社区 发布时间: 20181023
...了 LayaAir 的素材文件! 2.我用3dsMax 导出的文件 ,然后用Sprite3D加载没任何报错,也添加到舞台了,但是没有自动播放,我用了 role3D.getChildAt(0).getComponentByType(Animator) 去获取他的Ani 为Null! 3.我用Unity3D 导出的文件,同上...
来源: Laya_社区 发布时间: 20170907
... lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 new Laya.Sprite();绘制图形以后,怎么删除释放资源? ts项目,我在程序主入口声明了公共静态类,下面new出了一个对象,把他添加到舞台中出错。 微信小游戏开启自动缓存后加载...
来源: Laya_社区 发布时间: 20170428
...前已经被锁定, 无法添加新回复 发起人 π大星 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 关于使用matterjs物理引擎鼠标问题 laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 【带附件】 ...
来源: Laya_社区 发布时间: 20220819
...答(最新版本:1.7.16) TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 微信小游戏如何使用ttf字体? LayaAirIDE下如何使用mask? 微信小游戏:HTMLDivElement的使用 使用3D时候,Property 'getCompo...
来源: Laya_社区 发布时间: 20171203
...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
... 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