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

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

51. 鼠标出屏事件 [ 83%]

... 请问能不能监听到鼠标出屏的事件?           Laya.stage.on(Laya.Event.MOUSE_OUT, this, function(){console.log("mouseout")});         Laya.stage.on(Laya.Event.MOUSE_UP, this, function(){console.log("mouseup")});     mouseup能正常监听到,stage上加的MOUSE...

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

52. 3D中摄像机绕物体旋转该如何实现? [ 83%]

...Distance = Vector3.distance(this.transform.position, this.AroundPos); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouse...

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

53. 官方案例里摄像机绕物体旋转脚本的问题 [ 83%]

...Distance = Vector3.distance(this.transform.position, this.AroundPos); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouse...

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

54. 分享:避免鼠标快速移动,mouseout和mouseover触发顺序不一致的问题! [ 83%]

...示对象 public function MouseOver_mouseOut() { Laya.init(600,400); Laya.stage.bgColor='#EEFFCC'; arr=; var sp1:Sprite=new Sprite(); sp1.autoSize=true; sp1.name='sp1'; sp1.graphics.drawRect(0,0,100,100,"#FF0000"); var sp2:Sprite=new Sprite(); sp2.autoSize=true; sp2.name='sp2'; sp2.graphics.drawRect...

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

55. 超出文本区域的处理&滚动文本(ActionScript-LayaAir基础篇(AS3)-文本) [ 83%]

...裁剪 txt.size(300, 50); txt.fontSize = 20; txt.color = "#ffffff"; Laya.stage.addChild(txt); return txt; } } } ``` ![2](img/2.png) 可以看到3种方法的对文本处理的不同,每种处理都有各自的优缺点,性能比最高的还是hidden。 除了通过对文本区域设置overflow ...

来源: Laya2.0_文档 发布时间: 20210715

56. layaAir真的没办法做涂鸦板? [ 82%]

... 2018-08-22 15:24 @138*****047:var arr=[]; var s=new Laya.Sprite(); Laya.stage.addChild(s); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,function(e){ arr.push([e.stageX,e.stageY]); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,bb) }) Laya.stage.on(Laya.Event.MOUSE_UP,this,function(){ Laya.stage.off(Laya.Even...

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

57. 关于新手引导 [ 82%]

... new Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); guideContainer.addChild(maskArea); //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); //设置叠加模式 interacti...

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

58. Laya.stage.focus不起作用 [ 82%]

Laya.stage.focus不起作用 我用 Laya.stage.focus 来给输入文本框(TextInput ) 设置输入焦点,都完全没有效果。 2017-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识...

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

59. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 82%]

... = 512;             spe.size(512, 512);             Laya.stage.addChild(spe);             spe.graphics.drawRect(0, 0, 515, 515, "#996633", "#333333");             spe.on(Event.MOUSE_DOWN, spe, onMouseDown);             Laya.stage.on(Event.MOUSE_UP, this, ...

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

60. FRAME_SLOW及FRAME_MOUSE模式下切换场景有时会导致渲染崩溃 [ 82%]

...RAME_MOUSE模式下切换场景有时会导致渲染崩溃 当 设置 Laya.stage.frameRate = Laya.Stage.FRAME_SLOW;时切换场景有时会导致崩溃 见附件 附件 : --> 2018-03-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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