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 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.
◆ CancelLoading()
| static void Revoid.GigaSphere.Managers.Gigasphere.CancelLoading |
( |
| ) |
|
|
inlinestatic |
Cancels any ongoing loading operations.
◆ ClearTileCache()
| static void Revoid.GigaSphere.Managers.Gigasphere.ClearTileCache |
( |
| ) |
|
|
inlinestatic |
◆ 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
-
- Returns
- The world position.
◆ GetSegmentGenerator()
◆ 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
-
| location | The location info to load. |
| delay | Delay in seconds before loading. |
◆ SetCachingEnabled()
| static void Revoid.GigaSphere.Managers.Gigasphere.SetCachingEnabled |
( |
bool | enable | ) |
|
|
inlinestatic |
Enables or disables caching.
- Parameters
-
| enable | True to enable caching. |
◆ SetCdnUrl()
| static void Revoid.GigaSphere.Managers.Gigasphere.SetCdnUrl |
( |
string | url | ) |
|
|
inlinestatic |
Sets the base CDN URL for tile loading.
- Parameters
-
◆ SetMaxCacheSize()
| static void Revoid.GigaSphere.Managers.Gigasphere.SetMaxCacheSize |
( |
float | sizeMB | ) |
|
|
inlinestatic |
Sets the maximum cache size in MB.
- Parameters
-
◆ SetMaxLevel()
| static void Revoid.GigaSphere.Managers.Gigasphere.SetMaxLevel |
( |
int | level | ) |
|
|
inlinestatic |
Sets the maximum zoom level for tiles.
- Parameters
-
◆ SetMinLevel()
| static void Revoid.GigaSphere.Managers.Gigasphere.SetMinLevel |
( |
int | level | ) |
|
|
inlinestatic |
Sets the minimum zoom level for tiles.
- Parameters
-
◆ SetQualityPreset()
Sets the quality preset for rendering.
- Parameters
-
| preset | The quality preset. |
◆ UpdateSphereMaxSegments()
| static void Revoid.GigaSphere.Managers.Gigasphere.UpdateSphereMaxSegments |
( |
int | newMaxDetailLevel | ) |
|
|
inlinestatic |
Updates the sphere's maximum detail level.
- Parameters
-
| newMaxDetailLevel | The new max detail level. |
The documentation for this class was generated from the following file:
- E:/unity-projects/giga-360/Assets/Plugins/Revoid/GigaSphere/Scripts/Runtime/Managers/Gigasphere.cs