Version: 2018.4
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

IUxmlFactory

interface in UnityEngine.Experimental.UIElements

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Interface for UXML factories. While it is not strictly required, concrete factories should derive from the generic class UxmlFactory.

Properties

canHaveAnyAttributeMust return true if the UXML element attributes are not restricted to the values enumerated by uxmlAttributesDescription.
substituteForTypeNameThe type of element for which this element type can substitute for.
substituteForTypeNamespaceThe UXML namespace for the type returned by substituteForTypeName.
substituteForTypeQualifiedNameThe fully qualified XML name for the type returned by substituteForTypeName.
uxmlAttributesDescriptionDescribes the UXML attributes expected by the element. The attributes enumerated here will appear in the UXML schema.
uxmlChildElementsDescriptionDescribes the types of element that can appear as children of this element in a UXML file.
uxmlNameThe name of the UXML element read by the factory.
uxmlNamespaceThe namespace of the UXML element read by the factory.
uxmlQualifiedNameThe fully qualified name of the UXML element read by the factory.

Public Methods

AcceptsAttributeBagReturns true if the factory accepts the content of the attribute bag.
CreateInstanciate and initialize an object of type T0.