大约有 532 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0034 秒)
Laya_社区(171) Laya2.0_示例(114) Laya2.0_api(91) Laya3.0_文档(65) laya_api(48) Laya_示例(24) Laya2.0_文档(16) Laya3.0_api(3)
...ll Classes | Index | Frames No Frames AnimatorProperties | Methods | Constants Packagelaya.d3.componentClasspublic class AnimatorInheritanceAnimator Component Object Animator 类用于创建动画组件。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Pr...
来源: Laya2.0_api 发布时间: 20190513
...stage.on(Event.MOUSE_DOWN, this, this.onMouseDown); onMouseDown(e) { const Event = Laya.Event; // 手机上才有 touches 属性 let touches = e.touches; if (touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touch...
来源: Laya_社区 发布时间: 20190919
...本,添加如下代码,实现鼠标点击后,获取地理位置。 const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { constructor() { super(); } onMouseClick(evt: Laya.Event): void { // 尝试获取当前位置 Laya.Geolocation.getCurrentPosition( Lay...
来源: Laya3.0_文档 发布时间: 20230725
...aya在OPEN事件触发连接成功后无法抛出event事件 public static const CONNECT:String = "connect"; 这是我一个自定义的CONNECT事件,我在连接成功后,在一个EventDispatcher类这样抛出:this.event(CONNECT); 然后报错说this._$1_event不是一个方法 这是什么...
来源: Laya_社区 发布时间: 20170818
... 组件的可重用性。 https://github.com/yingDev/vmLaya 基本应用:const TEST_PAGE = 'TestPage.json'; //我们的 ViewModel class HelloViewModel { //每隔 500ms 自增的一个数字序列 hello$ = $.timer(0, 500); } //一个 View @createView(TEST_PAGE) class HelloView extends VmViewBase...
来源: Laya_社区 发布时间: 20180128
... All Classes | Index | Frames No Frames PointProperties | Methods | Constants Packagelaya.mathsClasspublic class PointInheritancePoint Object Point 对象表示二维坐标系统中的某个位置,其中 x 表示水平轴,y 表示垂直轴。 Public Properties PropertyDefined By x : ...
来源: laya_api 发布时间: 20170929
...前的容器元素,清屏就可以继续使用 if (ls.Browser.container) { const container = document.getElementById('b-layabox') container.parentNode.replaceChild(ls.Browser.container, container) } else { ls.Browser.container = document.getElementById('b-layabox') } Laya.stage.destroyCh...
来源: Laya_社区 发布时间: 20190520
...变型,stage的宽高等于屏幕宽高。*/ public static const SCALE_FULL:String = "full"; 这个出现白边是正常的 1、你的游戏宽高比浏览器宽高小的时候,hui会出现白边 2、浏览器出现地址栏的时候可能会出现白边 如果你想去掉白边的...
来源: Laya_社区 发布时间: 20170328
...ation.ts”中用代码对Animation进行控制了,示例代码如下: const { regClass, property } = Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor...
来源: Laya3.0_文档 发布时间: 20230629
...否做到每个子游戏分别打包zip,在Native中解包并跳转? const 用法 有没有克隆控件的方法,prefab能否在代码上调用 问题状态 最新活动: 2017-04-19 20:15 浏览: 1469 关注: 2 人 bing • 2017-04-19 20:42 非常感谢!!!
来源: Laya_社区 发布时间: 20170419