神岛 API 文档 - ArenaPro版
    Preparing search index...

    Variable resourcesConst

    resources: {
        ls: (
            path?: "snow" | "mesh" | "picture" | "audio" | "lut",
        ) => GameAssetListEntry[];
    }

    Type declaration

    • ls: (path?: "snow" | "mesh" | "picture" | "audio" | "lut") => GameAssetListEntry[]

      列出指定类型的游戏资源。

      Lists game resources of a specified type.

      可选。指定游戏资源的类型。如果不提供,默认返回全部资源(包含脚本)。 - 'snow': 查询雪贴图资源。 - 'mesh': 查询体素模型资源。 - 'picture': 查询图片资源。 - 'audio': 查询音频资源。 - 'lut': 查询滤镜资源。

      Optional. Specifies the type of game resource. If not provided, all resources (including scripts) are returned by default. - 'snow': Query for snow texture resources. - 'mesh': Query for voxel model resources. - 'picture': Query for image resources. - 'audio': Query for audio resources. - 'lut': Query for filter resources.

      返回一个 GameAssetListEntry 对象数组,每个对象代表一个游戏资源条目。

      Returns an array of GameAssetListEntry objects, each representing a game resource entry.

    GameAssetListEntry 是控制游戏中的资产对象,用于获取游戏内模型、图片、音频等资源。

    GameAssetListEntry is an object that controls assets in the game, used to obtain in-game resources such as models, images, and audio.