public string ToString ();
public string ToString (string format);

描述

对于此 Rect,返回整齐格式化的字符串。

using UnityEngine;

public class Example : MonoBehaviour { void Start() { Rect rect = new Rect(0, 0, 10, 10); print(rect); } }