語言英文
  • C#

UIDocument.parentUI

public UIElements.UIDocument parentUI;

說明

如果附加此 UIDocument 組件的 GameObject 有父物件,而且該父物件也附加了 UIDocument 組件,系統會自動將此值設定為父物件的 UIDocument 組件。

如果 UIDocument 有父物件,您無法將它直接新增到面板中。Unity 會將它新增到父物件的根部視覺元素中。


Did you find this page useful? Please give it a rating: