Class UnityObjectUtils
Utility methods for working with UnityEngine Object types.
Inherited Members
Namespace: Unity.XR.CoreUtils
Assembly: solution.dll
Syntax
public static class UnityObjectUtils
Methods
Name | Description |
---|---|
ConvertUnityObjectToType<T>(Object) | Returns a component of the specified type that is associated with an object, if possible. |
Destroy(Object, bool) | Calls the proper Destroy method on an object based on if application is playing. |
RemoveDestroyedKeys<TKey, TValue>(Dictionary<TKey, TValue>) | Removes any destroyed keys from a dictionary that uses UnityObjects as its key type. |
RemoveDestroyedObjects<T>(List<T>) | Removes any destroyed UnityObjects from a list. |