Click or drag to resize
UnityGameObjectUtilsGetScale Method
Returns the absolute scale of the specified transform relative to the specified ancestor.

Namespace: Slash.Unity.Common.Utils
Assembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntax
public static Vector3 GetScale(
	this Transform transform,
	Transform ancestor
)

Parameters

transform
Type: Transform
Transform to get scale for.
ancestor
Type: Transform
Ancestor to which the scale should be relative. Null if global.

Return Value

Type: Vector3
Absolute scale of the specified transform relative to the specified ancestor.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Transform. 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