ドキュメント

Unity Engine

Unity Engine

CalculatePosition(float, float, float, float)

Calculate new position of the dragged element.
読み終わるまでの所要時間 1 分最終更新 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.