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

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

81. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 57%]

...点上了 谢谢 186*****868 • 2019-06-04 12:03 @IBA: mouseMove(e: Laya.Event) { //触摸移动的整量 let touches = e.touches; if (touches && touches.length == 2) { let distance = this.getDistance(e.touches); //判断当前距离与上次距离变化,确定是放大还是缩小 const ...

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

82. laya.d3.core.scene.Scene3D [ 56%]

...All Classes | Index | Frames No Frames Scene3DProperties | Methods | Events | Constants Packagelaya.d3.core.sceneClasspublic class Scene3DInheritanceScene3D Sprite Node EventDispatcher ObjectImplements ISubmit, laya.resource.ICreateResource Scene3D 类用于实现场景。 Public Properties ...

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

83. Component旋转之后宽和高一直保持初始值不变,无法获得旋转之后的宽高 [ 54%]

... 个回复 Laya_XS 赞同来自: 你需要在游戏里通过监听舞台的Event.resize事件,在触发事件后,通过判断 Browser.clientWidth跟Browser.clientHeight的比例大小 来判断当前屏幕是横屏还是竖屏。 2016-12-16 0 0 分享 微博 QZONE 微信 nieyiwei 赞同来自: ...

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

84. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 54%]

...nifests/vM7nH0Kl.m3u8');//加载m3u8源 hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED,function():void{ video.play(); }); } plyr.setup(video); } } } ``` 编译运行代码,发现网页已经可以播放视频了。开发者可能注意到这里我们初始化引擎的时候是这样的...

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

85. 怎样获取浏览器地址传过来的GET参数 [ 53%]

...rt. tree mouseHandler 怎么获取条目 2.0 drawTexture color参数无效 Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 通过laya嵌入iframe 后 原本laya禁止微信浏览器里面的上下滑动,又开始上下滑动了 用Mac下Unity5.6.2f1导出的模型在Mac浏览器显...

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

86. laya.ui.TextArea_API3.0 [ 52%]

...th addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getCo...

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

87. socket大型项目回调 [ 52%]

...odule PomeloLaya{ export class Pomelo{ static DEBUG:boolean = true; static EVENT_IO_ERROR:string = "io-error"; static EVENT_CLOSE:string = "close"; static EVENT_KICK:string = "onKick"; static EVENT_HEART_BEAT_TIMEOUT:string = 'heartbeat timeout'; private JS_WS_CLIENT_TYPE:string = 'js-websocket'; pr...

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

88. laya.ui.TextArea [ 51%]

...ll Classes | Index | Frames No Frames TextAreaProperties | Methods | Events Packagelaya.uiClasspublic class TextAreaInheritanceTextArea TextInput Label UIComponent Sprite Node EventDispatcher Object TextArea 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherit...

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

89. websocket 中 protobuf 数据的发送与接收的具体方法是怎样的? [ 50%]

...题,服务端收不到数据吗?客户端接收数据的方法是监听event.message事件,在事件触发后,你读取socket实例.output的数据即可! 2017-02-18 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Victor 相关...

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

90. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 48%]

...Scripts.Core { import laya.net.Socket; import laya.utils.Byte; import laya.events.Event; import Scripts.Core.MsgManger; import Scripts.Core.IHandler; import Scripts.Core.TipsManager; import laya.utils.Browser; /** * ... * @author */ public class Socketmanger{ private static var _I:Socketmanger; publ...

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