大约有 5 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
...码 /** * Based upon https://github.com/bgrins/javascript-astar */ export class AStarFindPath { private terrainSprite: MeshTerrainSprite3D; private layaMonkey: Sprite3D; private path: Vector3[]; private _everyPath: any[]; private _position: Vector3 = new Vector3(0, 0, 0); private _upVector3: Vector3...
来源: Laya3.0_文档 发布时间: 20230303
...基类,包括创建,播放,暂停,销毁,清理对象池 export class Particle3D extends Sprite3D { private _isInited: boolean = false; private _filePath: string = null; private _particle: Laya.Sprite = null; private _shuriKenParticle3D: Array<ShuriKenParticle3D>= []; private _shurik...
来源: Laya3.0_文档 发布时间: 20251010
...基类,包括创建,播放,暂停,销毁,清理对象池 export class Particle3D extends Sprite3D { private _isInited: boolean = false; private _filePath: string = null; private _particle: Laya.Sprite = null; private _shuriKenParticle3D: Array<ShuriKenParticle3D>= []; private _shurik...
来源: Laya3.0_文档 发布时间: 20250104
...omponent = Laya.Component; import Nav2DAgent = Laya.Nav2DAgent; const { regClass, property } = Laya; @regClass() export class TestSprite extends Laya.Script { // 用于显示鼠标点击的位置 @property({ type: Laya.Sprite }) public hit: Sprite; private _temp: Sprite; private _allAgent: Nav2DAgen...
来源: Laya3.0_文档 发布时间: 20251010
...t中使用本地能力 下面是一个推荐做法: //Script.ts @Laya.regClass() class Script extends Laya.Script { wantToUseNode() { EditorEnv.scene.runScript("TestSceneScript.visitNode"); } } //TestSceneScript.ts import fs from "fs"; //注意是IEditorEnv.regClass,不是Laya.regClass!! @IEdito...
来源: Laya3.0_文档 发布时间: 20251010