Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BaseUxmlFactory<TCreatedType, TTraits>

Generic base class for UXML element factories, which instantiate a VisualElement using the data read from a UXML file.
Read time 1 minuteLast updated 9 days ago

Definition

Warning
Deprecated. BaseUxmlFactory<TCreatedType, TTraits> is deprecated and will be removed. Use UxmlElementAttribute instead.
public abstract class BaseUxmlFactory<TCreatedType, TTraits> where TCreatedType : new() where TTraits : BaseUxmlTraits, new()

Properties

Property

Description

canHaveAnyAttributeReturns UxmlTraitsBaseUxmlFactory<TCreatedType, TTraits>.canHaveAnyAttribute (where UxmlTraits is the argument for
T1
).
substituteForTypeNameReturns an empty string if
T0
is not VisualElement; otherwise, returns "VisualElement".
substituteForTypeNamespaceReturns the namespace for BaseUxmlFactory<TCreatedType, TTraits>.substituteForTypeName.
substituteForTypeQualifiedNameReturns the fully qualified name for BaseUxmlFactory<TCreatedType, TTraits>.substituteForTypeName.
uxmlAttributesDescriptionReturns an empty enumerable.
uxmlChildElementsDescriptionReturns an empty enumerable.
uxmlNameReturns the type name of
T0
.
uxmlNamespaceReturns the namespace name of
T0
.
uxmlQualifiedNameReturns the type fully qualified name of
T0
.
uxmlTypeReturns the type of
T0
.

Methods

Method

Description

AcceptsAttributeBagReturns true.