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

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

861. 动画-旧版骨骼动画 [ 83%]

...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

862. laya.d3.utils.Physics [ 83%]

... 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

863. 滤镜-颜色滤镜 [ 83%]

...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

864. laya.d3.core.particleshuriken.module.GradientDataInt_API3.0 [ 83%]

...变数量。 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

865. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 83%]

...(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

866. 加载TiledMap 不显示 [ 83%]

...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

867. 输入设备-贪吃蛇(重力感应) [ 83%]

.../ 游戏开始时有一个食物 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

868. 滤镜-颜色滤镜 [ 83%]

...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

869. laya.display.Input [ 83%]

...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

870. 屏幕适配-缩放-No Scale [ 83%]

...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