Editor.Assets.LocationType
EnumUsed with {Editor.Assets.Location}.
Index
Example
const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const assetManager = model.project.assetManager;
const locationAssets = assetManager.assets.filter(
a => a.isOfType('LocationAsset')
) as Editor.Assets.LocationAsset[];
for (const loc of locationAssets) {
const type = loc.locationType;
const isWorld = type === Editor.Assets.LocationType.World;
const isSnap = type === Editor.Assets.LocationType.Snap;
console.log(`Location "${loc.displayName}" type=${type} world=${isWorld} snap=${isSnap}`);
}
console.log(`LocationType values: Snap=${Editor.Assets.LocationType.Snap}, Custom=${Editor.Assets.LocationType.Custom}, World=${Editor.Assets.LocationType.World}, NativeAR=${Editor.Assets.LocationType.NativeAR}`);
Enumeration Members
Custom
Custom:
number
User-created custom location anchor.
NativeAR
NativeAR:
number
Native AR spatial anchor location.
Proxy
Proxy:
number
Proxy anchor location that can be updated indirectly.
RelativeTile
RelativeTile:
number
Location defined relative to a world tile.
Snap
Snap:
number
Snap-provided landmarker location anchor.
Tile
Tile:
number
Geospatial world-tile location anchor.
World
World:
number
World-space anchor location.