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

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

981. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 50%]

...,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` ...

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

982. 更新到1.7.6beta之后,HBox有bug [ 50%]

...0); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case...

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

983. 官方DynamicBatchTest照做为什么动态合不了批? [ 50%]

...meraMoveScript);   Laya.Texture2D.load("res/threeDimen/layabox.png", Laya.Handler.create(this, function (tex) { var radius = new Laya.Vector3(0, 0, 1); var radMatrix = new Laya.Matrix4x4(); var circleCount = 50;   var boxMesh = Laya.PrimitiveMesh.createBox(0.02, 0.02, 0.02); var boxMat = new Laya....

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

984. animate 动画播放 怎么把攻击 开火 合起来播放 [ 50%]

...调方法 this.roleAni.loadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //添加到舞台 Laya.stage.addChild(this.roleAni); //创建动画模板dizziness Laya.Animation.createFrames(this.aniUrls("die", 4), "die"); Laya.Animation.cr...

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

985. StaticModel_MeshSample例子运行不起来 [ 50%]

...有没有例子? 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 问题状态 最新活动: 2016-12-01 16:55 浏览: 2147 关注: 2 人

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

986. 图集制作与使用详解(ActionScript-IDE篇(AS3)-使用IDE创作) [ 50%]

...//atlas方式图集使用示例 Laya.loader.load("./res/atlas/test.atlas", Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的...

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

987. laya.resource.Texture_API3.0 [ 50%]

... Parameters url: string Returns boolean load load(url: string, complete?: Handler): Promise<void> Defined in laya/resource/Texture.ts:277 加载指定地址的图片。 Parameters url: string 图片地址。 Optional complete: Handler 加载完成回调 Returns Promise<void> off off(type...

来源: Laya3.0_api 发布时间: 20231115

988. 设置自动竖屏后 打包APP 安装到手机后显示黑屏 不设置自动竖屏又正常 [ 50%]

...夹打包)             Laya.loader.load("res/atlas/gameUI.atlas",Handler.create(this,this.gameStart));                                   } 2018-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

989. 已经进行微信适配,微信小游戏loader加载xml失败,其他类型加载成功,这个要怎么解决? [ 50%]

...018-02-08 14:32 Laya.loader.load("res/config/preloadAssets.xml", Handler.create(this, this.onPreloadConfigLoaded), null, "xml"); 就一行代码,比如这样的,就是load不下来了,你们小游戏里可以load xml的吗 qian • 2018-02-08 14:42 本地文件必须是ASCI...

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

990. 模拟器分辨率问题 [ 50%]

...e的宽高变化了:   printScreenInfo("aaa"); Laya.loader.load(resArr, Handler.create(this, this.onResLoaded, [this.mainuiView, winName, zOrder])); printScreenInfo("bbb"); private onResLoaded(parent:Laya.Node, winName:string, zOrder:number):void {     printScreenInfo("ccc");     this.doOpen(...

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