大约有 534 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
...ctory = new Laya.Vector3(30,0,0); this.rigidbody.linearVelocity = vectory; console.log(this.rigidbody.linearVelocity); 获取得到的值确是 Vector3 {x: -0.20082436501979828, y: 0, z: 0.20082436501979828} z轴分量应该位0才对,就算是近似值x轴的值也应该比z轴大很多才对 e f...
来源: Laya_社区 发布时间: 20181022
...f='"+payurl+"' target='_blank'>click</a>").get(0); console.log("aaa",a); var e = document.createEvent('MouseEvents'); e.initEvent('click',true,true); a.dispatchEvent(e); a.remove(); } </script> qian • 2018-03-21 14:00 直接附件上传一下项目可以么 ...
来源: Laya_社区 发布时间: 20180321
...LayaNative1.0版本中,要调试项目中的JavaScript代码只能调用console.log或者alert函数。在layaNative2.0版本中正式支持使用Chrome浏览器调试JavaScript代码。可以在Chrome的调试器里对代码进行断点的添加,代码追踪等功能。 **测试App支持扫码...
来源: Laya2.0_文档 发布时间: 20210715
...一: 这里为什么获取不到子node呢?打印显示btn1_btn为null console.log(btn1_btn); // btn1_btn.label="first"; this.myvbox.addChild(btn1); var btn2=new ui.test.view_btnUI(); var btn2_btn:laya.ui.Button=btn2.getChildByName("btn") as laya.ui.Button; // btn2_btn.label="second"; this.myvbo...
来源: Laya_社区 发布时间: 20170725
...yer = this._layerMap[layerStr]; if(layer === null || layer === undefined){ console.log(layerNodeName + ' don not match the rule of layer node.'); return; } if(bRemove){ this.removeLayer(target,layer); } else{ this.addLayer(target,layer); } } } } public static removeAllLayers(target) { target.culling...
来源: Laya_社区 发布时间: 20200110
...] if (json.type!=="Scene"){ if (url == "scene/Demo_Interiors.ls"){ console.log(data[0]); throw new Error("Scene: the .lh file root type must be Scene,please use other function to load this file."); } } var innerResouMap=data[1]; Utils3D._createNodeByJson(this,jso...
来源: Laya_社区 发布时间: 20180101
...t.ERROR, this, this.printError); templet.loadAni(url); } printError(e) { console.error(e); } } //激活启动类 new Main(); 附件 : --> TEST2.zip 2022-05-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 第...
来源: Laya_社区 发布时间: 20220530
...); s.graphics.drawRect(10, 10, 580, 470, "#000000"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是0,0,只要设置了mask,c...
来源: Laya_社区 发布时间: 20180720
...aya.init(1280,720); //无问题 Laya.init(1280,720,Laya.WebGL);//有问题 console.log(Laya.version); var testSpriteRotation:PanelRotationTest = new PanelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new...
来源: Laya_社区 发布时间: 20170814
..."comp/skeleton/spineboy.sk"); } protected onExit() {}; private onError() { console.log("parse error"); } private parseComplete() { //从动画模板创建动画播放对象 let hero = this.templet.buildArmature(1); hero.pos(200, 0); //切换动画皮肤 hero.showSkinByIndex(0); //播放 hero.play(0,...
来源: Laya_社区 发布时间: 20180905