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

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

1131. 精灵 · LayaAir3.4 · 引擎文档 · 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

1132. 性能分析插件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...工具。 const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property(Number) public projectId: number = 23; private perfMain: LayaPerf = new LayaPerf(); onEnable(): void { this.perfMain.init(this.projectId); } } projectId使用后端给项目分配的项...

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

1133. 使用3D UI · LayaAir3.4 · 引擎文档 · 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

1134. 加载.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

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

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

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

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

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

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

1137. [LayaAir3]LayaAir3.0UnityPlugin 导出出错 [ 33%]

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

1138. VSCode高效开发工作流配置指南(TypeScript-IDE篇(TS)-代码模式基础) [ 32%]

...) #### 1.2、下载安装Node.js Node.js 是一个基础环境,比如TypeScript编译、npm都需要依托于 Node.js。 如果没有安装,直接前往node官网下载安装即可, Node.js 10.x版本下载地址为: https://nodejs.org/download/release/latest-v10.x/ 截止到本篇文档撰...

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

1139. 2D网格渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 32%]

...ass, property } = Laya; @regClass() export class Mesh2DRender extends Laya.Script { @property({type: Laya.Sprite}) private layaMonkey: Laya.Sprite; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { Laya.loader.load("resources/layabox.png", Laya.Loader.IMAGE).then(() =...

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

1140. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 32%]

...indow is not defined 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 用了ByteArray的zlib.min.js后报错 laya2 发布微信开放域工程,用微信开发者工具打开报错 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play...

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