Settings

beginner concepts

Hexasphere Grid System · Core Concepts

Inspector Settings

Select the Hexasphere GameObject to view all settings in the Inspector. This page documents every configurable parameter organized by section.

Adding a Hexasphere

To add a hexasphere to your scene, select GameObject > 3D Object > Hexasphere from the top menu.

Grid Settings

This section controls the fundamental grid structure and visual appearance.

ParameterDescription
StyleVisual rendering mode: Wireframe, Shaded, or Shaded Wireframe. When Extruded is enabled, wireframe styles use an optimized shader that culls hidden lines.
DivisionsNumber of icosahedron subdivisions. Higher values generate more tiles. The hexasphere derives from a basic icosahedron and this parameter controls iterations.
Smart EdgesOnly available when wireframe is visible. Hides edges between adjacent tiles that share the same material, creating clean visual regions.
Inverted ModeRenders the hexasphere inward so the camera views from inside the sphere.
Rotation ShiftApplies an internal rotation to the generated vertices without changing the transform rotation. Useful for repositioning the pentagonal tiles.
VR EnabledActivates raycasting compatible with Virtual Reality headsets.

Extrusion Settings

Extrusion gives tiles 3D height, creating elevated or depressed terrain on the sphere surface.

ParameterDescription
ExtrudedEnables tile extrusion. Activates custom geometry shaders and alternate interaction logic for 3D tile views. Per-tile extrusion amount (0–1) is set via scripting.
MultiplierGlobal height multiplier. The final tile height = extrusion amount × this multiplier. Adjust to quickly scale all tile heights.
Gradient IntensityControls the intensity of the color gradient on the sides of extruded tiles.
Raycast 3DImproves tile highlighting accuracy when extrusion is enabled. Extruded tiles exceed the sphere radius, so this option uses 3D raycasting for precise selection.

Appearance Settings

ParameterDescription
Wireframe ColorColor of the grid lines when using wireframe styles.
Default Tile ColorDefault material color for tiles unless overridden via scripting.
Tile Tint ColorGlobal tint applied to all tiles regardless of their individual colors. Applies universally, unlike Default Tile Color which only affects non-colored tiles.
Use LightingControls whether the hexasphere casts shadows and responds to directional lights.
Tile Texture SizeSize of the internal texture array used when assigning textures to individual tiles.
Tile Texture StretchWhen enabled, UV coordinates stretch the texture to the enclosing rectangle. When disabled, UVs match the hexagon vertices as if enclosed in a circle. Disable if you see texture distortion.

Interaction Settings

This section controls user interaction with the hexasphere.

ParameterDescription
Enable HighlightActivates tile highlighting when moving the cursor or pointer over the grid.
Highlight ColorColor used for the tile highlight effect.
Highlight SpeedSpeed of the highlight fade animation.
Enable RotationAllows the user to rotate the hexasphere by mouse drag or touch.
Enable ZoomAllows the user to zoom in/out using mouse wheel or pinch gestures. Min/max values determine the world-space distance to the sphere surface.
Zoom DampingDeceleration speed when the mouse wheel is released. 0 = instant stop; values near 1 = gradual deceleration.

PathFinding Settings

Configuration for the built-in A* pathfinding engine.

ParameterDescription
Estimation MethodDistance heuristic for A*: Spherical Distance (angle between nodes), Euclidean (linear distance), or Euclidean Non SQR (faster, skips square root).
Search LimitMaximum number of tiles to explore in a path search.
Use ExtrusionWhen enabled, tile height (0–1) multiplied by Extrusion Weight is added to the crossing cost of that tile.

Grid Editor

The Grid Editor lets you customize individual tiles directly in the Scene View, with no code involved. It is available in Edit Mode when the Hexasphere GameObject is selected and Enable Editor is checked (on by default).

Click a tile in the Scene View to select it and edit its properties in the Inspector. Hold Control to add more tiles to the selection, or hold Shift and move the cursor over the sphere to select or paint tiles continuously.

OptionDescription
Enable EditorEnables tile editing in the Scene View.
Selected CellIndex of the tile (or tiles) currently selected.
String TagFree-form text attached to the tile. Available when a single tile is selected. Read it at runtime with GetTileTag or find tiles by tag with GetTileWithTag.
Integer TagNumeric id attached to the tile, useful for territory, biome or ownership data.
ColorTint applied to the selected tiles.
TextureIndex of the texture applied to the selected tiles, taken from the Textures list below. 0 means no texture.
Set / ClearApplies or removes the color and texture on every selected tile. Shortcuts: Shift + S to set, Shift + C to clear on the tile under the cursor.
TexturesList of textures available for painting. Assign a Texture2D to a slot and press its T button to enter paint mode: from then on, clicking tiles in the Scene View paints them with that texture.
Reset TilesRestores all tiles to their default color, texture and tags.
Export ConfigAdds a Hexasphere Config component to the GameObject storing the current per-tile colors, textures and tags. Enabling that component (or calling its LoadConfiguration method) restores the layout, so a hand-edited grid can be saved with the scene and reloaded at runtime.

Tile settings can also be created or modified from code at any time. See Scripting Support for the full API, including SetTileColor, SetTileTexture, SetTileTag, SetTileExtrudeAmount and the configuration import/export methods.

Next Steps

For programmatic control over all these settings and more, see the Scripting Support page. For VR-specific configuration, see Virtual Reality Options.

Was this page helpful?