Class GameObjectExtensions
- Namespace
- Exiled.API.Extensions
- Assembly
- Exiled.API.dll
A set of extensions for UnityEngine.GameObject.
public static class GameObjectExtensions
- Inheritance
-
GameObjectExtensions
- Inherited Members
Methods
GetWorldScale(GameObject)
Gets the global scale of a GameObject.
public static Vector3 GetWorldScale(this GameObject gameObject)
Parameters
gameObjectGameObjectThe UnityEngine.GameObject to check.
Returns
- Vector3
The global scale of the provided UnityEngine.GameObject.
SetWorldScale(GameObject, Vector3)
Sets the global scale of a GameObject.
public static void SetWorldScale(this GameObject gameObject, Vector3 scale)
Parameters
gameObjectGameObjectThe UnityEngine.GameObject to modify.
scaleVector3The new scale.