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

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

61. 材质-PBRStandard材质 [ 78%]

...t.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/sky...

来源: Laya_示例 发布时间: 20251130

62. layaAirIDE 打包APK 后 真机运行报错 [ 78%]

...ayaAirIDE 打包APK 后 真机运行报错 lert=http://stand.alone.version/main.min.js:1: ReferenceError: createApes is not defined i=new RunGame;Laya.stage.addChild(i)}!function(){createApes()}(function(){function i(){this.BG_WIDT ReferenceError: createApes is not defined at BG_WIDTH (http://stand....

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

63. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 78%]

...后重试? 我就弄了一个测试代码,压根就没有功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } ren...

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

64. layaNative打包安卓版,如何添加admob? [ 78%]

...何添加admob? 构建好的android studio项目中,找不到activity_main.xml   2017-03-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: 可以通过项目构建进行添加! 2017...

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

65. 微信小游戏加了子域报错 [ 78%]

...ya.core.js:4135)     at Object.Laya.init (laya.core.js:252)     at new Main (Main.ts:6)     at Object.2../GameConfig (Main.ts:37)     at o (_prelude.js:11)     at r (_prelude.js:11)     at _prelude.js:11     laya2.0版本微信开发者工具上报错,大佬帮忙解决下 附件 : -...

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

66. Image [ 77%]

...ture     var img___=new Image();         img___.src="res/card/select_main_card_bg.png"         img___.onload = function(){             var image = new Laya.Image()             image.source = img___             Laya.stage.addChild(image)         } 舞台上没有图  ...

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

67. [LayaAirIDE3]2d相机打包后问题 [ 77%]

... 2025-11-25 0 0 分享 微博 QZONE 微信 1756447350用户 赞同来自: main代码 // Main.ts - 简化版异步加载 import { CameraController } from "./CameraController"; import { Joystick } from "./Joystick"; import { Player } from "./Player";  const { regClass, property } = Laya;  @regClass(...

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

68. 关联shader的uniform(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 77%]

...ec3 a_Normal; uniform mat4 u_MvpMatrix; uniform float u_OutlineWidth; void main() { vec4 position = vec4(a_Position.xyz + a_Normal * u_OutlineWidth, 1.0); gl_Position = u_MvpMatrix * position; } ``` 片元着色器 `outline.fs` 代码如下: ```c++ #ifdef FSHIGHPRECISION precision highp float; #else...

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

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

...._load (internal/modules/cjs/loader.js:562:25)     at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)     at startup (internal/bootstrap/node.js:283:19)     at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3) 2019-12-31 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

70. 粒子特效,播放与克隆有bug [ 77%]

粒子特效,播放与克隆有bug  2.1.0和2.1.1,Main Camera的clearFlag =3可以播放,但是Sprite3D克隆报错,.ls和.lh都会报错。 2.2以上的版本Main Camera的clearFlag =3无法播放,clearFlag =1或0,播放时有黑背景,克隆没有尝试。 附件 : --> LayaScene_zh...

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