Click or drag to resize
RectTransformXGetPixelAdjustedRect Method
Gets the pixel adjusted rect.

Namespace: Candlelight
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static Rect GetPixelAdjustedRect(
	this RectTransform rectTransform,
	Canvas canvas
)

Parameters

rectTransform
Type: RectTransform
Rect transform.
canvas
Type: Canvas
Canvas.

Return Value

Type: Rect
The pixel adjusted rect.

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