 | UnityGameObjectUtilsGetScale Method |
Returns the absolute scale of the specified transform relative to the specified ancestor.
Namespace: Slash.Unity.Common.UtilsAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntaxpublic static Vector3 GetScale(
this Transform transform,
Transform ancestor
)
<ExtensionAttribute>
Public Shared Function GetScale (
transform As Transform,
ancestor As Transform
) As Vector3
public:
[ExtensionAttribute]
static Vector3 GetScale(
Transform^ transform,
Transform^ ancestor
)
[<ExtensionAttribute>]
static member GetScale :
transform : Transform *
ancestor : Transform -> Vector3
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:
Vector3Absolute 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