大约有 291 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0038 秒)
Laya_社区(200) Laya2.0_文档(46) Laya3.0_api(16) Laya3.0_文档(10) Laya2.0_api(6) Laya_示例(6) laya_api(4) Laya2.0_示例(3)
...() { super(); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //加载场景文件 this.loadScene("test/TestScene.scene"); } onEnable() { this.loadActor(this.actor1,...
来源: Laya_社区 发布时间: 20190730
...trace(res); callBack != null && callBack.runWith([0]); TipsManager.instance.showText("保存图片成功,请到相册里查看!"); },fail:function(res:*):void{ trace("-----------saveImageToPhotosAlbum----------fail----------"); trace(res); callBack != null && callBack.runWith([1]);...
来源: Laya_社区 发布时间: 20180830
...务器上的H5,播放具有中文名的音乐时报错 Native下LayaGL.instance无法获取 HtmlDivElement宽度设置错误 Native 在iOS上支付失败的问题,及临时解决方法 native下字体模糊 HTMLDivElement 文本内容会重叠? 微信开发者工具不支持HTMLDivElement组...
来源: Laya_社区 发布时间: 20180803
...emo的代码去实现摇一摇,但是最重程序跑不起来,在Shake.instance.start这一块停下来了, 我试了打印Shake这个变量,发现这个变量的undefined。 求大神帮忙解决 附件 : --> 2017-03-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20170318
....0.0 beta2版本加载3D场景报错:Cannot enlarge memory arrays. ANGLE_instanced_arrays扩展无用时,PrimitiveMesh动态合并报错 问题状态 最新活动: 2019-11-12 09:14 浏览: 2785 关注: 2 人
来源: Laya_社区 发布时间: 20191108
...复用没关系,如果想复用,可以通过设置对象的renderType=instance即可 2019-01-14 0 0 分享 微博 QZONE 微信 看着 赞同来自: onUpdate也有问题,我在开发的时候用onUpdate会感觉到有卡顿,但是改用frameLoop就解决了,感觉onUpdate并没有每帧都...
来源: Laya_社区 发布时间: 20190104
...dEventListener('deviceorientation', function(event) {}) Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); 连接打开方式都由微信扫一扫打开,safari不支持此demo运行 查找到资料地址: https://caniuse.com/#search=deviceorientation ios测试微...
来源: Laya_社区 发布时间: 20191202
...{ //从屏幕空间生成射线 this.point.elements[0] = Laya.MouseManager.instance.mouseX; this.point.elements[1] = Laya.MouseManager.instance.mouseY; this.camera.viewportPointToRay(this.point, this.ray); //射线检测获取所有检测碰撞到的物体 Laya.Physics.rayCastAll(this.ray, this._o...
来源: Laya_社区 发布时间: 20180820
...导出时报错: NullReferenceException: Object reference not set to an instance of an object r.a (UnityEngine.SkinnedMeshRenderer A_0, System.String A_1, Boolean A_2) r.b () r.b (System.String A_0) LayaAir3D.exportResource (Boolean isDebug, Int32 Platformindex, System.String lastname) LayaAir3D.E...
来源: Laya_社区 发布时间: 20180403
...置单例的引用方式,方便其他类引用 GameMain.instance = this; //加载场景文件 this.loadScene("main_scene.scene"); } setup(){ Laya.SoundManager.playMusic("music/d1.mp3", 1, new Laya.Handler...
来源: Laya_社区 发布时间: 20200925