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

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

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

...分开了吗。 Laya.Sprite3D.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) }...

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

1232. Cannot read property 'rayCast' of undefined [ 44%]

...; Laya.Sprite3D.load("res/scene/LayaScene_webgl_sky/Conventional/webgl_sky.lh", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=this.scene.addChild(layaMonkey); // Laya.timer.frameLoop(1, this, thi...

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

1233. 3d 轮廓描边示例改描边颜色无效 [ 44%]

...无效(版本2.6) LayaAir3D UnityPlug 1.7.13 导出刚体动画无效 lh文件内meshSprite添加阴影属性无效 Adobe Flash Builder 4.7无法编译Laya2.6.1创建的3D示例项目 [分享]Dialog 点击边缘不关闭的 Demo示例 LayaAir2D示例 Mac 2.0.0beta3 Chrome调试黑屏 matter.js m...

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

1234. 1.7.8新版本3d骨骼动画如何获取绑点呢 [ 44%]

...mp:Sprite3D; effectTemp = Laya.loader.getRes("res/LayaScene_Fire/Fire.lh"); 先查到节点 for(var i:int = 0;i<ani._avatarNodes.length;i++) { if(AnimationNode(ani._avatarNodes[i]).name == "weaponEffect") { animationNodeTemp = ani._avatarNodes[i]; break; } } 然后通过loop...

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

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

...戏里,但是太大了,就来这里分享一下吧 .sk , .lm , .ltc , .lh, .ani等后缀名的文件是如何制作的? 分享:技术突破:HTML5裸跑性能已可媲美APP 游戏DEMO分享:【简单跑酷--JS版】---Lv.1 问题状态 最新活动: 2019-03-22 10:07 浏览: 17379 关注:...

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

1236. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 43%]

...            Laya.Sprite3D.load("res/prefabs/Conventional/SampleScene.lh", Laya.Handler.create(null, function(sp)             {                 var layaMonkey2  = scene.addChild(sp);                 layaMonkey2.transform.localScale = new Laya.Vector3(4, 4, 4);        ...

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

1237. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...efab,需要转换根节点为Dialog Laya.loader.load("resources/Prefab2D.lh").then(res => { let dlg: Laya.Dialog = res.create(); dlg.show(); }); } } 运行效果如下: (动图) 二、通过代码创建Dialog 在进行书写代码的时候,免不了通过代码控制UI,创建UI_Dialog...

来源: Laya3.0_文档 发布时间: 20240910

1238. 自定义shader-边缘光照shader [ 42%]

...cene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude.once(Laya.Event.HIERARCHY_LOADED, this, function () { var customMaterial1 = new CustomMaterial(); customMaterial1.setDiffuseTexture(Laya.Texture2D.load("../../res/threeDimen/skinModel/dude/Assets/dude/head.png"));...

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

1239. Laya2.0导入protobufjs第三方库,报错找不到文件 [ 42%]

...场景类了,此时该如何获得场景内的元素 .sk , .lm , .ltc , .lh, .ani等后缀名的文件是如何制作的? runtime运行报错! 问题状态 最新活动: 2019-02-28 10:28 浏览: 1537 关注: 2 人 138*****960 • 2019-03-02 18:37 不清楚你是什么操作系统,这种报...

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

1240. 模型与动画的导入使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...模型预制体,并添加到Scene3D场景内 Laya.loader.load("girl/girl.lh").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animator this._animator = girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, th...

来源: Laya3.0_文档 发布时间: 20240910