// Load and show filter values for filter with given index private void ShowFilterValues(int index) { // load values for filter string[,] filterValues = spriteLoader.GetFilterValues(selectedLayer.GetLayerName()); filterValuesTxt.text = ""; // Add filter values to Text on filterdetails canvas if (index > -1 && index < filterValues.GetLength(0)) { for (int i = 0; i < filterValues.GetLength(1); i++) { double temp = Convert.ToDouble(filterValues[index, i]); if (temp < 0) { filterValuesTxt.text += filterValues[index, i].Remove(5) + " "; } else { filterValuesTxt.text += filterValues[index, i].Remove(4) + " "; } switch (i) { case 2: filterValuesTxt.text += "\n"; break; case 5: filterValuesTxt.text += "\n"; break; default: break; } } } else { Debug.Log("CanvasController - ShowFilterDetails: invalid index"); return; } }