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

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

1241. Sprite3D的克隆(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 84%]

...e("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = L...

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

1242. 求助高手请进,关于场景导入的问题~ [ 84%]

...载出来了Laya.loader.create("LayaScene_01/loveScene.ls",Handler.create(this,this.completeHandler)); private function completeHandler():void{     var scene:Scene = Laya.loader.getRes("LayaScene_01/loveScene.ls");     Laya.stage.addChild(scene); }   我现在的问题是,我创建一个继...

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

1243. Laya3D 官方请看:有关Laya.MeshSprite3D.instantiate的Bug [ 84%]

...ya.Sprite3D;  scene.addChild(temp);  temp.on(Laya.Event.HIERARCHY_LOADED,this,()=>  {  this.model = Laya.MeshSprite3D.instantiate(temp,scene) as Laya.MeshSprite3D;  if(index == 0)  {  this.model.transform.position = new Laya.Vector3(0.8,0,0);  }  });    //===================报错=====...

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

1244. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 84%]

...ed回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.comp.tab.selectHan...

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

1245. 在模型有刚体的情况下,怎么才能让模型只围绕一个轴进行旋转 [ 84%]

....load("h5/LayaScene_car/Conventional/car.lh",Laya.Handler.create(this,(sp:Laya.Sprite3D)=> { this.car = sp.getChildAt(0).getChildAt(0) as Laya.Sprite3D; this.scene.addChild(this.car); this.rig = (this.car.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D) })); 源 • 2019-01-11 20:47 ...

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

1246. 物理Bodies绑定Laya.Sprite [ 84%]

...age.alignH = 'middle'; // 适配水平对齐方式 Laya.stage.screenMode = this.Stage.SCREEN_HORIZONTAL; // 始终以横屏展示 Laya.stage.scaleMode = "fixedwidth"; // 宽度不变 this.engine; var world; this.engine = Matter.Engine.create({ enableSleeping: true // 开启睡眠 }); world = this.en...

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

1247. 怎么循环数组的时候给他定时第一个执行完在执行下一个 [ 84%]

...0 0 1 分享 微博 QZONE 微信 乐趣 赞同来自: Laya.timer.loop(1000,this,this.CardAnimation);  //定时执行某个函数  this.CardAnimation是你要自己实现的动画 动画执行玩后清理掉这个定时器 Laya.timer.clear(this,this.CardAnimation); //清理定时器 这些API里...

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

1248. 三个图好像无法绑定不同的事件? [ 84%]

...2.png',100,100,90,90); Laya.stage.addChild(img1); img1.on(Laya.Event.CLICK,this, function(name){ console.log(name);},['图1']); var img2 = new Laya.Sprite(); img2.loadImage('https://layaair.ldc.layabox.com/demo/h5/res/apes/monkey2.png',200,300,90,90); Laya.stage.addChild(img2); img2.on(Laya.Event.CL...

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

1249. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 84%]

...件函数,名字是可以对应上的 ShowMsg(){ console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,我们将我们创建的这个脚本添加给cube。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/LayaScene_AnimationEvent/Con...

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

1250. linearVelocity 获取的线速度不正确 [ 84%]

...全是不正确的       let vectory = new Laya.Vector3(-Math.cos(this.angle) * this.v,0,0);         // this.rigidbody.applyForce(vectory);         this.rigidbody.linearVelocity = vectory;         console.log("施加的线速度:");         console.log...

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