Class Objects
Inheritance
System.Object
Objects
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GameKit.Dependencies.Utilities
Assembly: GameKit.Dependencies.dll
Syntax
public static class Objects
Methods
FindAllObjectsOfType<T>(Boolean, Boolean, Boolean, Boolean)
Finds all objects in the scene of type. This method is very expensive.
Declaration
public static List<T> FindAllObjectsOfType<T>(bool activeSceneOnly = true, bool requireSceneLoaded = false, bool includeDDOL = true, bool includeInactive = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | activeSceneOnly | |
System.Boolean | requireSceneLoaded | True if the scene must be fully loaded before trying to seek objects. |
System.Boolean | includeDDOL | |
System.Boolean | includeInactive |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<T> |
Type Parameters
Name | Description |
---|---|
T |
IsDestroyed(GameObject)
Returns if an object has been destroyed from memory.
Declaration
public static bool IsDestroyed(this GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | gameObject |
Returns
Type | Description |
---|---|
System.Boolean |