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

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

1. laya.device.motion.Gyroscope [ 100%]

...bject 使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提供绝对方位数据(指向地球坐标系),...

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

2. laya.device.motion.Accelerator [ 96%]

... Object Accelerator.instance获取唯一的Accelerator引用,请勿调用构造函数。 listen()的回调处理器接受四个参数: acceleration: 表示用户给予设备的加速度。 accelerationIncludingGravity: 设备受到的总加速度(包含重力)。 rotationRate: 设备的自...

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

3. laya.ui.Panel [ 78%]

...ethodDefined By  Panel() 创建一个新的 Panel 类实例。 在 Panel 构造函数中设置属性width、height的值都为100。 Panel  addChild(child:Node):Node[override] 添加子节点。 Panel  addChildAt(child:Node, index:int):Node[override] 添加子节点到指定的索引位置。 ...

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

4. laya.ui.Tree [ 77%]

... MethodDefined By  Tree() 创建一个新的 Tree 类实例。 在 Tree 构造函数中设置属性width、height的值都为200。 Tree addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):...

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

5. laya.ui.UIComponent [ 66%]

...命周期:preinitialize > createChildren > initialize > 组件构造函数 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-only] 获取在场景中...

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

6. laya.net.Socket [ 55%]

...收文本和二进制数据。 要使用 Socket 类的方法,请先使用构造函数 new Socket 创建一个 Socket 对象。 Socket 以异步方式传输和接收数据。 Public Properties PropertyDefined By  connected : Boolean[read-only] 表示此 Socket 对象目前是否已连接。 Sock...

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

7. laya.net.LoaderManager [ 52%]

...ll) — 资源类型。  constructParams:Array (default = null) — 资源构造函数参数。  propertyParams:Object (default = null) — 资源属性参数。  priority:int (default = 1) — (default = 1)加载的优先级,优先级高的优先加载。有0-4共5个优先级,0最高,4最...

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