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

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

701. zip更新 · LayaAir3.4 · 引擎文档 · LAYABOX [ 42%]

...因为需要在内存中解开,太大了会直接导致崩溃。 */ setSrc(src:string):boolean; /** * 遍历zip中的文件。 * id: * name:文件名,包含路径 * dir:是否是 * sz:文件大小 */ forEach(func:(id:number,name:string,dir:boolean,sz:number)=>void):void; /** * 不要用。 */...

来源: Laya3.0_文档 发布时间: 20251010

702. 打包微信小游戏报错 ReferenceError: Matter is not defined [ 42%]

...c端正常运行,matter.js是直接用 <script type="text/javascript" src='matter.js' loader='laya'></script> 引入 打包后在微信开发者工具打开报错:Matter is not defined, 在game.js里面添加了 let matter = require("matter.js"); window.Matter = matter; 但是还...

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

703. 自定义场景继承导出,会在自定义类中加入Laya.前缀导致layaMaxUI文件报错 [ 42%]

...缀', function(){          var layaMaxUI_Path = workSpaceDir + "/src/ui/layaMaxUI.ts"     let fileContent = readFile(layaMaxUI_Path);     console.log("读取文件",fileContent)     if (fileContent ) {             fileContent = fileContent.replace(/Laya\.UICodeView/g,...

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

704. Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的定义!这是为什么? 已上传 Demo 附件 [ 42%]

...运行时 找不到类的定义!这是为什么? 已上传 Demo 附件 src/kbe_scripts/ 下面的命名空间类文件不编译,运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!这是为什么?导致运行时 找不到类的定义!   Bianyi.zip 老版...

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

705. laya.d3.core.material.PBRSpecularMaterial [ 42%]

...terial  blendDst : int 获取混合目标。 PBRSpecularMaterial  blendSrc : int 获取混合源。 PBRSpecularMaterial  cull : int 获取剔除方式。 PBRSpecularMaterial  depthTest : int 获取深度测试方式。 PBRSpecularMaterial  depthWrite : Boolean 获取是否写入深度。 P...

来源: Laya2.0_api 发布时间: 20190513

706. Android真机调试JavaScript(TypeScript-LayaNative原生服务-LayaNative基础文档) [ 42%]

... 使用Android Studio打开构建后的工程。 打开android_studio/app/src/main/assets/config.ini,修改JSDebugMode的值,设置需要的调试模式。如图1: ![](img/android_debugmode.png) 图1 JSDebugMode的取值和含义如下: |取值|含义| |:--:|:--:| |0|关闭调试功能| |1|Deb...

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

707. socket大型项目回调 [ 41%]

...ay.slice(i * chunk)); return res; } public static copyArray(dest, doffset, src, soffset, length) { if ('function' === typeof src.copy) { // Buffer src.copy(dest, doffset, soffset, soffset + length); } else { // Uint8Array for (var index = 0; index < length; index++) { dest[doffset++] = src[soffse...

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

708. laya可以转换flash补间动画成h5动画吗? [ 41%]

...涉及到链接类,需要将你的链接类提取出来放置到项目的src目录下。    参考:private function init(e:Event=null):void { var loader:Loader=new Loader(); var context:LoaderContext=new LoaderContext(false,ApplicationDomain.currentDomain); loader.contentLoaderInfo.addEventLis...

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

709. laya.d3.core.material.PBRStandardMaterial [ 41%]

...terial  blendDst : int 获取混合目标。 PBRStandardMaterial  blendSrc : int 获取混合源。 PBRStandardMaterial  cull : int 获取剔除方式。 PBRStandardMaterial  depthTest : int 获取深度测试方式。 PBRStandardMaterial  depthWrite : Boolean 获取是否写入深度。 P...

来源: Laya2.0_api 发布时间: 20190513

710. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 41%]

...UI   在IDE界面按`F12`发布制作遮罩效果的UI页面,会在`src/ui`目录下生成UI类,如图9所示。 ![图9](img/9.png) (图9) ### 4.2 使用IDE生成的类与图集,实现遮罩效果   按F9 在引擎预览设置启动场景为maskDemoUI,![图9](img/10.png) 主类...

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