UIRectEditor.GetCamera C# (CSharp) Method

GetCamera() static protected method

Pass something like leftAnchor.target to get its rectangle reference.
static protected GetCamera ( UnityEditor.SerializedProperty sp ) : Camera
sp UnityEditor.SerializedProperty
return Camera
	static protected Camera GetCamera (SerializedProperty sp)
	{
		Transform target = sp.objectReferenceValue as Transform;
		if (target == null) return null;
		return target.camera;
	}