大约有 1,840 项符合查询结果, 库内数据总量为 30,782 项。 (搜索耗时: 0.0048 秒)
Laya_社区(603) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya2.0_示例(68) Laya3.0_文档(54)
...对象池内。 ##### ```typescript class PoolTest { private createTime: number = 0; constructor() { //初始化引擎 Laya.init(1136, 640, Laya.WebGL); //等比缩放 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1, ...
来源: Laya2.0_文档 发布时间: 20210715
...ngletonList.ts:76 Returns void indexof indexof(element: PhysicsComponent): number Inherited from SingletonList.indexof Defined in laya/utils/SingletonList.ts:41 Parameters element: PhysicsComponent Returns number Globals "laya/d3/physics/PhysicsUpdateList" PhysicsUpdateList constructor destroy index...
来源: Laya3.0_api 发布时间: 20231115
...nList.ts:69 Returns void indexof indexof(element: CannonPhysicsComponent): number Inherited from SingletonList.indexof Defined in laya/utils/SingletonList.ts:41 Parameters element: CannonPhysicsComponent Returns number Globals "laya/d3/physicsCannon/CannonPhysicsUpdateList" CannonPhysicsUpdateList c...
来源: Laya3.0_api 发布时间: 20231102
...rivate pos1: Laya.Vector3; private pos2: Laya.Vector3; private scaleDelta: number = 0; private scaleValue: number = 0; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya...
来源: Laya_示例 发布时间: 20241120
...aded(): void { this.layer = this.tiledMap.getLayerByIndex(0); var radiusX: number = 32; var radiusY: number = Math.tan(180 / Math.PI * 30) * radiusX; var color: string = "#FF7F50"; this.sprite = new Sprite(); this.sprite.graphics.drawLine(0, 0, -radiusX, radiusY, color); this.sprite.graphics.drawLin...
来源: Laya2.0_示例 发布时间: 20241120
...ix Defined in laya/display/cmd/TransformCmd.ts:14 矩阵。 pivotX pivotX: number Defined in laya/display/cmd/TransformCmd.ts:18 (可选)水平方向轴心点坐标。 pivotY pivotY: number Defined in laya/display/cmd/TransformCmd.ts:22 (可选)垂直方向轴心点坐标。 Static ID ID: st...
来源: Laya3.0_api 发布时间: 20231115
...Properties colors pos texture ID Methods recover Properties colors colors: number[] Defined in laya/display/cmd/DrawTexturesCmd.ts:21 附加顶点色 pos pos: ArrayLike<number> Defined in laya/display/cmd/DrawTexturesCmd.ts:18 绘制次数和坐标。 texture texture: Texture Defined in laya/d...
来源: Laya3.0_api 发布时间: 20231115
...SubMesh.ts:16 Returns StaticBatchSubInfo Properties indexCount indexCount: number Defined in laya/d3/component/staticmesh/StaticBatchSubMesh.ts:12 indexStart indexStart: number Defined in laya/d3/component/staticmesh/StaticBatchSubMesh.ts:11 meshBounds meshBounds: Bounds Defined in laya/d3/component...
来源: Laya3.0_api 发布时间: 20231115
...n laya/utils/SingletonList.ts:76 Returns void indexof indexof(element: T): number Inherited from SingletonList.indexof Defined in laya/utils/SingletonList.ts:41 Parameters element: T Returns number Globals "laya/d3/RenderObjs/RenderObj/RenderGeometryElementOBJ" FastSinglelist constructor destroy ind...
来源: Laya3.0_api 发布时间: 20231115
... Laya.WebGL; export class HelloLayabox { private txt: Text; private prevX: number = 0; private prevY: number = 0; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.AL...
来源: Laya2.0_文档 发布时间: 20210715