Content-Length: 18093 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Rect-center.html
The position of the center of the rectangle.
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); } }
Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Rect-center.html
Alternative Proxies: