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

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

181. laya.device.motion.Accelerator [ 78%]

...singleton:int)Accelerator event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  getTransformedAcceleration(acceleration:AccelerationInfo):AccelerationInfo[static] 把加速度值转换为视觉上正确的加速度值。依赖于Browser.window.orientation,可能在部分低...

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

182. 加载3D资源时报错 No 'Access-Control-Allow-Origin' header is present on the requested resource. [ 78%]

...模型资源释放问题 微信小游戏与加载图片时不会触发erroe事件 LayaAir 库文件加载速度慢 小游戏项目 加载有中文的json文件 报错 请问下loader如何强制加载一个文件,避免浏览器的缓存 分享:LayaAir下如何获取图集下的小图资源? ...

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

183. socket通讯返回数据 [ 78%]

... console.log(msg); } private closeHandler(e: any = null): void { //关闭事件 console.log("关闭事件");//**********************************************************************服务器 发数据时报错 console.log(e); } private errorHandler(e: any = null): void { //连接出错 console.log("...

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

184. laya.resource.TextureCube_API3.0 [ 78%]

...m EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,...可以使用数组结构如:[p1,p2,p3,...] ;如果需要回调单个...

来源: Laya3.0_api 发布时间: 20231115

185. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 78%]

...enderHandler的回调是正常的。1、我对list设置了on去监听mouse事件,可以触发回调 on 上面的回调, 2、list的renderHandler能正常使用 3、demo逻辑与官网给的代码是一样的 http://layaair.ldc.layabox.com/demo/?category=2d&group=UI&name=List ===========...

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

186. laya.device.motion.Accelerator [ 78%]

...singleton:int)Accelerator event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  getTransformedAcceleration(acceleration:AccelerationInfo):AccelerationInfo[static] 把加速度值转换为视觉上正确的加速度值。依赖于Browser.window.orientation,可能在部分低...

来源: laya_api 发布时间: 20170929

187. error TS2339: Property 'delta' does not exist on type 'Event'. [ 78%]

...代码是否有问题那?你的delta取值有问题哦!delta是event的事件回值,不是Static类型哦!你可以查看下event的源码! 2018-04-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 GhostCTO 相关问题 编译...

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

188. laya.resource.Texture2DArray_API3.0 [ 78%]

...m EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,...可以使用数组结构如:[p1,p2,p3,...] ;如果需要回调单个...

来源: Laya3.0_api 发布时间: 20231115

189. 【求助】怎么在自定义对象进行实例化的时候,给它绑定监听事件 [ 78%]

...助】怎么在自定义对象进行实例化的时候,给它绑定监听事件 我的需求是这样的:页面渲染后,有一排图标顺序排列,我点击某一个,就可以对其进行拖动操作。   我现在的思路是这样的:因为图标里有几个自定义属性,我定...

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

190. socket.sent [ 77%]

...msg);;//没有写出 } private closeHandler(e: any = null): void { //关闭事件 console.log("关闭"+e); } private errorHandler(e: any = null): void { //连接出错 console.log("错误"+e); console.log(e); } onLoded():void{ // Laya.stage.addChild(obj); Laya.stage.addChild(new Btn1 ());//加入舞...

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