Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Utils.cs 537B

12345678910111213141516171819202122
  1. namespace UnityEngine.Rendering.UnifiedRayTracing
  2. {
  3. internal static class Utils
  4. {
  5. public static void Destroy(UnityEngine.Object obj)
  6. {
  7. if (obj != null)
  8. {
  9. #if UNITY_EDITOR
  10. if (Application.isPlaying && !UnityEditor.EditorApplication.isPaused)
  11. UnityEngine.Object.Destroy(obj);
  12. else
  13. UnityEngine.Object.DestroyImmediate(obj);
  14. #else
  15. UnityEngine.Object.Destroy(obj);
  16. #endif
  17. }
  18. }
  19. }
  20. }