parent
The parent of this VisualElement.
読み終わるまでの所要時間 1 分最終更新 20日前
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public VisualElement parent { get; }
Remarks
Unlike the VisualElement.Hierarchy.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 VisualElement.Hierarchy.parent property returns a child of ScrollView which acts as the parent of your element.