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

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

761. hBox使用问题 [ 58%]

hBox使用问题 Laya.loader.load(picAy,Handler.create(this, onAssetLoaded)) private function onAssetLoaded():void { for(var i:int=0;i<picAy.length;i++) { var texture:Texture= Loader.getRes(picAy); var ape:Sprite = new Sprite; //ape.x=i*(stageWidth/4) //Tween.to(ape, { x : i*(stageWidth/4) },150...

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

762. graphics绘制报错 [ 58%]

...WebGL); const path = "./res/apes/monkey2.png"; Laya.loader.load(path, Laya.Handler.create(this, function() { let tex = Laya.loader.getRes(path); let sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.graphics.drawTriangles( tex, 100, 0, new Float32Array([0,0,1,0,1,1,0,1]), new Float32Array([0,0,1,0...

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

763. Panel使用文档(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 58%]

...pt package { import laya.ui.Image; import laya.ui.Panel; import laya.utils.Handler; public class PanelTest { public function PanelTest() { //初始化引擎 Laya.init(800,600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded...

来源: Laya2.0_文档 发布时间: 20210715

764. LayaAir2.1.0加载unity的场景必须在游戏初始化加载吗,延迟一帧都不行,不然报异常 [ 58%]

...his,()=> { Laya.Scene3D.load('LayaScene_Main/Conventional/Main.ls',Laya.Handler.create(this,(scene:Laya.Scene3D)=> { Laya.stage.addChild(scene);   })); }); }   这样的加载一定包异常,不延时直接在构造函数里,执行加载没问题 2019-07-19 0 0 分享 微博 QZONE 微信...

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

765. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 58%]

...men/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071...

来源: Laya2.0_文档 发布时间: 20210715

766. UI图片资源不显示 [ 58%]

...载到 Laya.loader.load([{url: "res/atlas/**.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); 像这样加载一下,再打开界面 2017-02-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 lucybaba 相关问题 请问Laya...

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

767. 设置相机的skyboxMaterial无效 [ 58%]

...LAG_SKY; //天空盒 Laya.BaseMaterial.load("res/skyBox/skyBox.lmat", Laya.Handler.create(null, function (mat) { camera.skyboxMaterial = mat; // Laya.timer.frameLoop(1, this, function () { // mat.rotation += 0.1; // }); })); skyBox.zip 2018-10-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 ...

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

768. 和原生Dom交互 · LayaAir3.4 · 引擎文档 · LAYABOX [ 58%]

...x.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); 编译运行上面的代码,然后点击舞台可以看到,二维码已经显示到了舞台上,可以用手机扫下,发现手机已经...

来源: Laya3.0_文档 发布时间: 20251010

769. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 58%]

...oader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢

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

770. 关于大量图片加载绘制后的内存暴增的疑问 [ 58%]

...e; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class Demo { private var num:Number=0;//加载图片的个数 private var sp:Sprite;//显示图片的显示对象容器 private var texture:Texture;//预加载...

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