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

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

1391. ShaderPass介绍(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 49%]

...key.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = n...

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

1392. 加载.atlas动画错误 [ 49%]

...3B,laya.utils.Handler.create(this,function(){ //添加到舞台 Laya.stage.addChild(roleAni); roleAni.play(); }));     代码就这几行.... 2018-03-22 0 0 分享 微博 QZONE 微信 wdmingzi2 赞同来自: 只是单纯的调用加载接口  然后就加载的时候出错......代理服务器的...

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

1393. 模型的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之模型和网格) [ 49%]

...模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMes...

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

1394. 模型的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之模型和网格) [ 49%]

...模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMes...

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

1395. 获取lh动画控制失败【已解决】 [ 49%]

...直接异步加载             var layaMonkey:Sprite3D = scene.addChild(Sprite3D.load(url+"LayaScene_sharedunity/sharedunity.lh")) as Sprite3D;                          var zombieAnimator:Animator =layaMonkey.getChildAt(0).getComponentByType(Animator) as Animator;...

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

1396. HTMLIframeElement报错 [ 49%]

...错 我用 var p:HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "test.html"; p.y = 200; 一执行就报错是为什么啊?错误如下: Utils.parseXMLFromString=function(value){ var rst; value=value.replace(/>\s+</g,'><'); rst=(new DOMParser()).parseFro...

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

1397. 使用 loader.create 预加载模型后。必须要在回调 Laya.Event.HIERARCHY_LOADED 中获取子元素吗?预加载是预加载的什么部分? [ 49%]

...资源添加进scene中还需要回调吗? 例如: var effect3D=scene.addChild(Laya.loader.getRes("LayaScene_effect/effect.lh")); effect3D.once( Event.LOADED , this,function(sprite){ var child=effect3D.getChildAt(0); } ); sfsmmc • 2017-08-21 15:53 我试过,在loader.create预加...

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

1398. 事件绑定不触发bug [ 49%]

...down", this, callback);                           Laya.stage.addChild(sp);                                        console.log(" laya test");                      };                  laya_test();   如上代码,加上sp.pos(500, 400);这句...

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

1399. laya.ui.TextInput_API3.0 [ 49%]

...度。 textInput.height = 200;//设置 textInput 的高度。 Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 Laya.loader.load(["resource/ui/input.png"], ...

来源: Laya3.0_api 发布时间: 20231115

1400. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 49%]

...lLineRenderer scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addLine addLines bubbleEvent callLater clear clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildInde...

来源: Laya3.0_api 发布时间: 20231115