Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CalculatePosition(float, float, float, float)

Calculate new position of the dragged element.
Read time 1 minuteLast updated 12 days ago

Definition

protected Rect CalculatePosition(float x, float y, float width, float height)

Parameters

New x position.

New y position.

width

Element width.

height

Element height.

Returns

Type

Description

RectCalculated and validated position.