ScrollRect

csharp
public sealed class ScrollRect : Behaviour

Namespace NodeWorld.Flux.

A Scroll Rect of a canvas of the world.

Properties

normalizedPosition

csharp
public Vector2 normalizedPosition { get; set; }

Scroll position, 0 to 1 on each axis.

verticalNormalizedPosition

csharp
public float verticalNormalizedPosition { get; set; }

Vertical scroll position, 0 (bottom) to 1 (top).

horizontalNormalizedPosition

csharp
public float horizontalNormalizedPosition { get; set; }

Horizontal scroll position, 0 (left) to 1 (right).

onValueChanged

csharp
public UiEvent<Vector2> onValueChanged { get; }

The scroll position changed, with the new one.