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

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

11. 自定义3D Shader · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...示例代码如下: #defineGLSL unlitVS #define SHADER_NAME UnlitShader #include "Math.glsl"; #include "Scene.glsl"; #include "SceneFogInput.glsl"; #include "Camera.glsl"; #include "Sprite3DVertex.glsl"; #include "VertexCommon.glsl"; #ifdef UV varying vec2 v_Texcoord0; #endif // UV #ifdef COLOR va...

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

12. 如何使用vscode编译laya项目 [ 74%]

...cks on the code tsconfigOverride:{compilerOptions:{removeComments: true}}, include:/.*.ts/, }),3、compile.js 完整代码如下 // v1.2.2 //获取Node插件和工作路径 [b]let ideModuleDir; let workSpaceDir; for(var argv of process.argv) { if(argv.indexOf("--cwd=") == 0) { ideModuleDir = argv.sp...

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

13. fatal error: 'string' file not found [ 72%]

... 15:54 @helloworldlv:试了还是不可以错误变成了./LayaRuntime-iOS/include/conchConfig.mm:11:9: fatal error: 'string' file not found #import "string", demo我传了能看到吗. Laya_Aaron • 2019-07-31 16:26 把引用这个.h的 文件 改后缀,不是改这个文件。 hellowo...

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

14. 救命啊,遇到苹果爸爸 Guideline 2.5.2 [ 68%]

...ivate frameworks, private methods, and enable future feature changes. This includes any code which passes arbitrary parameters to dynamic methods such as dlopen(), dlsym(), respondsToSelector:, performSelector:, method_exchangeImplementations(), and running remote scripts in order to change app beha...

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

15. 解决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() [ 68%]

...             // also filters out NaN, non-number types, including empty strings, but allows bigints             const valid = ms > 0 && ms < Infinity              if (valid === false) {                 if (t...

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

16. Laya2.0编译后所有js都自动合并到bundle.js中,导致bundle.js过大,加载速度很慢,bundle.js可以拆分吗 [ 67%]

...                             /* Specify library files to be included in the compilation. */     // "allowJs": true,                       /* Allow javascript files to be compiled. */     // "checkJs": true,                       /* Report errors in .js file...

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

17. 苹果上架有问题啊 , !!!!!! [ 67%]

...ivate frameworks, private methods, and enable future feature changes. This includes any code which passes arbitrary parameters to dynamic methods such as dlopen(), dlsym(), respondsToSelector:, performSelector:, method_exchangeImplementations(), and running remote scripts in order to change app beha...

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

18. 原生语言与JS通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...dleMessageResult根据事件名称把数据传递回JS侧详见Runtime/x64/include/Exports.h CONCH_EXPORT void CONCH_CDECL conchSetHandleMessageCallback(handleSyncMessageCallback handleSyncMessageCb, handleAsyncMessageCallback handleAsyncMessageCb); CONCH_EXPORT void CONCH_CDECL conchSendHandleMessa...

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

19. 一个简单的跑酷曲面shader分享 [ 64%]

...TERIAL, "u_ZDistance": Laya.Shader3D.PERIOD_MATERIAL } var vs: string = ` #include "Lighting.glsl"; attribute vec4 a_Position; attribute vec2 a_Textcoord; uniform mat4 u_WorldMat; uniform mat4 u_MvpMatrix; uniform mat4 u_View; uniform mat4 u_Projection; uniform float u_XOffset; uniform float u_YOffs...

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

20. 深入理解LayaAir引擎架构和实现原理(二)项目调试原理及完美开发调试方案 [ 63%]

...cks on the code tsconfigOverride:{compilerOptions:{removeComments: true}}, include:/.*.ts/, }), glsl({ // By default, everything gets included include: /.*(.glsl|.vs|.fs)$/, sourceMap: false, compress:false }), /*terser({ output: { }, numWorkers:1,//Amount of workers to spawn. Defaults to the number...

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