Class UIToolkitComponent
Description
Base class for generic UI Toolkit Component
Syntax
[ExecuteAlways]
[DefaultExecutionOrder(-99)]
public abstract class UIToolkitComponent : MonoBehaviourProperties
| Name | Description |
|---|---|
| Document | |
| OverrideHost | Chooses a template as host instead of the main document. |
| SearchFrom | Targets children from the parent's container (indirect) or via the hierarchy (direct). |
| Selector | |
| Target | Targets the first, last or all active elements. |
Methods
| Name | Description |
|---|---|
| AddCustomStyles(StyleSheet) | Adds custom style for all targeted elements. |
| AddCustomStyles(params StyleSheet[]) | Adds custom styles for all targeted elements. |
| Count() | Count the number of active elements |
| ForceElementsUpdate() | Forces elements to be updated. |
| RemoveCustomStyles(StyleSheet) | Removes custom style from all targeted elements. |
| RemoveCustomStyles(params StyleSheet[]) | Removes custom styles from all targeted elements. |
| SetSelectorFromText(string) | |
| SetSelectorFromText(string, out string) | |
| Validate() | Checks if the document and the selector is valid. |
