大约有 2,727 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0070 秒)
Laya_社区(1131) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya2.0_示例(109) Laya3.0_文档(86)
...后自动移除。 EventDispatcher start(throushold:int, interval:int):void 开始响应设备摇晃。 Shake stop():void 停止响应设备摇晃。 ShakeProperty Detailinstancepropertyinstance:Shake [read-only] Implementation public static function get instance():ShakeConstructor ...
来源: laya_api 发布时间: 20170929
...tNodeByIndex Accessors count get count(): number set count(value: number): void Defined in laya/components/KeyframeNodeList2D.ts:8 节点个数。 Returns number Defined in laya/components/KeyframeNodeList2D.ts:11 节点个数。 Parameters value: number Returns void Methods getNodeByIndex getNodeBy...
来源: Laya3.0_api 发布时间: 20231115
...his.apePath, Handler.create(this, this.createApe)); } private createApe(): void { // 添加一只猩猩 this.ape = new Sprite(); this.ape.loadImage(this.apePath); var texture: Texture = Laya.loader.getRes(this.apePath); this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.pos(Laya.stage.w...
来源: Laya2.0_示例 发布时间: 20241119
...pharse(data:*, propertyParams:Object = null, constructParams:Array = null):void[static] 异步回调 TerrainHeightData load(url:String, complete:Handler, widht:int, height:int, bitType:int, value:Number):void[static] 加载地形高度模板,注意:不缓存。 TerrainHeightDataProperty Detail_bi...
来源: Laya2.0_api 发布时间: 20190513
...asticBackTime:int, data:*, disableMouseEvent:Boolean, ratio:Number = 0.92):void 开始拖拽。 Dragging stop():void 停止拖拽。 DraggingProperty Detailareapropertypublic var area:Rectangle 滑动范围。dataproperty public var data:Object 事件携带数据。elasticBackTimeproperty publi...
来源: laya_api 发布时间: 20170422
...Dome() 创建一个 SkyBox 实例。 SkyDome _render(state:RenderState):void[override] SkyDome loadEnvInfo(envInfo:String):voidSkyDome onEnvDescLoaded(envInfoFile:String):voidSkyDomePublic Constants Hide Inherited Public Constants Show Inherited Public Constants ConstantDefined By ALPHABL...
来源: 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...
来源: Laya2.0_文档 发布时间: 20210715
.../ 游戏开始时有一个食物 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...
来源: Laya_示例 发布时间: 20241119
...traint:Constraint3D, disableCollisionsBetweenLinkedBodies:Boolean = false):void 添加刚体运动的约束条件。 PhysicsSimulation clearForces():void 清除力。 PhysicsSimulation createConstraint():void[static] 创建限制刚体运动的约束条件。 PhysicsSimulation rayCast(ray:R...
来源: Laya2.0_api 发布时间: 20190513
...er.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { createList(); createItems(); createLoading(); _list.addChild(_loadingBg); Laya.stage.addChild(_list); } protected function createList():void { _list = new List(); _list.itemRender = RecordItem; _list.repeatX = 1; _list...
来源: Laya_社区 发布时间: 20170323