Table of Contents

Class VCustom<T>

Namespace
Velvet.Experimental
Assembly
Velvet.Docs.dll

EXPERIMENTAL. Initializer-style builder for a custom UnityEngine.UIElements.VisualElement subclass. Maps to Custom<T>(string?, string?, string?, FiberElementProps?, Func<VisualElement, Action>?, VNode?[]?, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?, FiberEventBinding[]?); children added via the collection initializer are kept.

public sealed class VCustom<T> : VBuilder where T : VisualElement

Type Parameters

T

Concrete VisualElement subclass to instantiate.

Inheritance
object
VCustom<T>
Inherited Members

Constructors

VCustom(string?)

Methods

Build()

Converts this builder into a concrete VNode by delegating to the matching V.* factory.