大约有 244 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0153 秒)
...Josn = Laya.loader.getRes("json/reward.json"); //输出透传过来的json console.log('透传的json信息:', testJosn); //加载IDE指定的场景 var big = new BigRank(); big.init(); } ``` 微信环境下测试,效果如图1: (图1)
来源: Laya2.0_文档 发布时间: 20210715
...888启动服务器,浏览器访问localhost:8888 等界面显示之后在console中输入test() 这会创建两张牌,第一张牌在右侧,第二张在左侧。 第一张牌使用了localRotation,可以看到旋转无效了,console中的matrix也可以看到是不变的 第二张牌直接...
来源: Laya_社区 发布时间: 20170323
...辑,或者死循环”。 9、关闭该提示后,微信开发者工具console输出找不到webgl的log信息。 请问以上,是Laya IDE的问题?还是微信开发者工具的问题?应当如何解决? 操作系统:win10 x64 laya IDE版本:1.7.20.1beta laya 引擎:1.7.20.1b...
来源: Laya_社区 发布时间: 20180829
...); 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
...this.__mouseMove); this.bmp.on(Laya.Event.MOUSE_UP, this, this.__mouseUp); console.log(this.pos0.x); } __mouseMove(e:Event){ this.pos1.x=this.bmp.mouseX this.pos1.y=this.bmp.mouseY; if(Utils3D.getThis.getDistance(this.pos0,this.pos1)>10){ this.bmp.graphics.drawLine(this.pos0.x,this.pos0.y,this.po...
来源: Laya_社区 发布时间: 20170831
...; img.on(Laya.Event.MOUSE_DOWN, img, onStartDrag); function onStartDrag(){ console.log(this); clickIndex++; msgDiv.html('图片选中了' + clickIndex + '次'); // img.startDrag(); } // Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; // Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; }); </script> &...
来源: Laya_社区 发布时间: 20170427
...阅文档《性能统计与优化》。 1.3.2 显示移动端调试工具 VConsole 在移动端调试,通常需要联到电脑端的浏览器上。 如果开发者不需要断点,只是一些常用的日志打印、加载等查看等,开启V Console,在移动端会出现如图1-11所示的...
来源: Laya3.0_文档 发布时间: 20251014
...ial = customMaterial; mesh.meshRender.sharedMaterial = customMaterial2; // console.log(mesh4.meshRender.sharedMaterial); shaderDemo.zip 2017-05-25 0 0 分享 微博 QZONE 微信 ebaww 赞同来自: 我按你说的改了一下CustomMaterial.js,效果正确了,现在我想不用代码,直接改....
来源: Laya_社区 发布时间: 20170524
...killAniArray[i]; // 将渲染后的小切片追加到动画中 }catch(e) { console.log('warning: animation in loading'); // 过于频繁加载动画时给予警告 } }) } ani.interval = Math.round(1000/aniProps.mc[options.srcName].frameRate); // 设置动画的帧率 ani.autoPlay = options.autoPlay;...
来源: Laya_社区 发布时间: 20190215