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

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

51. 鼠标监听问题 [ 80%]

...时候时候鼠标就不在精灵上了,所以触发不到精灵的mouse_up事件,改怎么处理呢 2018-07-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 鼠标刷新率高,有...

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

52. 【广州】蜃龙诚聘H5游戏前端开发,薪资待遇优厚 [ 79%]

...相关的链接 提交 1 个回复 1575355787用户 赞同来自: 冲鸭~UP UP UP! 2019-12-03 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 1575355787用户 相关问题 写个捕鱼游戏练练手 【屏幕适配】在LayaAir上面是...

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

53. 鼠标交互-滑动 [ 78%]

...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_示例 发布时间: 20250223

54. 鼠标交互-滑动 [ 78%]

... 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_示例 发布时间: 20250223

55. 文本-滚动文本 [ 78%]

...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_示例 发布时间: 20250223

56. 文本-滚动文本 [ 77%]

...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_示例 发布时间: 20250223

57. sprite点击事件 位置便宜 [ 77%]

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

58. Tween.to 执行失败 [ 76%]

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

59. laya.d3.core.Transform3D [ 76%]

...D  worldMatrix : Matrix4x4 获取世界矩阵。 Transform3D  worldNeedUpdate : Boolean[read-only] 获取世界矩阵是否需要更新。 Transform3DPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By  Transform3D(owner:Sprite3D) 创建一个 Transform...

来源: Laya2.0_api 发布时间: 20190513

60. laya.d3.math.Quaternion [ 76%]

...四元数的线性插值 Quaternion  lookAt(eye:Vector3, target:Vector3, up:Vector3, out:Quaternion):void[static] 计算观察四元数 Quaternion  multiply(left:Quaternion, right:Quaternion, out:Quaternion):void[static] 计算两个四元数相乘 Quaternion  normalize(out:Quaternion):void ...

来源: Laya2.0_api 发布时间: 20190513