public static void FindScriptReferences(MenuCommand command) { var scriptPath = CSObjectTools.GetScriptPathFromObject(command.context); ReferencesFinder.FindAssetReferences(scriptPath); }
public static void FindComponentReferences(MenuCommand command) { var scriptPath = CSObjectTools.GetScriptPathFromObject(command.context); ReferencesFinder.AddToSelectionAndRun(scriptPath); }
public static bool ValidateFindScriptReferences(MenuCommand command) { var scriptPath = CSObjectTools.GetScriptPathFromObject(command.context); return(!string.IsNullOrEmpty(scriptPath) && Path.GetExtension(scriptPath).ToLower() != ".dll"); }
public static bool ValidateFindComponentReferences(MenuCommand command) { var scriptPath = CSObjectTools.GetScriptPathFromObject(command.context); return(!string.IsNullOrEmpty(scriptPath)); }