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

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

451. laya.ui.ComboBox [ 68%]

...archy : Boolean[read-only] 获取在场景中是否激活。 Node alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anch...

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

452. 2D精灵光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 68%]

...e = true; } // 生成一个矩形 private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = new Uint16Array(2 * 3); let index = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = ...

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

453. 用LayaAir引擎解析Tiled Map地图(TypeScript-2D进阶篇(TS)-扩展模块) [ 68%]

...序入口 class GameMain{ private tMap:Laya.TiledMap; private scaleValue:number = 0; private MapX:number = 0; private MapY:number = 0; private mLastMouseX:number; private mLastMouseY:number; constructor() { //初始化舞台 Laya.init(Laya.Browser.width,Laya.Browser.height,Laya.WebGL); //创建Tiled...

来源: Laya2.0_文档 发布时间: 20210715

454. laya.d3.terrain.TerrainRender [ 68%]

...BaseMaterial> 获取浅拷贝材质列表。 BaseRender sortingFudge : Number排序矫正值。BaseRenderPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By  TerrainRender(owner:TerrainChunk) 创建一个新的 MeshRender 实例。 TerrainRender  _nee...

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

455. 陀螺仪与加速计 · LayaAir3.4 · 引擎文档 · LAYABOX [ 68%]

...Gravity: Laya.AccelerationInfo, rotationRate: Laya.RotationInfo, interval: number): void { this.info.text = 'acceleration:(' + acceleration.x.toFixed(3) + ', ' + acceleration.y.toFixed(3) + ', ' + acceleration.z.toFixed(3) + ')\n' + 'accelerationIncludingGravity:(' + accelerationIncludingGravity.x.t...

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

456. laya.particle.ParticleSetting_API3.0 [ 68%]

... textureCount textureName useEndRadian Properties ageAddScale ageAddScale: number = 0 Defined in laya/particle/ParticleSetting.ts:14 如果大于0,某些粒子的持续时间会小于其他粒子,并具有随机性(单位:无) blendState blendState: number = 0 Defined in laya/particle/ParticleSe...

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

457. TiledMap地图 · LayaAir3.4 · 引擎文档 · LAYABOX [ 68%]

... class Main extends Laya.Script { private tMap:Laya.TiledMap; private MapX:number = 0; private MapY:number = 0; private mLastMouseX:number; private mLastMouseY:number; onEnable() { //创建地图对象 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangl...

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

458. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 68%]

...Gravity: Laya.AccelerationInfo, rotationRate: Laya.RotationInfo, interval: number): void { this.info.text = 'acceleration:(' + acceleration.x.toFixed(3) + ', ' + acceleration.y.toFixed(3) + ', ' + acceleration.z.toFixed(3) + ')\n' + 'accelerationIncludingGravity:(' + accelerationIncludingGravity.x.t...

来源: Laya2.0_文档 发布时间: 20210715

459. laya支持的发布模式有哪些? [ 68%]

...打开调试面板。 开启debug模式后 1.编译代码将增加int,uint,Number,String的类型判断,都将被翻译成if(!__DEBUGTYPE__(判断对象,判断类型))debugger,如果检测对象非指定类型,即会中断程序运行,并在检测到问题的代码处自动断点。   2.编译...

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

460. laya.d3.physicscannon.CannonPhysicsTriggerComponent_API3.0 [ 68%]

...Constructors constructor new CannonPhysicsTriggerComponent(collisionGroup: number, canCollideWith: number): CannonPhysicsTriggerComponent Overrides CannonPhysicsComponent.constructor Defined in laya/d3/physicsCannon/CannonPhysicsTriggerComponent.ts:35 创建一个 PhysicsTriggerComponent 实例。 P...

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