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

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

341. 鼠标穿透问题 [ 60%]

...e { import laya.display.Sprite; import laya.display.Stage; import laya.net.Loader; import laya.ui.Image; import laya.ui.List; import laya.utils.Handler; import laya.webgl.WebGL; public class Bootstrapper extends Sprite { protected var _list:List; protected var _items:Array; protected var _loadingBg:...

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

342. wasm加载 [ 59%]

...取。 另外,我发现用XMLHttpRequest也可以拉取,就是LayaLoader对象,把资源类型设置成ArrayBuffer就行了。 回调回来初始化WebAssembly就可以调用。 2019-08-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

343. 微信小程序项目中xml无法加载和解析 [ 59%]

...析xml,将项目放入微信小游戏后会报错 代码如下: Laya.loader.load([{url: "lang.xml", type: Loader.XML}]); 错误如下: gameThirdScriptError undefined;at api readFile success callback function undefined 经调试,原因就是加载了xml,去掉该行就不会报错。 同时...

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

344. js有history.back(-1),返回到上个界面的用法吗 [ 59%]

...以找到? 关于几种文本的区别与用法 Laya.URL.basePath与Laya.loader.load用法 Animation用法疑问 const 用法 能否恢复Animation.getGraphicBounds在1.6时的用法 Laya.Pool用法 DialogUI,在内部按钮监听事件没效果是引擎设定?还是我用法错误? timeline...

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

345. laya3.0中jszip使用异常 [ 59%]

...代码为: let zipUrl = "resources/files/config.zip";         Laya.loader.load([{ url: zipUrl, type: Laya.Loader.BUFFER }], null, Laya.Handler.create(this, this.onLoadCfg, null, false)).then(             (value) => {                 JSZip.loadAsync(value).then(           ...

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

346. VBOX动态增加的元素没有自动布局 [ 59%]

... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; class TestUI extends ui.test.TestPageUI { constructor() { super(); var btn1=new ui.test.view_btnUI(); var btn1_btn:laya.ui.Button=btn1.getChildByName("btn") as laya.ui.Button; //问题一: 这里...

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

347. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 59%]

...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(Res,Handler.create(this,graphicsImg)); })(); function graphicsImg() { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.sta...

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

348. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 58%]

...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),1...

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

349. MeshSprite3D.meshRender.boundingBox的用法 [ 58%]

...关于遮罩的用法,在哪块可以找到? Laya.URL.basePath与Laya.loader.load用法 const 用法 关于几种文本的区别与用法 能否恢复Animation.getGraphicBounds在1.6时的用法 Matrix4x4的decompose函数用法 clearRes好像没作用,或许我的用法不对 关于__JS__的...

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

350. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 58%]

...JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onCompl...

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