大约有 1,138 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0058 秒)
Laya_社区(821) Laya2.0_文档(173) Laya_示例(51) Laya2.0_示例(43) Laya3.0_api(23) Laya3.0_文档(20) Laya2.0_api(4) laya_api(3)
...ayabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); function clickHandler(){ var url = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获取...
来源: Laya2.0_文档 发布时间: 20210714
...new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); //测试遮挡剔除 material.cull = 0 box.meshRenderer.material = material; let res1 = Laya.Sprite3D.instantiate(box); let res2 = Lay...
来源: Laya_社区 发布时间: 20190717
...ultFont = "36px Arial"; Laya.loader.load("data/Questv1_Regular.ttf", Handler.create(this,onLoaded), null, Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("data/Questv1_Regular.ttf"); if(arr && Browser.window.conch) { Browser.window.conc...
来源: Laya_社区 发布时间: 20180705
...件由发布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); ....... ``` 在GameUI中使用我们的自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D...
来源: Laya2.0_文档 发布时间: 20210715
...Info.onLoaded (http://127.0.0.1:59022/game/code.js:12995:61) at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:711:59) at ResInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:131...
来源: Laya_社区 发布时间: 20180317
...ng'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let button = new Laya.Button(sk...
来源: Laya_社区 发布时间: 20170511
...ading.json", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded1)); 我使用这种方法加载图集,加载完就800m,所以就一直在找优化方法,在app端没有这么高 zwy363 • 2018-01-22 10:58 那如果不行,只能不要一次加载...
来源: Laya_社区 发布时间: 20180120
...ge.bgColor="#fffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Handler.create(this,completeLoad),null,Loader.ATLAS); } public function completeLoad():void { //原始位图 createImg(200,50); //红色滤镜 createRedFilter(); //创建发光滤镜位图**/ createGlowFilter(); //创建阴...
来源: Laya_社区 发布时间: 20170811
...p/28.jpg", "res/img/map/29.jpg", ]; Laya.loader.load(this.skins,laya.utils.Handler.create(this, this.LoadSuccess,null,false)); } private LoadSuccess() { ViewManager.getInstance().CreateView(contant.loginId,new LoginView()); ViewManager.getInstance().ShowView(contant.loginId); } public SwictMap(index...
来源: Laya_社区 发布时间: 20171124
...ite3D.load("res/scene/LayaScene_webgl_sky/Conventional/webgl_sky.lh", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=this.scene.addChild(layaMonkey); // Laya.timer.frameLoop(1, this, this.onFrameL...
来源: Laya_社区 发布时间: 20200903