Version: 2020.3
언어: 한국어
public Vector2 center ;

설명

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(10, 10); } }