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

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

1121. 2.0 beta3 物理 DestroyJoint 报错 [ 36%]

...ir2-cmd 编译报错 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 自定义场景类导出layaMaxUI.ts有前缀导致报错 小游戏项目 加载有中文的json文件 报错 本地调试加载本地图片都报错 runtime运行报错! 用了ByteArray的zlib.min.js后报错 ...

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

1122. 2D光遮挡器与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

...ss, property } = Laya; @regClass() export class LightOccluder extends Laya.Script { private spotLight: Laya.Sprite = new Laya.Sprite(); private background: Laya.Sprite = new Laya.Sprite(); private lightOccluder: Laya.Sprite = new Laya.Sprite(); private backgroundTexture: string = "resources/bg2.png"...

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

1123. 安卓/iOS构建 · LayaAir3文档 · LAYABOX [ 35%]

...ex.js"); iOS 项目 iOS项目构建完成后,项目目录下的 resource/scripts/index.js 脚本的最后有个执行loadUrl的函数,这里会加载首页地址,修改这里的地址就能切换单机版和网络版,单机版的地址固定为 http://stand.alone.version/index.js。 例如...

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

1124. 使用IDE构建工程(TypeScript-LayaNative原生服务-LayaNative工具使用) [ 35%]

...s");` 2. iOS 项目 iOS项目构建完成后,项目目录下的 resource/scripts/index.js 脚本的最后有个执行loadUrl的函数,这里会加载首页地址,修改这里的地址就能切换单机版和网络版,单机版的地址固定为 `http://stand.alone.version/index.html`。 例...

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

1125. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

...代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件...

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

1126. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 34%]

... { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { // 设置单例 static instance: Main; constructor() { super(); Main.instance = this; } @property({type:Laya.Sprite3D}) private target: Laya.Sprite3D; @property({type:Laya.UI3D}) private ui3d: Laya.UI3D; public anima...

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

1127. 加载.lh文件 运行后黑屏 无法显示 [ 34%]

...e_JJF/Conventional/JJF.lh");         layaMonkey.addComponent(MonkeyScript);         camera.transform.lookAt(layaMonkey.transform.position, new Laya.Vector3(0, 1, 0));                 //设置文本显示框位置                 this.text.x = Laya.stag...

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

1128. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 34%]

...精灵添加组件(脚本)         monkey.addComponent(MonkeyScript);         scene.addChild(monkey);         //设置相机的观察目标为小猴子         camera.transform.lookAt(monkey.transform.position, new Laya.Vector3(0, 1, 0));         this.text...

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

1129. 2D拖尾渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 33%]

...** * 在节点上添加2D拖尾渲染器的示例代码 */ export class NewScript extends Laya.Script { declare owner: Laya.Sprite; private _trail2D: Laya.Trail2DRender; //从场景文件中获取到的宽度曲线数据 private _widthCurve: any[]; //从场景文件中获取到的颜色渐变数据 ...

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

1130. [LayaAir3]LayaAir3.0UnityPlugin 导出出错 [ 32%]

...shRenderer' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. MeshUitls.writeSkinnerMesh (UnityEngine.SkinnedMeshRenderer skinnedMeshRenderer, System.String meshName, System.IO.FileStream fs, System.Int32 Max...

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