Inheritance
System.Object
ToolboxHelper
public class ToolboxHelper
Fields
Declaration
public static bool GizmoEnabled
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public static GameObject GizmoGO
Field Value
Type |
Description |
GameObject |
|
Declaration
public static TerrainGizmos GizmoSettings
Field Value
Declaration
public static string LibraryPath
Field Value
Type |
Description |
System.String |
|
Declaration
public static string ToolboxPrefsCreate
Field Value
Type |
Description |
System.String |
|
Declaration
public static string ToolboxPrefsSettings
Field Value
Type |
Description |
System.String |
|
Declaration
public static string ToolboxPrefsUtility
Field Value
Type |
Description |
System.String |
|
Declaration
public static string ToolboxPrefsVisualization
Field Value
Type |
Description |
System.String |
|
Declaration
public static string ToolboxPrefsWindow
Field Value
Type |
Description |
System.String |
|
Methods
Declaration
public static void CalculateAdjacencies(Terrain[] terrains, int tilesX, int tilesZ)
Parameters
Type |
Name |
Description |
Terrain[] |
terrains |
|
System.Int32 |
tilesX |
|
System.Int32 |
tilesZ |
|
Declaration
public static void ExportTerrainHeightsToRawFile(TerrainData terrainData, string path, Heightmap.Depth depth, bool flipVertical, ToolboxHelper.ByteOrder byteOrder, Vector2 inputLevelsRange)
Parameters
ExportTerrainHeightsToTexture(TerrainData, Heightmap.Format, String)
Declaration
public static void ExportTerrainHeightsToTexture(TerrainData terrainData, Heightmap.Format format, string path)
Parameters
Type |
Name |
Description |
TerrainData |
terrainData |
|
Heightmap.Format |
format |
|
System.String |
path |
|
Declaration
public static Terrain[] GetAllTerrainsInScene()
Returns
Type |
Description |
Terrain[] |
|
Declaration
public static string GetBitDepth(Heightmap.Depth depth)
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
public static GameObject GetGizmo()
Returns
Type |
Description |
GameObject |
|
Declaration
public static Vector3 GetGizmoPosition()
Returns
GetPartialTexture(Texture2D, Vector2Int, Vector2Int)
Declaration
public static Texture2D GetPartialTexture(Texture2D sourceTexture, Vector2Int resolution, Vector2Int offset)
Parameters
Type |
Name |
Description |
Texture2D |
sourceTexture |
|
Vector2Int |
resolution |
|
Vector2Int |
offset |
|
Returns
Type |
Description |
Texture2D |
|
Declaration
public static string GetPrefFilePath(string prefType)
Parameters
Type |
Name |
Description |
System.String |
prefType |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static ToolboxHelper.RenderPipeline GetRenderPipeline()
Returns
Declaration
public static Terrain[] GetSelectedTerrainsInScene()
Returns
Type |
Description |
Terrain[] |
|
Declaration
public static void HideGizmo()
Declaration
public static bool IsInteger(double x)
Parameters
Type |
Name |
Description |
System.Double |
x |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool IsPowerOfTwo(int x)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
Returns
Type |
Description |
System.Boolean |
|
ResizeControlTexture(TerrainData, Int32)
Declaration
public static void ResizeControlTexture(TerrainData terrainData, int resolution)
Parameters
Type |
Name |
Description |
TerrainData |
terrainData |
|
System.Int32 |
resolution |
|
Declaration
public static void ResizeHeightmap(TerrainData terrainData, int resolution)
Parameters
Type |
Name |
Description |
TerrainData |
terrainData |
|
System.Int32 |
resolution |
|
Declaration
public static void SetGizmoColor(Color cubeColor, Color wireColor)
Parameters
Type |
Name |
Description |
Color |
cubeColor |
|
Color |
wireColor |
|
Declaration
public static void ShowGizmo()
Declaration
public static void UpdateGizmos(float width, float height, float length, Vector3 position, int id)
Parameters
Type |
Name |
Description |
System.Single |
width |
|
System.Single |
height |
|
System.Single |
length |
|
Vector3 |
position |
|
System.Int32 |
id |
|