大约有 698 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0052 秒)
Laya_社区(286) Laya3.0_api(156) laya_api(106) Laya2.0_api(98) Laya2.0_文档(24) Laya_示例(16) Laya3.0_文档(8) Laya2.0_示例(4)
...ocal hasListener localToGlobal lookAt objLookat off offAll offAllCaller on once rotate rotationTo setWorldLossyScale toDir toLocalNormal translate Constructors constructor new NativeTransform3D(owner: Sprite3D): NativeTransform3D Overrides Transform3D.__constructor Defined in laya/d3/RenderObjs/Nati...
来源: Laya3.0_api 发布时间: 20231115
...数(行为),最多执行6次 for(let i = 0; i < 6; i++){ Laya.timer.once(i * 1000, this, this.b, [i], false); } //遇到一些需求变化,我希望在2s之后(可能其它某些触发情况), 停止执行 b 函数(行为) Laya.timer.once(2000,this,()=>{ Laya.timer.clear(this, this.b);...
来源: Laya_社区 发布时间: 20200819
...ite3D.load("../../res/threeDimen/skinModel/Zombie/new/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { //获取Animator动画组件 zombieAnimator = zombie.getChildAt(0).getComponentByType(Laya.Animator); loadUI(); }); function loadUI() { var clipName = ["walk","attack","le...
来源: Laya_示例 发布时间: 20250312
...信息 var req:HttpRequest = new HttpRequest(); req.once(Event.COMPLETE, this, function():void { trace(req.data); }); req.once(Event.ERROR, this, function():void { ...
来源: Laya_社区 发布时间: 20170120
... public function init(){ var s:sprite = create_a_big_sprite(); Laya.timer.once(250,this,function():void{ GameUtil.createTexture(s,onTexture2DReady,this); }); } public function onTexture2DReady(t:Texture2D):void { //todo } 你会发现我用了一个 Laya.timer.once ,如果你的对象不大,也...
来源: Laya_社区 发布时间: 20170718
...aya.Quaternion(0.7071068, 0, 0, -0.7071067); teapot2.meshFilter.sharedMesh.once(Laya.Event.LOADED, this, function () { var material = teapot2.meshRender.material; //反射贴图 material.reflectTexture = textureCube; }); Laya.timer.frameLoop(1, this, function () { teapot1.transform.rotate(this.rotat...
来源: Laya_示例 发布时间: 20250312
...ne.load("../../res/threeDimen/scene/PBRMaterialScene/Showcase.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); ...
来源: Laya_示例 发布时间: 20250312
...新建一个data.txt文件 //设置完成事件,添加回调方法 http.once(Laya.Event.COMPLETE, this, this.completeHandler); //设置错误事件,添加回调方法 http.once(Laya.Event.ERROR, this, this.errorHandler); //设置进度事件,添加回调方法 http.on(Laya.Event.PROGRESS, this...
来源: Laya3.0_文档 发布时间: 20250104
...,为啥还连不上, 看代码-> this.hr=new HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.ERROR, this, this.onHttpRequestError); this.hr.send("http://www.baidu.c...
来源: Laya_社区 发布时间: 20151028
...ter clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt re...
来源: Laya3.0_api 发布时间: 20231102