大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...。 想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityPlugin 1.1.0导出了 ls 场景文件,在通过Laya.loader.create()预加载后。在3次Laya.Scene.load()后,最后一次 Laya.stage....
来源: Laya_社区 发布时间: 20170615
...2 @Laya_Yan:改完以后换了个地方报错。throw gl.getProgramInfoLog(this._program); laya.core.js 3565行
来源: Laya_社区 发布时间: 20220824
...tBitmapData Cannot find the specified character in all fonts:263c Warning!,this class[MiniAdpter] already exist: Object {init: } 2.0.0编译报错Cannot find global type 'Array' 构建app后导入AS报错Could not find com.android.tools.build:gradle:3.1.2. 问题状态 最新活动: 2019-02-13 11:25...
来源: Laya_社区 发布时间: 20181126
...集使用示例 Laya.loader.load("./res/atlas/test.atlas", Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的图集时,需要...
来源: Laya2.0_文档 发布时间: 20210714
...ded回调方法 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
...00, 500); Laya.stage.addChild(sp2); let r: number = 0 Laya.timer.loop(100, this, () => { if (r >= 360) r = 0; r++; sp.graphics.clear(true); sp.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); sp2.graphics.clear(true); sp2.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); }) 附件 : --> test.zip 2019-0...
来源: Laya_社区 发布时间: 20190701
...public static url: string = "333.json"; private loadedMap; constructor() { this.loadedMap = Laya.Loader["loadedMap"]; Laya.init(720, 1280, Laya.WebGL); Laya.Stat.show(0,0); Laya.stage.alignH = "center"; Laya.stage.alignV = "middle"; Laya.stage.scaleMode = "fixedwidth"; console.log("iswebgl:", Laya...
来源: Laya_社区 发布时间: 20181018
...如一个叫b1的Button,在该场景下的runtime里已经不能再通过this.b1来获得了,这个时候该怎么获得呢? 另外,如果直接在场景里放个脚本,通过公有属性像Unity一样直接把Button拖进来当做变量可以吗,但我没有尝试成功,最接近的...
来源: Laya_社区 发布时间: 20190615
...ianhua0591 • 2018-02-09 17:28 var skinnedMesh:Laya.SkinnedMeshSprite3D = this.role3d.getChildAt(0).getChildAt(0) as Laya.SkinnedMeshSprite3D; skinnedMesh.meshFilter.sharedMesh = Laya.Mesh.load("bin\character\boy\parts\Assets\boy02_idle-2.lm"); Laya_Aaron • 2018-02-09 17:31 你要知道...
来源: Laya_社区 发布时间: 20180209
...蔽checkApkUpdate函数,直接打开initEngine函数 */ checkApkUpdate(this); //initEngine(); } ``` ## 2、apk更新流程 更新代码流程如下: 1、程序启动后先通过读取config.ini,读取`IsHandleUpdateAPK`这个变量,如果值为0,代表不自己处理更新流程,直接...
来源: Laya2.0_文档 发布时间: 20210715