コード例 #1
0
        public static void FindScriptReferences(MenuCommand command)
        {
            var scriptPath = CSObjectTools.GetScriptPathFromObject(command.context);

            ReferencesFinder.FindAssetReferences(scriptPath);
        }
コード例 #2
0
        public static void FindComponentReferences(MenuCommand command)
        {
            var scriptPath = CSObjectTools.GetScriptPathFromObject(command.context);

            ReferencesFinder.AddToSelectionAndRun(scriptPath);
        }
コード例 #3
0
        public static bool ValidateFindScriptReferences(MenuCommand command)
        {
            var scriptPath = CSObjectTools.GetScriptPathFromObject(command.context);

            return(!string.IsNullOrEmpty(scriptPath) && Path.GetExtension(scriptPath).ToLower() != ".dll");
        }
コード例 #4
0
        public static bool ValidateFindComponentReferences(MenuCommand command)
        {
            var scriptPath = CSObjectTools.GetScriptPathFromObject(command.context);

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