기술 자료

Unity Engine

Unity Engine

CalculatePosition(float, float, float, float)

Calculate new position of the dragged element.
읽는 시간 1분최근 업데이트: 한 달 전

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.