OndrejNepozitek / Edgar-Unity

Unity Procedural Level Generator
https://ondrejnepozitek.github.io/Edgar-Unity/docs/introduction
MIT License
820 stars 70 forks source link

"Disable Custom Post Processing Tasks" Missing check in Platformer Generator #98

Closed nicvst closed 3 years ago

nicvst commented 3 years ago

DungeonGeneratorBase.cs checks if post processing is disabled with this code:

var customPostProcessTasks = !DisableCustomPostProcessing
        ? CustomPostProcessTasks
        : new List<DungeonGeneratorPostProcessBase>();
return new PostProcessTask(PostProcessConfig, () => new DungeonTilemapLayersHandler(), customPostProcessTasks);

DungeonGenerator.cs doesn't override this method, so it works fine. However, in the pro version, PlatformerGenerator.cs overrides this method and does not add the post processing check back in, making the Platformer Generator always execute post processing tasks.

Using the code above in that method in the Platformer Generator works.

OndrejNepozitek commented 3 years ago

Thanks for the report! I was just in the process of releasing a small hotfix so I'll include this in it.