Solution is adding UMG module to PublicDependencyModuleNames in ur build.cs file. Thanks for nothing.