UxmlFactory<TCreatedType, TTraits>
Generic base class for UXML factories, which instantiate a VisualElement using the data read from a UXML file.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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 |