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

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

1. laya.utils.Dragging [ 100%]

...ragging  ratio : Number = 0.92 缓动衰减系数。Dragging  target : Sprite拖动的对象。DraggingPublic Methods  MethodDefined By  start(target:Sprite, area:Rectangle, hasInertia:Boolean, elasticDistance:Number, elasticBackTime:int, data:*, disableMouseEvent:Boolean, ratio:Number = ...

来源: laya_api 发布时间: 20170422

2. 鼠标交互-拖动 [ 91%]

...} setup() { this.createApe(); this.showDragRegion(); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(ApePath); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(ApePath); this.ape.pivot(texture.width / 2, texture.height / 2); ...

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

3. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 90%]

...);         } 2.color="#0"程序崩溃              var _mDown:Sprite=new Sprite();             _mTop.graphics.drawRect(0,0,1,1,"#0");     3.叠加效果 BlendMode.ADD,apk中无效   4.MouseManager.as 运行 时报错,“ touchemoves is undefined”               ...

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

4. 鼠标交互-拖动 [ 87%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Rectangle = Laya.Rectangle; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var ApePath = ".....

来源: Laya_示例 发布时间: 20250221

5. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 83%]

...远不如白鹭。。。。 我改的代码如下: module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Rectangle = Laya.Rectangle; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.We...

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

6. 如何设置一个view局布可拖动[ 71%]

...,调用第一个的一个方法,走进了第二方法里 如何设置Sprite的宽高和点击区域? 使用钢体设置防穿后仍有几率会穿透 将list里的scrollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 Panel中的东西左右拖动好象...

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

7. 继承Dialog 的类视图。都是默认可以拖动的嘛?如果是,怎么让他不响应拖动,自定义拖动事件处理呢 [ 70%]

...景类了,此时该如何获得场景内的元素 关于遍历产生的sprite的点击事件,急,大神帮看哈 iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 Animation如何加点击事件 btn 鼠标移动上去默认文本颜色是绿色,我想...

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

8. 当鼠标移出屏幕外,如何检测? [ 66%]

...复被折叠 要回复问题请先登录 发起人 BugCreater 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 【屏幕适配】在LayaAir上面是竖屏,为什么到微信开发工具中就是横屏,而且还被拉伸了 请问有没有方法能够获取“鼠标是...

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

9. laya.display.Sprite [ 49%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames SpriteProperties | Methods | Events Packagelaya.displayClasspublic class SpriteInheritanceSprite Node EventDispatcher ObjectSubclasses AnimationBase, PerfHUD, Scene, Stage, Text Sprite 是基本的显示图形的显示列...

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

10. laya.display.Sprite [ 49%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames SpriteProperties | Methods | Events Packagelaya.displayClasspublic class SpriteInheritanceSprite Node EventDispatcher ObjectImplements laya.display.ILayoutSubclasses AnimationPlayerBase, Component, DialogManager, GridSprit...

来源: laya_api 发布时间: 20170929