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

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

81. 关于定位 我在ID里面设置了right bottom 但是时间效果却不对 [ 53%]

...你的横竖屏翻转和改变位置,建议你为Laya.stage添加一个Event.RESIZE事件,动态修改横竖屏设置或者手动修改图标的位置! 2017-08-07 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 callback 相关问题 L...

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

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

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

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

83. 正交相机要怎么控制啊,坐标什么的全部懵!看了这个官方示例表示不懂,为什么还要转化为2D坐标? [ 52%]

...0,0,0) var rotation = new Laya.Vector3(0, 0.01, 0); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { layaMonkey.transform.localScale = new Laya.Vector3(300, 300, 300); Laya.Utils3D.convert3DCoordTo2DScreenCoord(translate, translate); layaMonkey.transform.position = translate; Laya....

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

84. 如何实现3d遮罩效果? [ 51%]

...mport laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import threeDimen.common.CameraMoveScript; public class D3Base_TargetTexture { private var skinMesh:MeshSprite...

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

85. 【字节小游戏】游戏中播放视频 [ 50%]

...a设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); } } new DOM_Video(); 2020-09-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

86. 物理引擎-Slingshot [ 49%]

...useConstraint, ground, pyramid, ground2, pyramid2, rock, elastic]); Matter.Events.on(engine, 'afterUpdate', function() { if (mouseConstraint.mouse.button === -1 && (rock.position.x > 190 || rock.position.y 190 || rock.position.y 190 || rock.position.y < 430)) { rock = Matter.Bodies.polygon(170, 450,...

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

87. [LayaAirIDE 2.0]Laya官方的视频例子,用LayaAir2.1.1.1版本开发,在ios无论是safari还是通过微信打开的h5链接都无法播放 [ 49%]

...列的加载回调,所以这一行一定会执行。 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); 3) 而你的代码里并不会执行这一行,你完全拷贝示例代码,会发现是能够播放的...

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

88. video在安卓手机上,怎么设置同层播放,还有怎么设置隐藏控制播放按钮 [ 47%]

...InArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Event.RESIZE, this, Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); }   2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

89. laya.ui.Tree [ 47%]

...| All Classes | Index | Frames No Frames TreeProperties | Methods | Events Packagelaya.uiClasspublic class TreeInheritanceTree Box Component Sprite Node EventDispatcher ObjectImplements IRender Tree 控件使用户可以查看排列为可扩展树的层次结构数据。 Public Properties Hi...

来源: laya_api 发布时间: 20170929

90. laya.ui.Button [ 47%]

...All Classes | Index | Frames No Frames ButtonProperties | Methods | Events Packagelaya.uiClasspublic class ButtonInheritanceButton Component Sprite Node EventDispatcher ObjectImplements ISelectSubclasses CheckBox, Radio Button 组件用来表示常用的多态按钮。 Button 组件可显示...

来源: laya_api 发布时间: 20170929