Class UxmlFactory<TCreatedType, TTraits>
  
  
  
  
    Inheritance
    
    UxmlFactory<TCreatedType, TTraits>
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
   
  
  
  
  Assembly: UnityEngine.dll
  Syntax
  
    public class UxmlFactory<TCreatedType, TTraits> : IUxmlFactory where TCreatedType : VisualElement where TTraits : UxmlTraits, new()
   
  Type Parameters
  
    
      
        | Name | Description | 
    
    
      
        | TCreatedType |  | 
      
        | TTraits |  | 
    
  
  Constructors
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  UxmlFactory()
  
  
  Declaration
  
  Fields
  
  
    |
    Improve this Doc
  
  
    View Source
  
  m_Traits
  
  
  Declaration
  
    protected TTraits m_Traits
   
  Field Value
  
  Properties
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  canHaveAnyAttribute
  
  
  Declaration
  
    public bool canHaveAnyAttribute { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CreatesType
  
  
  Declaration
  
    [Obsolete("Use uxmlName and uxmlNamespace instead.")]
public Type CreatesType { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  substituteForTypeName
  
  
  Declaration
  
    public virtual string substituteForTypeName { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  substituteForTypeNamespace
  
  
  Declaration
  
    public virtual string substituteForTypeNamespace { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  substituteForTypeQualifiedName
  
  
  Declaration
  
    public virtual string substituteForTypeQualifiedName { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  uxmlAttributesDescription
  
  
  Declaration
  
    public virtual IEnumerable<UxmlAttributeDescription> uxmlAttributesDescription { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  uxmlChildElementsDescription
  
  
  Declaration
  
    public virtual IEnumerable<UxmlChildElementDescription> uxmlChildElementsDescription { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  uxmlName
  
  
  Declaration
  
    public virtual string uxmlName { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  uxmlNamespace
  
  
  Declaration
  
    public virtual string uxmlNamespace { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  uxmlQualifiedName
  
  
  Declaration
  
    public virtual string uxmlQualifiedName { get; }
   
  Property Value
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  AcceptsAttributeBag(IUxmlAttributes)
  
  
  Declaration
  
    [Obsolete("Call or override AcceptsAttributeBag(IUxmlAttributes bag, CreationContext cc) instaed")]
public virtual bool AcceptsAttributeBag(IUxmlAttributes bag)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  AcceptsAttributeBag(IUxmlAttributes, CreationContext)
  
  
  Declaration
  
    public virtual bool AcceptsAttributeBag(IUxmlAttributes bag, CreationContext cc)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Create(IUxmlAttributes, CreationContext)
  
  
  Declaration
  
    public virtual VisualElement Create(IUxmlAttributes bag, CreationContext cc)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  DoCreate(IUxmlAttributes, CreationContext)
  
  
  Declaration
  
    [Obsolete("Remove and implemenent a default constructor for the created type instead.")]
protected virtual TCreatedType DoCreate(IUxmlAttributes bag, CreationContext cc)
   
  Parameters
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | TCreatedType |  | 
    
  
  Implements
  
  Extension Methods