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

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

1211. 骨骼动画的使用(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 57%]

...nventional/LayaMonkey.ls",Laya.Handler.create(this,function(s){ Laya.stage.addChild(s); })); ``` ![](img/6.gif)(图6)

来源: Laya2.0_文档 发布时间: 20210715

1212. 骨骼动画的使用(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 57%]

...nventional/LayaMonkey.ls",Laya.Handler.create(this,function(s){ Laya.stage.addChild(s); })); ``` ![](img/6.gif)(图6)

来源: Laya2.0_文档 发布时间: 20210715

1213. 用JS原生态window.location.href跳转 [ 57%]

...rite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FFFF00"); Laya.stage.addChild(sp); sp.size(1000,100); sp.on(Event.CLICK,this,onClick); } private function onClick():void { Browser.window.location.href="https://www.baidu.com"; } 2016-12-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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

1214. 从Unity中编辑并导出摄像机(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 57%]

...加3D场景 var scene = Laya.loader.getRes("monkey/monkey.ls"); Laya.stage.addChild(scene); //从场景中获取摄像机 var camera = scene.getChildByName("Main Camera"); //后续对摄像机的逻辑操作....... } } ``` ​ 在Untiy中,摄像机默认名为“Main Camera”,因此在上述代...

来源: Laya2.0_文档 发布时间: 20210715

1215. Laya2.3.0 阴影BUG [ 57%]

...前仅限2.3.0) //灯光开启阴影 directionLight.shadow = true this.addChild(directionLight)2.可产生阴影的物体穿过平面,会在反向出现阴影,如图   // 穿过产生阴影   3.物体不能同时产生和接受阴影,否则会出现如图所示情况   //同时产生接...

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

1216. 加载unity导出场景失败 [ 57%]

...aya.init(600, 400); var scene=Laya.Scene.load("main/SMain.ls"); Laya.stage.addChild(scene);    错误信息: Warning!,this class[MiniAdpter] already exist: Object Error: LoaderManager:unknown file(E:/LayaAir/ZJKZWDT/bin/main/SMain.ls) extension with: ls.     at LoaderManager.__proto._create (f...

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

1217. 关于event中只读属性touches,问题,求解 [ 57%]

... txt.y = 100; txt.fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChild(txt); } private function onFunc(e:Event):void { var arr:Array = e.touches; console.log("e.touchId="+e.touchId); console.log("arr[0]"+arr[0]); } } }  输出为:       不明白touches属性数组里面存储的...

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

1218. 有关Sprite3D使用lh资源文件的问题 [ 57%]

有关Sprite3D使用lh资源文件的问题 var plane = this.scene.addChild(Laya.loader.getRes("res/LayaScene_plane/plane.lh")) as Laya.Sprite3D; 这样可以根据一个lh文件 来创建一个Sprite3D类型的对象。 那么请问,如果我写了一个类A,并继承与Laya.Sprite3D 我要怎...

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

1219. 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) [ 57%]

...时触发 progressBar.changeHandler=new Handler(this,onChange); Laya.stage.addChild(progressBar); } private function onChange(value:Number):void { trace("进度: "+Math.floor(value*100)+"%"); } //游戏资源加载进度函数 private function onProgress(pro:Number):void { trace("加载了总文件...

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

1220. laya阴影问题 [ 57%]

...der.colliderShape = new Laya.BoxColliderShape(b, 0, c); } this.MainScene3D.addChild(cardOne); cardOne.transform.position = pos; cardOne.transform.rotate(new Laya.Vector3(0,0,0), false, false); if(index == 0){ cardOne.meshRenderer.receiveShadow = true; }else{ var unlitMat = new Laya.PBRStandardMateri...

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