大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0087 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...aya.timer.frameLoop(1, this, this.gameLoop); } private createCharacters(): void { var char: Character; var charSkin: Array; for (var i: number = 0; i = 0; i--) { this.characters[i].update(); } if (Laya.timer.currFrame % 60 === 0) { this.text.text = Stat.FPS.toString(); } } } class Character extends ...
来源: Laya_示例 发布时间: 20260303
...now:number,speed:number)=>boolean,oncomp:(curlret:number, httpret:number)=>void, trynum:number, opttimeout:number)=>void; ``` * 处理zip文件的ZipFile类 ```javascript interface ZipFile{ setSrc(src:string):boolean; /** * 遍历zip中的文件。 * id: * name:文件名,包含路径 * dir:是否...
来源: Laya2.0_文档 发布时间: 20210714
...d By PixelLineMaterial()PixelLineMaterial _addReference(count:int = 1):void[override] BaseMaterial _parse(data:*, propertyParams:Object = null, constructParams:Array = null):BaseMaterial[static] BaseMaterial _removeReference(count:int = 1):void[override] BaseMaterial clone():* 克隆。 BaseM...
来源: Laya2.0_api 发布时间: 20190513
...osition0:Vector3, velocity0:Vector3, position1:Vector3, velocity1:Vector3):void 初始化插值所需信息。 SplineCurvePositionVelocity Slerp(t:Number, out:Vector3):void 初始化插值所需信息。 SplineCurvePositionVelocityConstructor DetailSplineCurvePositionVelocity()Constructorpublic f...
来源: laya_api 发布时间: 20170929
...le来缓存二进制文件,逻辑如下: public Request(url:string):void { console.log("url: " + url); if (Laya.Browser.onMiniGame) { var args = {url:url, handler:null}; var handler = Laya.Handler.create(this, this.OnDownloadFileInWxOk, [args], false); args.handler = handler; Laya.MiniAdpter....
来源: Laya_社区 发布时间: 20180604
...ailRenderer _renderUpdate(state:RenderContext3D, transform:Transform3D):void[override] TrailRenderer _renderUpdateWithCamera(context:RenderContext3D, transform:Transform3D):void[override] TrailRenderer event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher hasListener(type...
来源: Laya2.0_api 发布时间: 20190513
...例化BVHSpatialManager Returns BVHSpatialManager Methods clear clear(): void Defined in laya/d3/core/scene/bvh/SpatialManager.ts:29 clear Returns void destroy destroy(): void Defined in laya/d3/core/scene/bvh/SpatialManager.ts:37 destroy Returns void Globals "laya/d3/core/scene/bvh/SpatialManager" ...
来源: Laya3.0_api 发布时间: 20231115
...可能直接越过 */ public onTriggerEnter(other:Laya.PhysicsComponent):void { ((this.owner as Laya.MeshSprite3D).meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = new Laya.Vector4(0.0, 1.0, 0.0, 1.0); } /** * 当其他碰撞器进入绑定物体碰撞器后逐帧触发(子弹在...
来源: Laya2.0_文档 发布时间: 20210715
...有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.clip.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); // 位置 this.clip.skin = "atlas/comp/clip_num.png"; // 皮肤 this.clip.interval = 1000; // 切片动画的播放时间间隔1000毫秒 this.c...
来源: Laya3.0_文档 发布时间: 20251010
...ode 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = nu...
来源: Laya2.0_api 发布时间: 20190513