コード例 #1
0
        public static void members(Type t, string search = null)
        {
            HashSet <string> autocompleteWords = new HashSet <string>();

            CommandConsole.TypeEnumerate(ref autocompleteWords, new Type[] { t });

            if (search == null)
            {
                foreach (string s in autocompleteWords)
                {
                    Debug.Log(s);
                }
            }
            else
            {
                foreach (string s in autocompleteWords)
                {
                    if (s.ToLower().StartsWith(search.ToLower()))
                    {
                        Debug.Log(s);
                    }
                }
            }
        }