Class SquareGridLayout
public class SquareGridLayout : MonoBehaviour
- Inheritance
-
SquareGridLayout
Properties
ActualColumns
public int ActualColumns { get; }
Property Value
- int
ActualRows
public int ActualRows { get; }
Property Value
- int
AreaSettings
public SquareGridLayout.AreaBasedGridSettings AreaSettings { get; }
Property Value
- SquareGridLayout.AreaBasedGridSettings
CanvasRect
public RectTransform CanvasRect { get; }
Property Value
- RectTransform
Columns
public int Columns { get; }
Property Value
- int
CurrentGridType
public SquareGridLayout.GridType CurrentGridType { get; }
Property Value
- SquareGridLayout.GridType
CurrentLabelSettings
public SquareGridLayout.LabelSettings CurrentLabelSettings { get; }
Property Value
- SquareGridLayout.LabelSettings
CurrentLabelType
public SquareGridLayout.LabelType CurrentLabelType { get; }
Property Value
- SquareGridLayout.LabelType
DimensionSettings
public SquareGridLayout.DimensionBasedGridSettings DimensionSettings { get; }
Property Value
- SquareGridLayout.DimensionBasedGridSettings
FixedSettings
public SquareGridLayout.FixedGridSettings FixedSettings { get; }
Property Value
- SquareGridLayout.FixedGridSettings
Height
public float Height { get; }
Property Value
- float
MaintainAspectRatio
public bool MaintainAspectRatio { get; }
Property Value
- bool
Rows
Property Value
- int
ShowLabels
public bool ShowLabels { get; set; }
Property Value
- bool
Width
public float Width { get; }
Property Value
- float
Methods
GetGridInfo()
public string GetGridInfo()
Returns
- string
RegenerateGrid()
public void RegenerateGrid()
SetAreaBasedGridSettings(float, float)
public void SetAreaBasedGridSettings(float areaKmSquare, float boxKmSquare)
Parameters
areaKmSquare float
boxKmSquare float
SetColor(Color)
public void SetColor(Color newColor)
Parameters
newColor Color
SetDimensionBasedGridSettings(float, float, float)
public void SetDimensionBasedGridSettings(float horizontalKm, float verticalKm, float cellSizeKm)
Parameters
horizontalKm float
verticalKm float
cellSizeKm float
SetFixedGridSettings(float)
public void SetFixedGridSettings(float cellSize)
Parameters
cellSize float
SetGridType(GridType)
public void SetGridType(SquareGridLayout.GridType type)
Parameters
type SquareGridLayout.GridType
SetLabelSettings(int, int, int)
public void SetLabelSettings(int labelSize, int startNumber, int indexOffset)
Parameters
labelSize int
startNumber int
indexOffset int
SetLabelType(LabelType)
public void SetLabelType(SquareGridLayout.LabelType type)
Parameters
type SquareGridLayout.LabelType
SetMaintainAspectRatio(bool)
public void SetMaintainAspectRatio(bool maintain)
Parameters
maintain bool