Unity and Flutter apps Home Page
Work to create apps for generating revenue
Loading...
Searching...
No Matches
Utilities.GameObjectUtilities Class Reference

Used to create a copy of an object and optionally remove the active scripts and leave just the physics. More...

Inheritance diagram for Utilities.GameObjectUtilities:

Public Member Functions

GameObject CreateNewInstanceOfGameObject (GameObject originGo, String newObjectName, bool removeActiveScripts=true)
void RemoveComponentsWithJustScripts (GameObject gameObj)
 Inspects the game object components and removes those with just scripts.
String ConvertToSecs (float timeIn)

Static Public Member Functions

static Component GetComponentOfType< T > (GameObject gameObject)
static String ConvertToMinsAndSecs (float timeIn)

Detailed Description

Used to create a copy of an object and optionally remove the active scripts and leave just the physics.

Member Function Documentation

◆ ConvertToMinsAndSecs()

String Utilities.GameObjectUtilities.ConvertToMinsAndSecs ( float timeIn)
static

◆ ConvertToSecs()

String Utilities.GameObjectUtilities.ConvertToSecs ( float timeIn)

◆ CreateNewInstanceOfGameObject()

GameObject Utilities.GameObjectUtilities.CreateNewInstanceOfGameObject ( GameObject originGo,
String newObjectName,
bool removeActiveScripts = true )

◆ GetComponentOfType< T >()

Component Utilities.GameObjectUtilities.GetComponentOfType< T > ( GameObject gameObject)
static

◆ RemoveComponentsWithJustScripts()

void Utilities.GameObjectUtilities.RemoveComponentsWithJustScripts ( GameObject gameObj)

Inspects the game object components and removes those with just scripts.

Parameters
gameObj

The documentation for this class was generated from the following file: