 | UnityGameObjectUtilsSetScale Method |
Sets 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 void SetScale(
this Transform transform,
Transform ancestor,
Vector3 scale
)
<ExtensionAttribute>
Public Shared Sub SetScale (
transform As Transform,
ancestor As Transform,
scale As Vector3
)
public:
[ExtensionAttribute]
static void SetScale(
Transform^ transform,
Transform^ ancestor,
Vector3 scale
)
[<ExtensionAttribute>]
static member SetScale :
transform : Transform *
ancestor : Transform *
scale : Vector3 -> unit
Parameters
- transform
- Type: Transform
Transform to set scale for. - ancestor
- Type: Transform
Ancestor to which the scale should be relative. Null if global. - scale
- Type: Vector3
Absolute scale.
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