大约有 1,493 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0058 秒)
Laya_社区(918) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(73) laya_api(2) Laya2.0_api(2)
...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
...3B,laya.utils.Handler.create(this,function(){ //添加到舞台 Laya.stage.addChild(roleAni); roleAni.play(); })); 代码就这几行.... 2018-03-22 0 0 分享 微博 QZONE 微信 wdmingzi2 赞同来自: 只是单纯的调用加载接口 然后就加载的时候出错......代理服务器的...
来源: Laya_社区 发布时间: 20180322
...模型名称。 ```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
...模型名称。 ```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
...直接异步加载 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
...错 我用 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
...资源添加进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
...down", this, callback); Laya.stage.addChild(sp); console.log(" laya test"); }; laya_test(); 如上代码,加上sp.pos(500, 400);这句...
来源: Laya_社区 发布时间: 20161128
...度。 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
...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