Class UxmlFilePathAttribute
Attribute to specify the path to the UXML file for a VisualElement
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class UxmlFilePathAttribute : Attribute
Constructors
UxmlFilePathAttribute(string)
Constructor
Declaration
public UxmlFilePathAttribute(string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath | The path to the UXML file |
Remarks
Defaults to UxmlFilePathType.Resources
UxmlFilePathAttribute(string, UxmlFilePathType)
Constructor
Declaration
public UxmlFilePathAttribute(string filePath, UxmlFilePathType pathType)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath | The path to the UXML file |
| UxmlFilePathType | pathType | The type of path used for loading |
Properties
filePath
The path to the UXML file
Declaration
public string filePath { get; }
Property Value
| Type | Description |
|---|---|
| string |
pathType
The type of path used for loading (AssetDatabase or Resources)
Declaration
public UxmlFilePathType pathType { get; }
Property Value
| Type | Description |
|---|---|
| UxmlFilePathType |