Click or drag to resize
UnityGameObjectUtilsSetScale Method
Sets 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 void SetScale(
	this Transform transform,
	Transform ancestor,
	Vector3 scale
)

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