大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0086 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...Sprite3D; this.zombie.once(Laya.Event.HIERARCHY_LOADED, this, function (): void { this.zombie.transform.rotation = new Laya.Quaternion(-0.7071068, 0, 0, -0.7071068); this.zombie.transform.position = new Laya.Vector3(0.3, 0, 0); this.addSkinComponent(this.zombie); this.loadUI(); }); } //遍历节点,...
来源: Laya_示例 发布时间: 20260303
... rayCast(ray:Ray, outHitInfo:RaycastHit, distance:Number, layer:int = 0):void[static] 在场景中投下可与所有碰撞器碰撞的一条光线,获取发生碰撞的第一个碰撞器。 Physics rayCastAll(ray:Ray, outHitAllInfo:Vector.<RaycastHit>, distance:Number, layer:int = 0):void[...
来源: laya_api 发布时间: 20170929
...r.load(this.ApePath, Handler.create(this, this.setup)); } private setup(): void { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } private normalizeApe(): void { var originalApe: Sprite = this.createApe(); this.apeTexture = Laya.loader.getRes(this.ApePath); originalApe.x = (Laya.stage.wi...
来源: Laya_示例 发布时间: 20260303
...变数量。 Returns number Methods add add(key: number, value: number): void Defined in laya/d3/core/particleShuriKen/module/GradientDataInt.ts:28 增加整形渐变。 Parameters key: number 生命周期,范围为0到1。 value: number 整形值。 Returns void clone clone(): any Defined in laya...
来源: Laya3.0_api 发布时间: 20231115
...(ApePath, Handler.create(this, setup)); } private function setup(e:*=null):void { normalizeApe(); makeRedApe(); grayingApe(); } private function normalizeApe():void { var originalApe:Sprite = createApe(); apeTexture = Laya.loader.getRes(ApePath); originalApe.x = (Laya.stage.width - apeTexture.width ...
来源: Laya2.0_文档 发布时间: 20210715
...k", this, this.onStageClick); } private createMap(): void { this.tiledMap = new TiledMap(); this.tiledMap.createMap("res/tiledMap/t2.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded),...
来源: Laya_社区 发布时间: 20201230
.../ 游戏开始时有一个食物 this.produceFood(); } private initSnake():void { for (var i:number = 0; i 0) { var prevSeg:Segment = this.segments[this.segments.length - 1]; seg.rotation = prevSeg.rotation; var point:Point = seg.getPinPosition(); seg.x = prevSeg.x - point.x; seg.y = prevSeg.y - poi...
来源: Laya2.0_示例 发布时间: 20260303
...r.load(this.ApePath, Handler.create(this, this.setup)); } private setup(): void { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } private normalizeApe(): void { var originalApe: Sprite = this.createApe(); this.apeTexture = Laya.loader.getRes(this.ApePath); originalApe.x = (Laya.stage.wi...
来源: Laya2.0_示例 发布时间: 20260303
...ode 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node changeText(text:String):void[override] Input clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node contains(node:Node):Boolean 当前容器...
来源: laya_api 发布时间: 20170929
...olor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPos(): void { this.rect.x = Laya.stage.width / 2; this.rect...
来源: Laya_示例 发布时间: 20260303