parent
The parent of this VisualElement.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public VisualElement parent { get; }
Remarks
Unlike the parent property, this property reflects for logical hierarchy. For example, if you add an element to a ScrollView, the logical parent of this element is the ScrollView itself, whereas the physical parent returned by the parent property returns a child of ScrollView which acts as the parent of your element.