UxmlFactory<TCreatedType, TTraits>
Generic base class for UXML factories, which instantiate a VisualElement using the data read from a UXML file.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: BaseUxmlFactory<T, T>
- Implements: IUxmlFactory, IBaseUxmlFactory
public class UxmlFactory<TCreatedType, TTraits> : BaseUxmlFactory<TCreatedType, TTraits>, IUxmlFactory, IBaseUxmlFactory where TCreatedType : VisualElement, new() where TTraits : UxmlTraits, new()
Remarks
T0 The type of the element that will be instantiated. It must derive from VisualElement.
T1 The traits of the element that will be instantiated. It must derive from UxmlTraits.
Methods
Method | Description |
|---|---|
| Create | Instantiate an object of type |