Preparing search index...

    A handle to the "LensStudio:AssetLibrary".AssetListService which can provide a list of assets based on the passed in parameters.

        // AssetListService provides fetchAsync() to query the asset library.
    // Obtain it from IAssetLibraryProvider.assetService.
    const provider = this.pluginSystem.findInterface(
    IAssetLibraryProvider.interfaceId
    ) as import('LensStudio:AssetLibrary').IAssetLibraryProvider;
    const service = provider.assetService;

    const envSetting = new EnvironmentSetting();
    envSetting.environment = Environment.Production;
    envSetting.space = Space.Public;

    const filter = new AssetFilter();
    filter.searchText = 'material';

    const request = new AssetListRequest(envSetting, filter);
    const response = await service.fetchAsync(request);
    if (response.ok && response.data) {
    console.log('Found', response.data.assets.length, 'assets');
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean