大约有 793 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0051 秒)
Laya_社区(496) Laya3.0_api(119) Laya2.0_api(72) Laya2.0_文档(29) laya_api(24) Laya3.0_文档(24) Laya_示例(21) Laya2.0_示例(8)
...径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint); this.getGridIndex(th...
来源: Laya2.0_文档 发布时间: 20210715
...户 在laya安装文件夹 搜索找到 layabuilder.max.js 文件 - 搜索 _matchClassName 关键词 > 定位到报错的地方 问题很明显 官方疏忽了正则匹配为空的情况  { const WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(viewWidth, viewHeight, WebGL); Laya.stage.alignV = Stag...
来源: Laya2.0_示例 发布时间: 20250221
...路径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Event.MOUSE_UP, this, function():void { index = 0; //获取每次生成路径 getGridIndex(path[curPathIndex % pointCount].x, path[curPathIndex++ % pointCount].z, startPoint); getGridIndex(path[nextPathIndex % pointCount].x,path[nextPathI...
来源: Laya2.0_文档 发布时间: 20210714
... as Laya.Sprite; spr.localToGlobal(playerPos); var _x=playerPos.x - this.cameraOffset.x;//360是偏移的坐标 var _y=playerPos.y - this.cameraOffset.y; this.strWorldRoot.x= - _x; this.strWorldRoot.y= - _y; Laya.Physics.I.updat...
来源: Laya_社区 发布时间: 20231123
...var src: Context = canvas.context as Context; var submit: ISubmit; if (src._targets) { //生成渲染结果到src._targets上 /* this._submits[this._submits._length++] = SubmitCanvas.create(src, 0, null); _curSubmit = SubmitBase.RENDERBASE; //画出src._targets //drawTexture(src._targets.target.getT...
来源: Laya_社区 发布时间: 20210527
...的代码://加载图片 Laya.loader.load(["res/background.png", "res/m_background.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 functi...
来源: Laya_社区 发布时间: 20160722
...is.test1.x ) //结果是 0 但console.log 这个对象,可以看到_x _y 的坐标 请问如何获取到这个被布局后的x y坐标呀? 附件 : --> 2019-07-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...
来源: Laya_社区 发布时间: 20190701
...= 0; } Laya.class(CmpScript, "CmpScript", Laya.Script) CmpScript.prototype._initialize = function (owner) { var _this = this; CmpScript.__super.prototype._initialize.call(this, owner); } CmpScript.prototype._update = function (state) { CmpScript.__super.prototype._update.call(this, state); if (this....
来源: Laya_社区 发布时间: 20161126
...ilter Implements IFilter IFilter Index Constructors constructor Properties _matrix Methods adjustBrightness adjustColor adjustContrast adjustHue adjustSaturation color gray onAfterDeserialize reset setByMatrix setColor _filter Constructors constructor new ColorFilter(mat?: any[]): ColorFilter Overri...
来源: Laya3.0_api 发布时间: 20231115