GigaSphere
360 Tiled panorama engine
Loading...
Searching...
No Matches
Revoid.GigaSphere.Managers.Gigasphere Class Reference

Static entry point and controller for the GigaSphere Unity asset. Provides centralized access to core functionalities like loading locations, setting URLs, and managing segments. Automatically finds and caches the main TileLoader and SphereSegmentGenerator instances from the scene when first needed. More...

Static Public Member Functions

static void SetCdnUrl (string url)
 Sets the base CDN URL for tile loading.
 
static void LoadLocation (Graph.LocationInfo location, float delay=0f)
 Loads a specific location with optional delay.
 
static void CancelLoading ()
 Cancels any ongoing loading operations.
 
static void ClearTileCache ()
 Clears the tile cache.
 
static void SetMaxLevel (int level)
 Sets the maximum zoom level for tiles.
 
static void SetMinLevel (int level)
 Sets the minimum zoom level for tiles.
 
static void SetQualityPreset (GigaSphereQualityPreset preset)
 Sets the quality preset for rendering.
 
static void SetCachingEnabled (bool enable)
 Enables or disables caching.
 
static void SetMaxCacheSize (float sizeMB)
 Sets the maximum cache size in MB.
 
static void UpdateSphereMaxSegments (int newMaxDetailLevel)
 Updates the sphere's maximum detail level.
 
static int GetCurrentZoomLevel ()
 Gets the current zoom level.
 
static Vector3 GetHotspotPosition (Vector3 position)
 Converts a hotspot position from UV to world coordinates.
 
static TileLoader GetTileLoader ()
 
static SphereSegmentGenerator GetSegmentGenerator ()
 

Detailed Description

Static entry point and controller for the GigaSphere Unity asset. Provides centralized access to core functionalities like loading locations, setting URLs, and managing segments. Automatically finds and caches the main TileLoader and SphereSegmentGenerator instances from the scene when first needed.

Member Function Documentation

◆ CancelLoading()

static void Revoid.GigaSphere.Managers.Gigasphere.CancelLoading ( )
inlinestatic

Cancels any ongoing loading operations.

◆ ClearTileCache()

static void Revoid.GigaSphere.Managers.Gigasphere.ClearTileCache ( )
inlinestatic

Clears the tile cache.

◆ GetCurrentZoomLevel()

static int Revoid.GigaSphere.Managers.Gigasphere.GetCurrentZoomLevel ( )
inlinestatic

Gets the current zoom level.

Returns
The current zoom level.

◆ GetHotspotPosition()

static Vector3 Revoid.GigaSphere.Managers.Gigasphere.GetHotspotPosition ( Vector3 position)
inlinestatic

Converts a hotspot position from UV to world coordinates.

Parameters
positionThe UV position.
Returns
The world position.

◆ GetSegmentGenerator()

static SphereSegmentGenerator Revoid.GigaSphere.Managers.Gigasphere.GetSegmentGenerator ( )
inlinestatic

◆ GetTileLoader()

static TileLoader Revoid.GigaSphere.Managers.Gigasphere.GetTileLoader ( )
inlinestatic

◆ LoadLocation()

static void Revoid.GigaSphere.Managers.Gigasphere.LoadLocation ( Graph.LocationInfo location,
float delay = 0f )
inlinestatic

Loads a specific location with optional delay.

Parameters
locationThe location info to load.
delayDelay in seconds before loading.

◆ SetCachingEnabled()

static void Revoid.GigaSphere.Managers.Gigasphere.SetCachingEnabled ( bool enable)
inlinestatic

Enables or disables caching.

Parameters
enableTrue to enable caching.

◆ SetCdnUrl()

static void Revoid.GigaSphere.Managers.Gigasphere.SetCdnUrl ( string url)
inlinestatic

Sets the base CDN URL for tile loading.

Parameters
urlThe CDN URL string.

◆ SetMaxCacheSize()

static void Revoid.GigaSphere.Managers.Gigasphere.SetMaxCacheSize ( float sizeMB)
inlinestatic

Sets the maximum cache size in MB.

Parameters
sizeMBCache size in MB.

◆ SetMaxLevel()

static void Revoid.GigaSphere.Managers.Gigasphere.SetMaxLevel ( int level)
inlinestatic

Sets the maximum zoom level for tiles.

Parameters
levelThe max level.

◆ SetMinLevel()

static void Revoid.GigaSphere.Managers.Gigasphere.SetMinLevel ( int level)
inlinestatic

Sets the minimum zoom level for tiles.

Parameters
levelThe min level.

◆ SetQualityPreset()

static void Revoid.GigaSphere.Managers.Gigasphere.SetQualityPreset ( GigaSphereQualityPreset preset)
inlinestatic

Sets the quality preset for rendering.

Parameters
presetThe quality preset.

◆ UpdateSphereMaxSegments()

static void Revoid.GigaSphere.Managers.Gigasphere.UpdateSphereMaxSegments ( int newMaxDetailLevel)
inlinestatic

Updates the sphere's maximum detail level.

Parameters
newMaxDetailLevelThe new max detail level.

The documentation for this class was generated from the following file: