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

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

3841. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 47%]

...。   想做不同场景之间的切换。 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

3842. Chrome104.0.51112.102版本LayaBox2.13.0启动报错 [ 47%]

...2 @Laya_Yan:改完以后换了个地方报错。throw gl.getProgramInfoLog(this._program); laya.core.js 3565行

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

3843. Uncaught Can not find class EffectAnimation undefined [ 47%]

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

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

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

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

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

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

3846. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 47%]

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

3847. Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug [ 47%]

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

3848. laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 [ 47%]

...如一个叫b1的Button,在该场景下的runtime里已经不能再通过this.b1来获得了,这个时候该怎么获得呢? 另外,如果直接在场景里放个脚本,通过公有属性像Unity一样直接把Button拖进来当做变量可以吗,但我没有尝试成功,最接近的...

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

3849. laya3d 模型换装, 更换网格,更换材质之后,模型出现混乱 [ 47%]

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

3850. APK-update(TypeScript-LayaNative原生服务-LayaNative进阶) [ 47%]

...蔽checkApkUpdate函数,直接打开initEngine函数 */ checkApkUpdate(this); //initEngine(); } ``` ## 2、apk更新流程 更新代码流程如下: 1、程序启动后先通过读取config.ini,读取`IsHandleUpdateAPK`这个变量,如果值为0,代表不自己处理更新流程,直接...

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