[+] Fixed UIWidget

[+] Fixed UIWidget
This commit is contained in:
ALEXTANG
2023-06-25 15:26:40 +08:00
parent 9d1a8e8c9d
commit 57a014a83a

View File

@@ -178,6 +178,7 @@ namespace TEngine
{
return false;
}
gameObject = go;
rectTransform = go.GetComponent<RectTransform>();
Log.Assert(rectTransform != null, $"{go.name} ui base element need to be RectTransform");
return true;