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

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

3341. 如何在游戏入口处获取对象的子对象 [ 49%]

...ar Sprite = Laya.Sprite; var MapLayer = Laya.MapLayer; var loadMap = (function (_super) { function loadMap() { loadMap.super(this); } Laya.class(loadMap,"loadMap",_super); var _proto = loadMap.prototype; _proto.init = function() { this.num = ""; this.map = new TiledMap(); } _proto.showMap = function...

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

3342. FRAME_SLOW及FRAME_MOUSE模式下切换场景有时会导致渲染崩溃 [ 49%]

...不到类的定义!这是为什么? 已上传 Demo 附件 关于近期iOS提交,因违反苹果3.1.1导致APP上架被拒的说明 laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined laya2的Scene默认是文件模式,不会生成场景类了...

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

3343. [LayaAir3]小游戏在taptap安卓平台getImageData兼容性问题 [ 49%]

...题原因 Android 环境下的 getImageData 兼容性问题。 在 PC 或 iOS 的浏览器/WebView 中,ctx.getImageData(sx, sy, sw, sh) 的 sw (宽度) 和 sh (高度) 参数如果包含小数(浮点数),浏览器通常会自动取整处理。 但是,在部分 Android 机型 或特定的 M...

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

3344. 图片遮罩大小跟设置不一致 [ 49%]

图片遮罩大小跟设置不一致 (function() { var Sprite  = Laya.Sprite; var Stage   = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL   = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.client...

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

3345. MissingMethodException: Method not found: 'UnityEngine.LightmapData.get_lightmapColor'. [ 49%]

MissingMethodException: Method not found: 'UnityEngine.LightmapData.get_lightmapColor'. MissingMethodException: Method not found: 'UnityEngine.LightmapData.get_lightmapColor'. LayaExport.DataManager.getSceneNode () LayaExport.DataManager.saveData () LayaExport.DataManager.getData () LayaAir3D.expor...

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

3346. Starling屏幕适配问题 [ 49%]

...以使用Capabilities类,如下 var hh:int = Capabilities.screenResolutionY;// 指定屏幕的最大垂直分辨率。 var ww:int = Capabilities.screenResolutionX;//指定屏幕的最大水平分辨率。 2015-11-02 0 4 分享 微博 QZONE 微信 haliluya 赞同来自:  (1)Starling是一个...

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

3347. 2.4.0bate IDE layaair2-cmd 安装错误求解 [ 49%]

...pData\Roaming\npm\node_modules\layaair2-cmd\layaair2-cmd.js'     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)     at Function.Module._load (internal/modules/cjs/loader.js:562:25)     at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)     at star...

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

3348. LayaFlash安装和部署 [ 49%]

...行编译、运行时报错查看以及代码调试。   Windows平台和IOS平台的安装部署方法一致,以下是详细内容。 1.下载所需软件及AS3相关的开发环境   http://www.layabox.com/html/product/   下载所需版本LayaFlashIDE 2.准备工作   在开始使用Lay...

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

3349. Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 [ 49%]

...er.load(this.skPath.replace(".atlas",".png"),Laya.Handler.create(this,function(bit){                 var arr = Laya.Loader.getAtlas(this.skPath);                 arr.forEach(resUrl=>{                     var tex = Laya.Loader.getRes(resUrl) as Laya...

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

3350. 修改了Scene下的WebGL参数导致渲染3D对象出现局部透明 [ 49%]

...ogram); this.gl.bindBuffer(Laya.WebGLContext.ARRAY_BUFFER, this.vertexPositionBuffer); this.gl.enableVertexAttribArray(this.vertexPositionAttribute); this.gl.vertexAttribPointer( this.vertexPositionAttribute, this.vertexPositionBuffer.itemSize, Laya.WebGLContext.FLOAT, false, 0, 0 ); this.gl.bindBuf...

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