大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0110 秒)
...L.createObjectURL(blob); Laya.loader.load(url, Handler.create(t, t.onComplete, [params]), null, Loader.IMAGE); 来将二进制文件中的图片文件数据转成Texture。 但目前在尝试将项目转native,想问下native中如何将获取的二进制图片文...
来源: Laya_社区 发布时间: 20190924
...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
...his.uFace 是 laya.ui.Image this.uFace.loadImage(data.face, 0, 0, 50, 50, Handler.create(this, graphicsImg)) function graphicsImg() { //创建遮罩对象 var cMask = new Laya.Sprite(); //画一个圆形的遮罩区域 cMask.graphics.drawCircle(25, 25, 25, "#ff0000"); //圆形所在的位置坐标 ...
来源: Laya_社区 发布时间: 20181214
... { Laya.loader.load(picAy[i],Handler.create(this, onAssetLoaded)) } } private function onAssetLoaded(texture:Texture):void { var ape:Sprite = new Sprite; ...
来源: Laya_社区 发布时间: 20161023
... at http://127.0.0.1:53462/game/code.js:97630:17 at Laya.loader.load.Handler.create (http://127.0.0.1:53462/game/code.js:102231:13) at Handler.__proto.runWith (http://127.0.0.1:53462/game/code.js:711:59) 查看了应该是微信自带的浏览器内核不支持Function.apply 2018-03-0...
来源: Laya_社区 发布时间: 20180302
...r3(-15, 0, 0), true, false); Laya.Sprite3D.load( "res/test_mesh2.lh", Laya.Handler.create(this, function (sprite: Laya.Sprite3D): void { var clonesprite: Laya.Sprite3D = sprite.clone() as Laya.Sprite3D; scene.addChild(clonesprite) as Laya.Sprite3D; clonesprite.transform.localScale = new Laya.Vector3...
来源: Laya_社区 发布时间: 20220721
...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
...,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```typescript //创建一个Animation实例 var tl:Laya.Animation = new Laya.Animation(); //加载动画文件 tl.loadAnimation("Ti...
来源: Laya2.0_文档 发布时间: 20210715
...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
...x.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandler():void{ var url:string = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个...
来源: Laya2.0_文档 发布时间: 20210715