Click or drag to resize

FingersScrollViewComponentScriptZoomRectForScaleAndCenter Method

Get a rect that will be fully visible centered around a center point at a scale TODO: Add a function to zoom to a rect with animation

Namespace:  DigitalRubyShared
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public Rect ZoomRectForScaleAndCenter(
	float scale,
	Vector2 center
)

Parameters

scale
Type: SystemSingle
Scale
center
Type: Vector2
Center point

Return Value

Type: Rect
Rect that is fully visible at scale and center point
See Also