Rect.ToString
function ToString () : string
function ToString (format : string) : string
Description
Returns a nicely formatted string for this Rect.
var rect = Rect (0, 0, 10, 10);
print (rect);
using UnityEngine;
using System.Collections;
public class example :
MonoBehaviour {
public Rect rect =
new Rect(0, 0, 10, 10);
void Awake() {
print(rect);
}
}
import UnityEngine
import System.Collections
class example(
MonoBehaviour):
public rect as Rect = Rect(0, 0, 10, 10)
def
Awake():
print(rect)