大约有 3,291 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
...addChild(res1); scene.addChild(res2); Laya.timer.frameLoop(1, this, () => { res1.transform.localPositionX += 0.016; res2.transform.position.x += 0.016; console.log("本地坐标1:", res1.transform.localPosition); console.log("世界坐标1:", res1.transform.position); console.log("本地坐...
来源: Laya_社区 发布时间: 20190717
...代码是:Texture._create方法中if (bitmap.width && (x+width)> bitmap.width) 里的bitmap为null,往上看可能是source为null 但是仍然无法判断到是我的场景UI的问题还是代码的问题 2020-02-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20200201
...turn b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3; if (!a || (c > 0 && a < c) || (c < 0 && a < -c)) { a = c; s = p / 4; } else s = p / PI2 * Math.asin(c / a); return (a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * PI2 / p) + c + b); }可以按照原来的函...
来源: Laya_社区 发布时间: 20180104
...os1.y=this.bmp.mouseY; if(Utils3D.getThis.getDistance(this.pos0,this.pos1)>10){ this.bmp.graphics.drawLine(this.pos0.x,this.pos0.y,this.pos1.x,this.pos1.y,"#ff0000",5); this.pos0.x=this.bmp.mouseX; this.pos0.y=this.bmp.mouseY; } } __mouseUp(e:Event){ this.bmp.off(Laya.Event.MOUSE_MOVE, this, this...
来源: Laya_社区 发布时间: 20170831
...重复利用。 hill_0219 • 2018-01-22 10:37 let resArray: Array<any> = [ { url: hyip+"res/atlas/comp/01_shouye.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/02_zhujiemian.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/30_loading.json", type...
来源: Laya_社区 发布时间: 20180120
...官方帮助, 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 为什么laya.pathfinding.js里面的Grid,通过Laya.Grid竟然获取不到?有laya.pathfinding.js的使用教程吗?API中没有找到。 设备的几个单例都获取不到 问题状态 最新活动: 2019-01-08 1...
来源: Laya_社区 发布时间: 20181215
...令行方式执行) let useIDENode = process.argv[0].indexOf("LayaAir") > -1 ? true : false; //获取Node插件和工作路径 let ideModuleDir = useIDENode ? process.argv[1].replace("gulp\\bin\\gulp.js", "").replace("gulp/bin/gulp.js", "") : ""; let workSpaceDir = useIDENode ? process.argv[2].re...
来源: Laya_社区 发布时间: 20181221
...也可以是一个序列帧动画(atlas文件)的url。 文本处理:GTextField、GTextInput GTextField用于显示静态文本,是对引擎Text类的封装,支持显示普通文字、富文本、图文混排等。 GTextInput用于接收用户输入的文本,是对引擎Input类的封装...
来源: Laya3.0_文档 发布时间: 20251010
...eturn this.s_instance; } private init() { } private skins: Array<string>; private mapImg:Laya.Image; private constructor() { } public GetMap():Laya.Image { if(this.mapImg==null) { this.mapImg=new Laya.Image(); } return this.mapImg; } public LoadMapResource() { this.skins=[ "res/img/map/1.jpg",...
来源: Laya_社区 发布时间: 20171124
...r blurFilter = new Laya.BlurFilter(); //设置模糊强度 blurFilter.strength = 5; //在坐标280,50创建位图 var img = createImg(420,280); //添加滤镜效果 img.filters = [blurFilter]; } 附件 : --> 2017-08-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20170811