AnimancerPreviewRenderer.

Drag2D(Vector2, Rect) Method

Summary

Handles drag input within a given `area`.

Syntax

public static Vector2 Drag2D(Vector2 scrollPosition, Rect area)

Remarks

Copied from Unity's PreviewGUI.Drag2D(UnityEngine.Vector2,UnityEngine.Rect).

Parameters

Name Type Description
scrollPosition Vector2
area Rect

Return Value

Type Description
Vector2