Help with placing foliage at runtime

Hey everyone,

I am doing procedural foliage and have managed to get it all working in the editor. I can spawn foliage in, remove foliage etc etc using the same functions the foliage painting tool does. The issue I now have is that those functions are WITH_EDITOR which means that they cause a package of the game to fail as the functions become undefined. Therefore I have two questions:

  1. Why are these functions editor only?
  2. Are there any alternatives which I simply haven’t found yet or is my only option to do my own custom engine build and move them out of the WITH_EDITOR pre-processor?

Any help is always appreciated.

Thanks in advance.