I can't find "SceneCapture2D" in "Add code To project" as parent

I’m finding the way which make minimap in my game.

and I found “StrategyMiniMapCapture” in “strategy game” sample.

It seems like a generated class by “Add code To project” in UE4Editor.

and I try to create my own project but I can’t find “SceneCapture2D class” in parent list.

How can I add It my project?

This seems to be due to ASceneCapture2D being marked as MinimalAPI (which makes it incompatible with the API export macro), but the validation logic in the class wizard only allows you to derive from classes which are API exported.

I’ll look in to this, but as a work around, you could just generate your class with a different base (like AActor) and then fix-up the generated code yourself to derive from ASceneCapture2D.

MinimalAPI classes now appear as valid bases in the class wizard:
https://github.com/EpicGames/UnrealEngine/commit/5dc4fc342843ee2c2914fe37e3bd046eb23ac684