Skip to main content

LensStudio:AssetLibrary.Space

Enum

The Asset Library space which assets should be searched within.

The Asset Library space which assets should be searched within. In most cases Public should be used. Used with "LensStudio:AssetLibrary".EnvironmentSetting.

Index

Enumeration Members

Example

// Space enum describes the scope of an asset library.
const { Space } = await import('LensStudio:AssetLibrary');

console.log('Invalid:', Space.Invalid);
console.log('Internal:', Space.Internal);
console.log('Public:', Space.Public);

// Use Space when constructing an EnvironmentSetting
const { EnvironmentSetting, Environment } = await import('LensStudio:AssetLibrary');
const envSetting = new EnvironmentSetting();
envSetting.space = Space.Public;
envSetting.environment = Environment.Production;
console.log('EnvironmentSetting space set to Public');

Enumeration Members

Internal

Internal: number

Denotes an asset space restricted to internal use.


Invalid

Invalid: number

Represents an invalid or unset space value.


Public

Public: number

Denotes an asset space accessible publicly.

See also

"LensStudio:AssetLibrary".Asset.