大约有 2,311 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0054 秒)
Laya_社区(1514) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
...r = "#ffff00";this.txt.fontSize = 20;this.txt.color = "#ffffff";Laya.stage.addChild(this.txt);this.txt.on(Laya.Event.MOUSE_DOWN,this,startScrollText);}/*开始滚动文本*/function startScrollText(){this.prevX = this.txt.mouseX;this.prevY = this.txt.mouseY;Laya.stage.on(Laya.Event.MOUSE_MOVE,this,s...
来源: Laya_社区 发布时间: 20180125
...house1 = Laya.Sprite3D.load("model/build/warehouse1/warehouse1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 90, 0), false, false); warehouse1.transform.translate(new Laya.Vector3(0,0,0),false); warehouseMeshSprite3D1= warehouse1.getChildAt(0).getChildByName("Mesh...
来源: Laya_社区 发布时间: 20171226
...直接异步加载 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
...layer.loadImage("unit/test.png"); this.tMapPlayer.zOrder = 1000; testLayer.addChild(this.tMapPlayer); }楼上您好,我照着你的代码写的,但是还是看不到我自己的sprite,请问是怎么回事呢? 我可以确定player层是在最上面层的 2017-11-19 0 2 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170627
... let partIns = new Laya.Particle2D(settings); Laya.stage.addChild(partIns); // 开始发射粒子 partIns.emitter.start(); // 播放 partIns.play(); partIns.x = Laya.stage.width / 2; ...
来源: Laya_社区 发布时间: 20190704
...资源添加进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
...加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
...down", this, callback); Laya.stage.addChild(sp); console.log(" laya test"); }; laya_test(); 如上代码,加上sp.pos(500, 400);这句...
来源: Laya_社区 发布时间: 20161128
... this.aniBirdSing.height); this.aniBirdSing.mouseEnable = true; Laya.stage.addChild(this.aniBirdSing); } 根据这个代码,我认为鼠标点击区域在图片左下区域,但结果是图片左上区域,求解? 如果我想让图片的点击区域是图片左下区域,应该如何出来...
来源: Laya_社区 发布时间: 20171026