HasComponent<T>()
Checks whether a component of type T is attached to this element.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public bool HasComponent<T>() where T : struct, IVisualElementComponent
Returns
Type | Description |
|---|---|
| bool | |