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

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

2901. 如何通过一个类名获取一个类的对象 [ 55%]

... xfx7788 赞同来自: 好像注册了也不行getClass返回的是一个function不是实例 2017-09-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 132*****180 相关问题 两个对象new了一个相同的对象,调用第一个的...

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

2902. drawToCanvas无法释放内存 [ 55%]

drawToCanvas无法释放内存 Laya.stage.frameLoop(1, this, ZX);function ZX():void{ var tex:Texture=new Texture(sp.drawToCanvas(sp.width,sp.height,0,0))             sp.graphics.clear()             sp.graphics.destroy()             tex.destroy()         ...

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

2903. 微信小游戏图集接口sendAtlasToOpenDataContext报错。 [ 55%]

...:VM1049:1 gameThirdScriptError undefined;at api request success callback function undefined Charles • 2018-09-03 09:54 而且我看sendAtlasToOpenDataContext这个方法并没有处理纹理的程序在啊,只有处理json或者atlas的程序。

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

2904. 关于接口实现问题 [ 55%]

...有,那接口的作用是什么呢? interface(name:String, superClass:Function):void [static] JS中定义接口。如 Laya.interface("a.b.myinterface", null); Laya.interface("a.b.myInterface2", BaseInterface); imps(prototypeChain:*, superInterfaces:Object):void [static] JS中实现接口。如...

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

2905. 更新到2.2.0beta4后HTMLDivElement报错 [ 55%]

... btCollisionObject undefined 导微信小程序报错window.focus is not a function HTMLDivElement 2.0 排版问题 官网示例摇一摇报错,就解决方案 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 问题状态 最新活动: 2019-09-03 16:40 浏览: 800 关注:...

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

2906. destroy 报错问题求解 [ 55%]

...romise) DOMException: play() 导微信小程序报错window.focus is not a function 启动引擎报错 mPlugin.game_plugin_init(3); 真机调试报错:LayaPlayer不支持的标签</SCRIPT> runtime运行报错! 本地调试加载本地图片都报错 问题状态 最新活动: 2017-07-06 13...

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

2907. laya.d3.core.pixelline.PixelLineData_API3.0 [ 55%]

...ndPosition startColor startPosition cloneTo Legend Object literal Variable Function Type alias Class Class with type parameter Property Method Enumeration Interface

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

2908. 关于laya无法缓存非图片、声音文件bug [ 55%]

...}; } MiniFileMgr.fs.readdir({ dirPath: MiniFileMgr.fileNativeDir, success: function (data) { var tempMd5ListObj = {}; var fileObj; for (let key in MiniFileMgr.filesListObj) { if (key != "fileUsedSize") { fileObj = MiniFileMgr.filesListObj[key]; tempMd5ListObj[fileObj.md5] = true; } } var files = dat...

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

2909. 封装类的时候 怎么在类中表示自身? [ 55%]

...class BackGround extends Laya.Sprite{ constructor() { super(); new init(); function init() { var bg1 = new Laya.Sprite(); var bg2 = new Laya.Sprite(); //背景图 // box.loadImage("../bin/background.png"); // Laya.stage.addChild(box); bg1.loadImage("../bin/background.png"); this.addChild(bg1); bg2.l...

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

2910. laya.d3.math.RandX_API3.0 [ 55%]

...dX constructor defaultRand random randomint Legend Object literal Variable Function Type alias Class Class with type parameter Constructor Method Enumeration Interface Static property

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