Ejemplo n.º 1
0
        private static void GetAvailableDataTypes(out Type[] types, out string[] labels)
        {
            types  = ScriptableDataUtilities.GetAllDataTypes().OrderBy(type => type.FullName).ToArray();
            labels = new string[types.Length + 1];

            // First option is always none
            labels[0] = "None";

            for (int i = 0; i < types.Length; i++)
            {
                labels[i + 1] = $"{types[i].Name} ({types[i].FullName})";
            }
        }
        public static void GenerateAllTypes()
        {
            var types = ScriptableDataUtilities.GetAllDataTypes();

            if (types.Count > 0)
            {
                Logger.Log(GetTypeGenLogMessage(types));
                GenerateForDataTypes(types.ToArray());
            }
            else
            {
                Logger.Log("No scriptable data types were found, doing nothing.");
            }
        }