文档

Unity Engine

Unity Engine

BaseUxmlFactory<TCreatedType, TTraits>

Generic base class for UXML element factories, which instantiate a VisualElement using the data read from a UXML file.
阅读时间1 分钟最后更新于 1 个月前

Definition

警告
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.