• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 784 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

81. 寻路系统(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 87%]

...径数据 ```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

82. Laya编辑器添加组件报错 [ 87%]

...户 在laya安装文件夹 搜索找到 layabuilder.max.js 文件 - 搜索 _matchClassName 关键词  > 定位到报错的地方 问题很明显 官方疏忽了正则匹配为空的情况 ![在这里插入图片描述](https://img-blog.csdnimg.cn/94 ... rmark,type_d3F5LXplbmhlaQ,shadow_50,text_Q...

来源: Laya_社区 发布时间: 20220207

83. 其他引擎的Demo-Example_23 [ 87%]

...Browser.height, lasers = [], tick = 0, frequency = 80, type = 0; class PIXI_Example_23 { constructor() { 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_示例 发布时间: 20240930

84. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 87%]

...路径数据 ```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

85. [LayaAir2]字节小游戏物理的坐标不一样,碰撞盒会比laya的小,物理的位置也不一样 [ 87%]

... 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

86. 设置cacheAs = bitmap时, drawCanvas 的一个bug [ 87%]

...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

87. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 87%]

...的代码://加载图片 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

88. 布局后的对象的x y坐标如何获取? [ 87%]

...is.test1.x ) //结果是 0  但console.log 这个对象,可以看到_x _y 的坐标   请问如何获取到这个被布局后的x y坐标呀? 附件 : --> 2019-07-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

来源: Laya_社区 发布时间: 20190701

89. 关于3d项目中component的问题 [ 87%]

...= 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

90. laya.filters.ColorFilter_API3.0 [ 86%]

...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