TsukiSuite is an open source, free for commercial use suite of libraries created for making Unity development more pleasant.
Each library can be compared as a version of Google's Guava, but created for Unity
Currently, four of those exists, but more will be added as the need for them surface
https://github.com/LunariStudios/TsukiSuite.git#upm
.List<int> list = new List<int>();
if (list.IsEmpty()) {
Debug.Log("Is empty!");
}
public struct Data {
public string Name;
public int Priority;
}
List<Data> data = PopulateListWithRandomData();
Data withHighestPriority = data.MaxBy(d => d.Priority)
Color color = Colors.RandomColor();
Color newColor = color.SetHue(Mathf.Sin(Time.time));
Color a = new Color(1, 0, 1, 1);
ColorHSV b = a;
ColorHSV colorHSV = new ColorHSV(0, 1, 1, 1);
Color c = colorHSV;
// Bonus: A list of hidden UnityEditor GUIStyles!
var style = GUIStyles.Get(GUIStyles.box);
var labelRect = position.GetLine(2);
EditorGUI.LabelField(labelRect, "I am on the third with the console info style!", style);
// No need to declare a copy of Graphic.color
Text.SetAlpha(Mathf.Sin(Time.time));
Text.SetHue(Mathf.Cos(Time.time));