public static void InitiateSingleGenesisRun() { Assert.IsNotNull(Selection.assetGUIDs); Assert.IsTrue(Selection.assetGUIDs.Length >= 1); var settingsData = Selection.assetGUIDs.Select( assetGUID => { var assetPath = AssetDatabase.GUIDToAssetPath(assetGUID); return(AssetDatabase.LoadAssetAtPath <GenesisSettings>(assetPath)); }) .ToArray(); UnityCodeGenerator.GenerateMultiple(settingsData); }
internal static void ExecuteGenesisCodeGeneration() { UnityCodeGenerator.GenerateAll(); }