Method Register
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Register(string, VisualElement)
Registers a Portal mount target. A second registration of the same ID to a different element logs a warning and overwrites; restating the element already registered under it is silent.
public static void Register(string id, VisualElement target)
Parameters
idstringIdentifier used by Portal consumers to look up the mount target. Null or empty values are rejected with a warning.
targetVisualElementThe destination UnityEngine.UIElements.VisualElement that Portal children are appended to. Null is rejected with a warning.