Rect.ToString 转字符串

function ToString () : string
function ToString (format : string) : string

Description描述

Returns a nicely formatted string for this Rect.

对于矩形返回格式化好的字符串。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public Rect rect = new Rect(0, 0, 10, 10);
	public void Awake() {
		print(rect);
	}
}
var rect = Rect (0, 0, 10, 10);
print (rect);
Page last updated: 2010-12-21