Skip to content

+EA 23.96 Nyaightly - Plugin.BaseCore

February 26, 2025

1 file modified.

Important Changes

None.

ClassExtension

@@ -1176,7 +1176,12 @@ public static void SetSlider(this Slider slider, float value, Func<float, string

cs

	public static T GetOrCreate<T>(this Component t) where T : Component
	{
		return t.gameObject.GetComponent<T>() ?? t.gameObject.AddComponent<T>(); 
		T val = t.gameObject.GetComponent<T>(); 
		if (!val) 
		{ 
			val = t.gameObject.AddComponent<T>(); 
		} 
		return val; 
	}

	public static RectTransform Rect(this Component c)