Table of Contents

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

gameObject GameObject

The 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

gameObject GameObject

The UnityEngine.GameObject to modify.

scale Vector3

The new scale.