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

大约有 2,110 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0113 秒)

361. 分享一个Shader版的CoolDown实现 [ 83%]

...ew coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); ----------------------源码-------------------------- import Shader = laya.webgl.shader.Shader;     export class coolDo...

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

362. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 83%]

...ext(element, _x, _y, fonts, this.color, "left"); if (yAction(printNumber + 1) > h) { j++; printNumber = 0; } else { printNumber++; } } } drawTextBySprite(sprite: Laya.Sprite) { sprite.addChild(this.sprite); this.drawText(sprite.x, sprite.y, sprite.width, sprite.height); } onEnable(): void { } onD...

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

363. 如何在3D旋转中使用缓动 Laya.Tween.to()?官方示例我看过,不是旋转 [ 83%]

...tionEuler, { x: _vector3.x, y: _vector3.y, z: _vector3.z + (20 * Math.PI / 180) }, 500); 2017-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: 这个只是get,没有set。 2017-08-2...

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

364. Cannot enlarge memory arrays. [ 83%]

Cannot enlarge memory arrays. Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to ...

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

365. 鼠标交互-拖动 [ 83%]

...mit = 200; dragRegion = new Rectangle(Laya.stage.width - dragWidthLimit >> 1, Laya.stage.height - dragHeightLimit >> 1, dragWidthLimit, dragHeightLimit); //画出拖动限制区域 Laya.stage.graphics.drawRect( dragRegion.x, dragRegion.y, dragRegion.width, dragRegion.height, null, "#FFFFFF", 2); } o...

来源: Laya2.0_示例 发布时间: 20260303

366. 【LIST无法拖动】参照官方实例做的 [ 83%]

...种方式,任然无法点击LIST的区域拖动 附件 : --> bin.zip 2021-01-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 HIPPOPMANANDRAPGIRL 赞同来自: 求救, 大佬门 2021-01-23 0 0 分享 微博 Q...

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

367. 天理何在,一个轴心点位中心的addChild到一个父容器,父容器的轴线点也是中心 [ 83%]

...skin.x = 0,skin.y = 0吗,为何非得x,y是宽高的一半才可以。 2017-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 看不懂你描述的问题, 你描述一下预期效...

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

368. 使用方向键 控制精灵在格子中移动 [ 83%]

... 如果你也专注2D的RPG游戏开发 可以加我的微信 一起研究 13890999   事件 Laya.stage.on(Laya.Event.KEY_UP,this,this.onkeyup); Laya.stage.on(Laya.Event.KEY_DOWN,this,this.onkeydown); Laya.timer.frameLoop(1,this,this.loop);事件响应 onkeyup(e){ for(let i:number = 0;i<this.key...

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

369. scrollrect的bug? [ 83%]

...视区域 这时候设置sprite的pivot 的时候 出现了显示异常 2017-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 jacksing888 赞同来自: 难道设置了容器的pivot之后 并且设置了容器...

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

370. 摄像机不在原点的时候3D空间转2D空间会失效? [ 83%]

...如下: this.point.elements[0] = Laya.stage.mouseX; this.point.elements[1] = Laya.stage.mouseY; this.camera.viewportPointToRay(this.point, this.ray); Laya.Physics.rayCast(this.ray, this._outHitInfo) 然后: this.camera.viewport.project(this._outHitInfo.position, this.camera.projectionViewMatrix,...

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