Click or drag to resize
RectTransformXGetWorldSize Method
Gets the size of the RectTransform's rect in world space.

Namespace: Candlelight
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static Vector2 GetWorldSize(
	this RectTransform rectTransform
)

Parameters

rectTransform
Type: RectTransform
Rect transform.

Return Value

Type: Vector2
The size of the RectTransform's rect in world space.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type RectTransform. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also