AvatarReady
Loading...
Searching...
No Matches
Inria.Avatar.AvatarReady.DestroyUtils Class Reference

Utility class that contain a method to correctly destroy a Unity component without having to know if we are in Editor or Play mode. More...

Static Public Member Functions

static void Destroy (Object obj)
 Destroys a UnityEngine.Object safely. Use either Destroy or DestroyImmediate when needed.
 

Detailed Description

Utility class that contain a method to correctly destroy a Unity component without having to know if we are in Editor or Play mode.

Member Function Documentation

◆ Destroy()

static void Inria.Avatar.AvatarReady.DestroyUtils.Destroy ( Object obj)
inlinestatic

Destroys a UnityEngine.Object safely. Use either Destroy or DestroyImmediate when needed.

Parameters
objObject to be destroyed.

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