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.
 
 
 

19 lines
569 B

  1. using UnityEngine;
  2. namespace SUISS.Core.Utilities
  3. {
  4. public static class StackTraceUtility
  5. {
  6. public static string ExtractStackTrace()
  7. {
  8. return UnityEngine.StackTraceUtility.ExtractStackTrace();
  9. }
  10. public static bool IsCalledFrom(string methodNameToSearchFor, int stackTraceHistoryAmount = 1, bool logIfFound = false)
  11. {
  12. UnityEngine.Debug.LogWarning("IsCalledFrom is not to be used out of the editor. Please remove it from your code.");
  13. return false;
  14. }
  15. }
  16. }