文档

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.