大约有 1,557 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0116 秒)
...出现,而sp1离摄像机比sp更远缺不影响。 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 550))); camera.transform.translate(new Laya.Vector3(250, 1, 0)); var rotation = new Laya.Quaternion; Laya.Quaternion.lookAt(camera.position, new Laya.Vector3(0, 0, 0), camera.up, rotation); cam...
来源: Laya_社区 发布时间: 20170504
...来以为是不是点击无效,后来调试了一下,发现其实已经addChild到舞台了,此处所有过程都是在Laya.ui.js 这个文件里自己完成的,并不是我手动 addChild 于是我感觉应该层级问题,但是我 并没有手动改过层级,也没有添加过代码...
来源: Laya_社区 发布时间: 20170425
...ar.x = -50; par.y = 1280; par.autoPlay = false; MonsterHunt2.battleUILayer.addChild(shade); MonsterHunt2.battleUILayer.addChild(par); } 粒子系统的教程地址你可以参考一下 https://layaair.ldc.layabox.co ... %3DT3 Azure • 2018-04-11 17:09 我用的是3D的lh后缀的特效,教程我...
来源: Laya_社区 发布时间: 20180409
...})(); function showApe() { // 方法1:使用loadImage var p = Laya.stage.addChild(new Sprite()); var ape = new Sprite(); p.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); //创建遮罩对象 this.cMask = new Laya.Sprite(); //画一个圆形的遮罩区域 this.cMask.graphics.drawPie(8...
来源: Laya_社区 发布时间: 20180313
...Laya.Ease.linearInOut,Handler.create(this,this.aeroboatTween1)); })); this.addChild(this.mountain); this.addChild(this.aeroboat); this.addChild(this.tower); this.addChild(this.ball); this.addChild(this.statue); this.addChild(this.angel); } // 更新岛 _proto.update = function(target){ var obj = {};...
来源: Laya_社区 发布时间: 20170720
...drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#3e3534"); Laya.stage.addChild(scene); var inputText = new Laya.Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - 400; inputText.y = Laya.stage.height * 0.4; // 移动端输入提示符 inputText.prompt = "Type some word..."; ...
来源: Laya_社区 发布时间: 20200223
...alpha = 0.8; bg.graphics.drawRect(0,0,W,H,"#000000"); this.prizeAlertLayer.addChild(bg); this.prizeAlertLayer.addChild(Main.items["prizeinfo"]); Laya.stage.addChild(this.prizeAlertLayer); this.prizeAlertLayer.visible = false; 附件 : --> 2018-06-01 1 条评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180601
...(0, 0, this.width, this.height); this.mask.optimizeScrollRect = true; this.addChild(this.mask); } this.initContent = function () { this.content = new Box(); this.content.width = this.width; this.content.autoSize = true; this.content.y = this.scrollMode == DOWN_TO_TOP ? this.height : 1; this.mask.add...
来源: Laya_社区 发布时间: 20161118
...sole.info(mapLayer.layerName); this.sp.pos(0,0); mapLayer._childs[0].addChild(this.sp); } } new GameInfo(); 遇到的问题1 把精灵插入地图时 如果代码这样写就会报错 mapLayer.addChild(this.sp); 必须要这样写才可以 mapLayer._childs[0].addChild(this.sp); ...
来源: Laya_社区 发布时间: 20171125
....Scene3D = Laya.loader.getRes(this.mSceneName) as Laya.Scene3D; Laya.stage.addChild(scene3D); 异常: TypeError: node._setParent is not a function preload.js:55 at Stage.__proto.addChild (file:///E:/H5Project/TestH5Project/TestFeiChe3D/bin/libs/laya.core.js:13235:9) 2018-10-31 添加评论 免费帖...
来源: Laya_社区 发布时间: 20181031