Beispiel #1
0
        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);
        }
Beispiel #2
0
 internal static void ExecuteGenesisCodeGeneration()
 {
     UnityCodeGenerator.GenerateAll();
 }