• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0110 秒)

381. native项目中如何将图片文件的二进制数据转成 Texture? [ 55%]

...L.createObjectURL(blob);                 Laya.loader.load(url, Handler.create(t, t.onComplete, [params]), null, Loader.IMAGE);   来将二进制文件中的图片文件数据转成Texture。   但目前在尝试将项目转native,想问下native中如何将获取的二进制图片文...

来源: Laya_社区 发布时间: 20190924

382. Cannot read property 'rayCast' of undefined [ 55%]

...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

383. 微信web H5 加载微信头像的时候 有些能显示有些不行 [ 55%]

...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

384. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 55%]

...           {                 Laya.loader.load(picAy[i],Handler.create(this, onAssetLoaded))             }         }         private function onAssetLoaded(texture:Texture):void         {             var ape:Sprite = new Sprite;          ...

来源: Laya_社区 发布时间: 20161023

385. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 55%]

... 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

386. ios微信clone特效会导致特效的mesh无法显示 [ 55%]

...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

387. LayaAir原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 55%]

...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

388. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 55%]

...,执行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

389. 修改position与修改localPosition结果不一致(同处于3d场景下的两个节点) [ 55%]

...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

390. LayaAir原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 55%]

...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