大约有 341 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
Laya_社区(187) Laya2.0_文档(42) Laya3.0_api(25) Laya3.0_文档(22) laya_api(18) Laya_示例(17) Laya2.0_api(16) Laya2.0_示例(14)
...sform3D scale : Vector3[read-only] 获取世界缩放。 Transform3D up : Vector3[read-only] 获取向上方向。 Transform3D worldMatrix : Matrix4x4 获取世界矩阵。 Transform3D worldNeedUpdate : Boolean[read-only] 获取世界矩阵是否需要更新。 Transform3DPublic Methods ...
来源: laya_api 发布时间: 20170929
...时候时候鼠标就不在精灵上了,所以触发不到精灵的mouse_up事件,改怎么处理呢 2018-07-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 鼠标刷新率高,有...
来源: Laya_社区 发布时间: 20180731
...相关的链接 提交 1 个回复 1575355787用户 赞同来自: 冲鸭~UP UP UP! 2019-12-03 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 1575355787用户 相关问题 写个捕鱼游戏练练手 【屏幕适配】在LayaAir上面是...
来源: Laya_社区 发布时间: 20191203
...NTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { createSprtie(); drawTrack(); } function createSprtie() { const w = 50; const h = 30; button = new Sprite(); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.pivot(w / 2, h / 2); //设置...
来源: Laya_示例 发布时间: 20251130
... Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.createSprite(); this.drawTrack(); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; const w = 50; const h = 30; this.button = new Sprite(); this.button.graphics.drawRect(0, 0, w, h, "#F...
来源: Laya2.0_示例 发布时间: 20251130
...ya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MOUSE_UP, this, finishScrollText); } /* 停止滚动文本 */ function finishScrollText(e) { Laya.stage.off(Event.MOUSE_MOVE, this, scrollText); Laya.stage.off(Event.MOUSE_UP, this, finishScrollText); } /* 鼠标滚动文本 */ fun...
来源: Laya_示例 发布时间: 20251130
...现特殊效果。 Dark 按钮按下时有一个整体变暗的效果。 UpScale 按钮按下时有一个放大的效果。 DownScale 按钮按下时有一个缩小的效果。 Sound 按钮按下时播放一个音效。 以下属性用于绑定按钮的功能部件。注意:当按钮节点是预...
来源: Laya3.0_文档 发布时间: 20251010
...age.on(Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Event.MOUSE_UP, this, this.finishScrollText); } /* 停止滚动文本 */ finishScrollText(e) { const Event = Laya.Event; Laya.stage.off(Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.off(Event.MOUSE_UP, this, this.finishScrollText)...
来源: Laya2.0_示例 发布时间: 20251130
...anvas2 = Laya.init(480, 360, WebGL); // Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { createInteractiveTarget(); createLogger(); } function createInteractiveTarget() { var rect = new Sprite(); rect.graphics.drawRect(0, 0, 200, 200, "#D2691E"); rect.size(200, 200); rect.pivot(100,...
来源: Laya_社区 发布时间: 20180205
....x? "right" : "left" ; var vDir = Laya.stage.mouseY>sprite.y? "down" : "up" ; //先横着走,走完之后调用竖着走的函数 Tween.to(sprite,{x:Laya.stage.mouseX,y:sprite.y,update:new Handler(this,onWalk(hDir)),complete:Handler.create(this,function(){ Tween.to(sprite,{x:sprite.x,y:Laya.sta...
来源: Laya_社区 发布时间: 20180331