Class UIElementsEditorUtility
A utility class for executing operations related to UIElements.
Namespace: Unity.AnimeToolbox.Editor
Syntax
public class UIElementsEditorUtility
Methods
LoadAndAddStyle(VisualElementStyleSheetSet, String, String)
Load UIElement style file and adds it to StyleSheetSet
Declaration
public static void LoadAndAddStyle(VisualElementStyleSheetSet set, string pathWithoutExt, string ext = ".uss")
Parameters
Type | Name | Description |
---|---|---|
VisualElementStyleSheetSet | set | StyleSheetSet to which the new StyleSheet will be added |
String | pathWithoutExt | Path to the file without the extension |
String | ext | The extension of the file. Assumed to be ".uss" |
LoadVisualTreeAsset(String, String)
Load a UXML file
Declaration
public static VisualTreeAsset LoadVisualTreeAsset(string pathWithoutExt, string ext = ".uxml")
Parameters
Type | Name | Description |
---|---|---|
String | pathWithoutExt | the path to the UXML file without the extension |
String | ext | The extension of the UXML file. Assumed to be ".uxml" |
Returns
Type | Description |
---|---|
VisualTreeAsset |