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

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

1. laya.maths.Rectangle_API3.0 [ 100%]

...urns Rectangle 返回此 Rectangle 对象。 clone clone(out?: Rectangle | null): Rectangle Defined in laya/maths/Rectangle.ts:171 返回一个 Rectangle 对象,其 x、y、width 和 height 属性的值与当前 Rectangle 对象的对应值相同。 Parameters Default value out: Rectangle | null =...

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

2. 区块地图-等角地图 [ 92%]

... 0, Laya.stage.width, Laya.stage.height), Handler.create(this, mapLoaded), null, new Point(1600, 800)); } function onStageClick() { var p = new Point(0, 0); layer.getTilePositionByScreenPos(Laya.stage.mouseX, Laya.stage.mouseY, p); layer.getScreenPositionByTilePos(Math.floor(p.x), Math.floor(p.y), p...

来源: Laya_示例 发布时间: 20241002

3. 区块地图-等角地图 [ 92%]

...tage.width, Laya.stage.height), Laya.Handler.create(this, this.mapLoaded), null, new Point(1600, 800)); } onStageClick() { let p = new Laya.Point(0, 0); // 通过屏幕坐标来获取选中格子的索引 this.layer.getTilePositionByScreenPos(Laya.stage.mouseX, Laya.stage.mouseY, p); // 通过地图...

来源: Laya2.0_示例 发布时间: 20241002

4. laya.maths.Vector2_API3.0 [ 92%]

...rns void forNativeElement forNativeElement(nativeElements?: Float32Array | null): void Defined in laya/maths/Vector2.ts:142 Parameters Default value nativeElements: Float32Array | null = null Returns void fromArray fromArray(array: ArrayLike<number>, offset?: number): void Defined in laya/math...

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

5. laya.d3.math.Vector2_API3.0 [ 92%]

...rns void forNativeElement forNativeElement(nativeElements?: Float32Array | null): void Defined in laya/d3/math/Vector2.ts:130 Parameters Default value nativeElements: Float32Array | null = null Returns void fromArray fromArray(array: ArrayLike<number>, offset?: number): void Defined in laya/d3...

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

6. 引擎 TiledMap 居然不支持图块翻转 [ 92%]

...se;             this.drawImageNum = 0;             this._map = null;         }         initData (map, objectKey = false) {             this._map = map;             this.isAloneObject = objectKey;         }         addAniSprite (sprite) {             if (...

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

7. 颜色滤镜 差值变化 [ 87%]

...vate _targetsValue: number = 16777215; private _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool = null; private targetsFilter: Laya.ColorFilter = null; private _persent: number = 0; protected constructor() { this.targets = new Arra...

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

8. laya.d3.math.Color [ 86%]

...:*):void 克隆。 Color  forNativeElement(nativeElements:Float32Array = null):voidColor  toGamma(out:Color):void 线性空间转换到Gamma空间。 Color  toLinear(out:Color):void Gamma空间转换到线性空间。 ColorPublic Constants ConstantDefined By  BLACK : Color[static] 黑色 Co...

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

9. 分享一个虚拟摇杆,比较粗糙,没做优化 [ 86%]

...比较粗糙,没做优化 function ModeKey() { //大圆 this.moveMax = null; //小圆点 this.moveKey = null; //当前的舞台 this.layer = null; //是否按下 this.isDown = false; //是否弹起 this.isUp = false; //是否移动 this.isMove = false; } tip:其实是否按下,是否弹起和是...

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

10. _calculateCacheRect函数有bug [ 86%]

...alse;             this.reCache = true;             this.mask = null;             this.maskParent = null;             this.filterCache = null;             this.filters = null;             this.hasGlowFilter = false;             //getSelfBound拿到的Bounds...

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