大约有 1,151 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
...ir2-cmd 编译报错 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 自定义场景类导出layaMaxUI.ts有前缀导致报错 小游戏项目 加载有中文的json文件 报错 本地调试加载本地图片都报错 runtime运行报错! 用了ByteArray的zlib.min.js后报错 ...
来源: Laya_社区 发布时间: 20181024
...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
...ex.js"); iOS 项目 iOS项目构建完成后,项目目录下的 resource/scripts/index.js 脚本的最后有个执行loadUrl的函数,这里会加载首页地址,修改这里的地址就能切换单机版和网络版,单机版的地址固定为 http://stand.alone.version/index.js。 例如...
来源: Laya3.0_文档 发布时间: 20250104
...s");` 2. iOS 项目 iOS项目构建完成后,项目目录下的 resource/scripts/index.js 脚本的最后有个执行loadUrl的函数,这里会加载首页地址,修改这里的地址就能切换单机版和网络版,单机版的地址固定为 `http://stand.alone.version/index.html`。 例...
来源: Laya2.0_文档 发布时间: 20210715
...代码: 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
... { 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
...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
...精灵添加组件(脚本) monkey.addComponent(MonkeyScript); scene.addChild(monkey); //设置相机的观察目标为小猴子 camera.transform.lookAt(monkey.transform.position, new Laya.Vector3(0, 1, 0)); this.text...
来源: Laya_社区 发布时间: 20190605
...** * 在节点上添加2D拖尾渲染器的示例代码 */ export class NewScript extends Laya.Script { declare owner: Laya.Sprite; private _trail2D: Laya.Trail2DRender; //从场景文件中获取到的宽度曲线数据 private _widthCurve: any[]; //从场景文件中获取到的颜色渐变数据 ...
来源: Laya3.0_文档 发布时间: 20251010
...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