+EA 23.96 Nyaightly - Plugin.BaseCore
February 26, 2025
1 file modified.
Important Changes
None.
ClassExtension
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)