Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How can we Ship Games that use custom animation nodes?

Dear Friends at Epic,

Since we cannot include anything from the Editor Source,

How can we ship games that have custom animation nodes that we use in the editor in our Animation Blueprints?

Private Dependencies

I have to include Animgraph and BlueprintGraph in my private dependencies in order to get my custom animation nodes to work!

Specifically for the animgraph node

 #pragma once
 #include "AnimGraphNode_Base.h"
 #include "AnimGraphDefinitions.h"
 #include "Kismet2/BlueprintEditorUtils.h"
 #include "AnimNode_VictoryTurnInPlace.h"
 #include "AnimGraphNode_VictoryTurnInPlace.generated.h"
 //Whole point of this is to be wrapper for node struct
 //        so it depends on it, and that node must compile first
 //        for type to be recognized
 class UAnimGraphNode_VictoryTurnInPlace : public UAnimGraphNode_Base

But these headers depend on UnrealEd, so when I go to ship my project it cannot compile UnrealEd.

So how do I build and use custom animation nodes?



Product Version: Not Selected
more ▼

asked Jun 11 '14 at 11:14 PM in Legal & Licensing

avatar image

10.6k 446 343 1086

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You're allowed to extend and modify the editor however you want to in order to create your game, including adding your own custom anim graph nodes. But as you indicated, you are not allowed to ship anything that depends on our editor code. Luckily, there is no need to!

You should create a new game module inside your game project that will contain only editor-specific code. For example, if your primary game module is called "MyGame", you would create another module alongside it called "MyGameEditor". This module will contain all of your editor-specific stuff for your game, such as your custom anim graph node.

Then, edit your "MyGameEditor.Target.cs" file, and make sure that your "MyGameEditor" module is listed in the "ExtraModuleNames" in the SetupBinaries() function. This means that when compiling your game as an editor DLL, your game's special editor module will be compiled too.

Because your "MyGame.Target.cs" file does not list "MyGameEditor" as a dependency, your editor features will be omitted when compiling your actual shipping game.

This is the pattern that we use for all of our games here at Epic.


more ▼

answered Jun 12 '14 at 04:31 PM

avatar image

Dark-Veil STAFF
836 11 8 29

avatar image Dark-Veil STAFF Jun 12 '14 at 04:33 PM

I also forgot to mention, after adding your "MyGameEditor" module, you should also edit your "MyGame.uproject" file and add an entry for your editor-specific module to that file, so that the engine knows about it and will load it at startup.

For example:

 "Modules": [
         "Name": "MyGame",
         "Type": "Runtime",
         "LoadingPhase": "Default"
         "Name": "MyGameEditor",
         "Type": "Editor",
         "LoadingPhase": "Default"
avatar image Rama Jun 13 '14 at 08:26 AM

Thank you very much Mike (Hi Mike!) for your detailed and very helpful answer!


(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question