Version: 2022.3
Language : English
UXML element TextField
UXML element Toggle

UXML element TemplateContainer

The TemplateContainer is the root element of a UXML file and acts as the parent of all other elements in the file.

A TemplateContainer instance is automatically generated for the following scenarios:

  • When you use VisualTreeAsset.Instantiate() in C#, a TemplateContainer instance is generated to represent the root of the hierarchy.
  • When you work with UXML templates, a TemplateContainer is generated to represent the template instance and inserted into the hierarchy of the parent UXML file.

C# base class and namespace

Additional resources

UXML element TextField
UXML element Toggle
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961