Class UxmlRootElementFactory
Factory for the root UXML
element.
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public class UxmlRootElementFactory : UxmlFactory<VisualElement, UxmlRootElementTraits>, IUxmlFactory
Remarks
This factory does not generate VisualElements. UIElements uses it to generate schemas.
Properties
substituteForTypeName
Returns the empty string, as the root element can not appear anywhere else bit at the root of the document.
Declaration
public override string substituteForTypeName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
UnityEngine.UIElements.UxmlFactory<UnityEngine.UIElements.VisualElement, UnityEngine.UIElements.UxmlRootElementTraits>.substituteForTypeName
substituteForTypeNamespace
Returns the empty string, as the root element can not appear anywhere else bit at the root of the document.
Declaration
public override string substituteForTypeNamespace { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
UnityEngine.UIElements.UxmlFactory<UnityEngine.UIElements.VisualElement, UnityEngine.UIElements.UxmlRootElementTraits>.substituteForTypeNamespace
substituteForTypeQualifiedName
Returns the empty string, as the root element can not appear anywhere else bit at the root of the document.
Declaration
public override string substituteForTypeQualifiedName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
UnityEngine.UIElements.UxmlFactory<UnityEngine.UIElements.VisualElement, UnityEngine.UIElements.UxmlRootElementTraits>.substituteForTypeQualifiedName
uxmlName
Returns "UXML"
.
Declaration
public override string uxmlName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
UnityEngine.UIElements.UxmlFactory<UnityEngine.UIElements.VisualElement, UnityEngine.UIElements.UxmlRootElementTraits>.uxmlName
uxmlQualifiedName
Returns the qualified name for this element.
Declaration
public override string uxmlQualifiedName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
UnityEngine.UIElements.UxmlFactory<UnityEngine.UIElements.VisualElement, UnityEngine.UIElements.UxmlRootElementTraits>.uxmlQualifiedName
Methods
Create(IUxmlAttributes, CreationContext)
Returns null.
Declaration
public override VisualElement Create(IUxmlAttributes bag, CreationContext cc)
Parameters
Type | Name | Description |
---|---|---|
IUxmlAttributes | bag | |
CreationContext | cc |
Returns
Type | Description |
---|---|
VisualElement |
Overrides
UnityEngine.UIElements.UxmlFactory<UnityEngine.UIElements.VisualElement, UnityEngine.UIElements.UxmlRootElementTraits>.Create(UnityEngine.UIElements.IUxmlAttributes, UnityEngine.UIElements.CreationContext)