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

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

1. laya.utils.Pool [ 100%]

...存储、重复使用。 合理使用对象,可以有效减少对象创建的开销,避免频繁的垃圾回收,从而优化游戏流畅度。 Public Methods  MethodDefined By  clearBySign(sign:String):void[static] 清除对象对象。 Pool  createByClass(cls:Class):*[static] ...

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

2. laya.display.Animation [ 94%]

...er Object Animation 是Graphics动画类。实现了基于Graphics的动画创建、播放、控制接口。 本类使用了动画模版缓存,它以一定的内存开销来节省CPU开销,当相同的动画模版被多次使用时,相比于每次都创建新的动画模版,使用动画...

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

3. laya.maths.Point [ 87%]

...MethodDefined By  Point(x:Number = 0, y:Number = 0) 根据指定坐标,创建一个新的 Point 对象。 Point  copy(point:Point):Point copy point坐标 Point  create():Point[static] 从对象创建 Point  distance(x:Number, y:Number):Number 计算当前点和目标点(x,y)的距离...

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

4. laya.utils.Handler [ 83%]

...r 是事件处理器类。 推荐使用 Handler.create() 方法从对象创建,减少对象创建消耗。创建的 Handler 对象不再使用后,可以使用 Handler.recover() 将其回收到对象,回收后不要再使用此对象,否则会导致不可预料的错误。 注意:由...

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

5. laya.components.Component [ 75%]

..., laya.resource.IDestroySubclasses CommonScript, Script Component 类用于创建组件的基类。 Public Properties PropertyDefined By  destroyed : Boolean[read-only] 获取是否已经销毁 。 Component  enabled : Boolean 获取是否启用组件。 Component  id : int[read-only] 获取...

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

6. laya.maths.Matrix [ 70%]

...mber = 1, tx:Number = 0, ty:Number = 0, nums:Number = 0) 使用指定参数创建新的 Matrix 对象。 Matrix  clone():Matrix 返回此 Matrix 对象的副本。 Matrix  concat(matrix:Matrix):Matrix 将指定矩阵与当前矩阵连接,从而将这两个矩阵的几何效果有效地结合...

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

7. laya.net.Loader [ 62%]

...ng = atlas[static] 图集类型,加载完成后返回图集json信息(并创建图集内小图Texture)。Loader  AVATAR : String = AVATAR[static] Avatar资源。Loader  BUFFER : String = arraybuffer[static] 二进制类型,加载完成后返回arraybuffer二进制数据。Loader  FONT : St...

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

8. laya.d3.physics.constraints.ConstraintComponent [ 60%]

...heritanceConstraintComponent Component Object ConstraintComponent 类用于创建约束的父类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By  appliedImpulse : Number[read-only] 获取应用的冲力。 ConstraintComponent  breakingIm...

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

9. laya.components.CommonScript [ 57%]

...CommonScriptInheritanceCommonScript Component Object CommonScript 类用于创建公共脚本类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By destroyed : Boolean[read-only] 获取是否已经销毁 。 Component enabled : Boolean 获取...

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

10. laya.d3.physics.PhysicsTriggerComponent [ 57%]

...ctSubclasses PhysicsCollider, Rigidbody3D PhysicsTriggerComponent 类用于创建物理触发器组件。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By canCollideWith : int 获取可碰撞的碰撞组。 PhysicsComponent canScaleShape : Boo...

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