Exemplo n.º 1
0
        public static void FindScriptReferences(MenuCommand command)
        {
            var scriptPath = CSObjectTools.GetScriptPathFromObject(command.context);

            ReferencesFinder.FindAssetReferences(scriptPath);
        }
Exemplo n.º 2
0
        public static void FindComponentReferences(MenuCommand command)
        {
            var scriptPath = CSObjectTools.GetScriptPathFromObject(command.context);

            ReferencesFinder.AddToSelectionAndRun(scriptPath);
        }
Exemplo n.º 3
0
        public static bool ValidateFindScriptReferences(MenuCommand command)
        {
            var scriptPath = CSObjectTools.GetScriptPathFromObject(command.context);

            return(!string.IsNullOrEmpty(scriptPath) && Path.GetExtension(scriptPath).ToLower() != ".dll");
        }
Exemplo n.º 4
0
        public static bool ValidateFindComponentReferences(MenuCommand command)
        {
            var scriptPath = CSObjectTools.GetScriptPathFromObject(command.context);

            return(!string.IsNullOrEmpty(scriptPath));
        }