Table of Contents

Method AttachTo

Namespace
Velvet
Assembly
Velvet.Docs.dll

AttachTo(VisualElement)

Adds Sheet to root's UnityEngine.UIElements.VisualElement.styleSheets. Attach before mounting a tree, and to the element whose subtree needs the utilities — a panel root covers everything under it. Attaching twice is harmless.

public static void AttachTo(VisualElement root)

Parameters

root VisualElement