Rect.center
Declaration
public Vector2 center;Описание
Положение центра прямоугольника.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Rect rect = new Rect(0, 0, 100, 100); print(rect.center); rect.center = new Vector2(50, 50); } }