Skip to main content
Version: 1.1.0

Views and composition

This reference documents every current public declaration in this part of Pine. Examples run inside App.Mount(), a component factory, or an explicit P.Root(...) unless they only create state/configuration. Explicit P.Mount(...) remains available for advanced ownership. Variable names such as count, items and label refer to the typed values described by each example. All APIs run on Unity’s main thread.

View​

View

A deferred native UI declaration.

P.Self​

public static View Self(View view)

P.Declare​

public static View Declare<T>(
Action<T> configure = null,
Action<T> reference = null,
bool modifier = false,
Value<bool>? active = null,
View[] children = null,
View[] components = null
)
where T : Component
public static View Declare<T>(
Func<IEnumerable<View>> children,
Action<T> configure = null,
Action<T> reference = null,
Value<bool>? active = null,
View[] components = null
)
where T : Component

P.Mount​

public static Mount Mount(
Func<View> component,
Transform parent = null,
CanvasOptions options = null
)
public static Mount Mount(View view, Transform parent = null, CanvasOptions options = null)