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

大约有 730 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0046 秒)

681. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 42%]

...UI   在IDE界面按`F12`发布制作遮罩效果的UI页面,会在`src/ui`目录下生成UI类,以及`bin/h5/res/atlas`目录下的图集文件,如图9所示。 ![图9](img/9.jpg) (图9) ### 4.2 使用IDE生成的类与图集,实现遮罩效果   创建一个入口类`Main.as`...

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

682. layaUI.max.all.js 这个文件怎么生成的? [ 42%]

...代码模式后自动生成的对应界面的UI类,在js或ts项目里的src/ui路径下(自动生成的),AS下的命名是xxxUI.as, 2017-03-30 1 0 分享 微博 QZONE 微信 kongbu0621 赞同来自: 谢谢,搞定 2017-03-31 0 0 分享 微博 QZONE 微信 1577783847用户 赞同来自: l...

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

683. 关于适配模式 Laya.Stage.SCALE_FIXED_AUTO [ 42%]

...tml中添加了一张logo图片具体如下: <img id="logo" src="res/loading/logo.png" style="position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)"> 然后进入游戏逻辑后我又在stage上添加了同样路径下的同一张图片,我想让...

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

684. zip更新 · LayaAir3.3 · 引擎文档 · 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_文档 发布时间: 20250103

685. 打包微信小游戏报错 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

686. 自定义场景继承导出,会在自定义类中加入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

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

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

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

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

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

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

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

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