mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
[+] Fixed UIWidget
[+] Fixed UIWidget
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user