Download

Cannot add code for TriggerBox

Hello guys,

I’m trying to add code for a custom class of “TriggerBox”. I go through the editor and select “add code” and select “TriggerBox” as my parent class. However, when I try to add it I get this error:

“Failed to add class TriggerBoxSeath. Failed to automatically compile the [My project name] module.”

This is is what is logged when the error occurs:


ProjectKnightEditor - D:\Dev\Unreal Projects\ProjectKnight\Source\ProjectKnightEditor.Target.cs

ERROR: Couldn't find target rules file for target 'UE4Editor' in rules assembly 'UE4Editor_EditorRecompileModuleRules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Location: D:\Dev\Unreal Projects\ProjectKnight\Intermediate\Build\BuildRules\UE4Editor_EditorRecompileModuleRules.dll

Target rules found:
     ProjectKnight - D:\Dev\Unreal Projects\ProjectKnight\Source\ProjectKnight.Target.cs
     ProjectKnightEditor - D:\Dev\Unreal Projects\ProjectKnight\Source\ProjectKnightEditor.Target.cs

Any help for this issue?

bumping this thread

I’m getting the exact same error with the given target, regardless of what code I try to add. Anything I try is coming up with this same error.

Do you have Visual Studio installed? It’s required to compile C++