Class AspectRatioPanel.UxmlTraits
Defines the UXML attributes for AspectRatioPanel and handles initializing them when creating the element from UXML.
[Preserve]
public class AspectRatioPanel.UxmlTraits : VisualElement.UxmlTraits
Inheritance
Properties
uxmlChildElementsDescription
Describes child elements allowed inside the AspectRatioPanel. None in this case.
public override IEnumerable<UxmlChildElementDescription> uxmlChildElementsDescription { get; }
Property Value
Methods
Init(VisualElement, IUxmlAttributes, CreationContext)
Initializes the AspectRatioPanel with values from UXML attributes.
public override void Init(VisualElement visualElement, IUxmlAttributes attributes, CreationContext creationContext)
Parameters
| Name | Type | Description |
|---|---|---|
visualElement | VisualElement | The element instance being initialized. |
attributes | IUxmlAttributes | Attributes from the UXML file. |
creationContext | CreationContext | Context for UXML creation. |