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

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

1. laya.net.Socket [ 100%]

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

来源: laya_api 发布时间: 20170929

2. laya.device.motion.Gyroscope [ 97%]

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

来源: laya_api 发布时间: 20170929

3. laya.device.motion.Accelerator [ 93%]

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

来源: laya_api 发布时间: 20170929

4. laya.ui.Panel [ 77%]

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

来源: laya_api 发布时间: 20170929

5. laya.ui.Tree [ 76%]

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

来源: laya_api 发布时间: 20170929

6. laya.ui.Component [ 67%]

...命周期:preinitialize > createChildren > initialize > 组件构造函数 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Spr...

来源: laya_api 发布时间: 20170929