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

大约有 962 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)

641. 和原生Dom交互 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...载到自己的项目中或者服务器中。 下面是主类的逻辑: class LayaUISample { constructor() { //初始化引擎 Laya.init(0,0); var Hls:any = Laya.Browser.window.Hls;//获取对Hls的引用。 var plyr:any = Laya.Browser.window.plyr;//获取对plyr的引用 //获取video对象,就...

来源: Laya3.0_文档 发布时间: 20251010

642. laya.physics.joint.WeldJoint_API3.0 [ 53%]

...ernals Only exported Menu Globals "laya/physics/joint/WeldJoint" WeldJoint Class WeldJoint 焊接关节:焊接关节的用途是使两个物体不能相对运动,受到关节的限制,两个刚体的相对位置和角度都保持不变,看上去像一个整体 Hierarchy JointBase WeldJoint I...

来源: Laya3.0_api 发布时间: 20231115

643. Laya的Handler里生成handler的key用的mid是基于对象的,但是method是基于原型链的。。。。(bug~~~~~~~~~~) [ 53%]

...19 20:44 浏览: 733 关注: 2 人 sleepfish • 2017-06-20 09:31 同一个class对象,生成两个实例,mid是挂在实例上的。只要对两个对象任意一个上的方法设置$_TID,另外一个也会有。因为方法是原型链上的公用的对象。两外一个对象的mid就没...

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

644. laya.d3.math.Matrix3x3_API3.0 [ 53%]

...ed Externals Only exported Menu Globals "laya/d3/math/Matrix3x3" Matrix3x3 Class Matrix3x3 Matrix3x3 类用于创建3x3矩阵。 Hierarchy Matrix3x3 Implements IClone Index Constructors constructor Properties elements DEFAULT Methods clone cloneTo determinant identity invert rotate scale translate t...

来源: Laya3.0_api 发布时间: 20231102

645. [LayaAirIDE3]3.2.7 在抖音小游戏开启了严格模式(ES6),Android性能明显下降了 [ 53%]

...在ES6为true的情况下保持 Android 高性能,要用对 ES6(利用 class、let/const、箭头函数、Map/Set 等能触发优化的特性),避免 async/await、解构、展开运算符等在低端机解释执行很重的语法,同时减少对象分配和 GC 压力。   2025-09-03 0 1 ...

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

646. laya.physics.joint.MouseJoint_API3.0 [ 53%]

...nals Only exported Menu Globals "laya/physics/joint/MouseJoint" MouseJoint Class MouseJoint 鼠标关节:鼠标关节用于通过鼠标来操控物体。它试图将物体拖向当前鼠标光标的位置。而在旋转方面就没有限制。 Hierarchy JointBase MouseJoint Index Constructors cons...

来源: Laya3.0_api 发布时间: 20231115

647. playSound和playMusic结束时候有异常抛出 [ 53%]

...是否需要关注? Demo代码(已测试有效):  // 程序入口 class GameMain {     constructor()     {         Laya.init(640,1100, Laya.WebGL);         //设置适配模式         Laya.stage.scaleMode = "showall";         //设置剧中对齐         Laya.stage....

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

648. laya.physics.ColliderBase_API3.0 [ 53%]

...ernals Only exported Menu Globals "laya/physics/ColliderBase" ColliderBase Class ColliderBase 碰撞体基类 Hierarchy Component ColliderBase BoxCollider ChainCollider CircleCollider EdgeCollider PolygonCollider Index Constructors constructor Properties _extra _singleton fixture label owner rigidBo...

来源: Laya3.0_api 发布时间: 20231115

649. laya.d3.physicscannon.CannonPhysicsComponent_API3.0 [ 53%]

...bals "laya/d3/physicsCannon/CannonPhysicsComponent" CannonPhysicsComponent Class CannonPhysicsComponent PhysicsComponent 类用于创建物理组件的父类。 Hierarchy Component CannonPhysicsComponent CannonPhysicsTriggerComponent Index Constructors constructor Properties _extra _singleton canSca...

来源: Laya3.0_api 发布时间: 20231102

650. 射线检测报错,outHitInfo.sprite3D=null; [ 53%]

射线检测报错,outHitInfo.sprite3D=null; 代码: class SceneScript extends Laya.Script{  private ray : Laya.Ray; private hit: Laya.RaycastHit; private phasorSprite3D:Laya.PhasorSpriter3D; private camera : Laya.Camera; private scene: Laya.Scene;  public _load(owner : any):void{ this.scene ...

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