# Custom animation node has been deleted when I restart editor

**URL:** <https://forums.unrealengine.com/t/custom-animation-node-has-been-deleted-when-i-restart-editor/451578>\
**Category:** Character & Animation\
**Tags:** custom-build-step, unreal-engine, editor, UE4, question\
**Created:** [July 2, 2019, 5:37am UTC](https://forums.unrealengine.com/t/custom-animation-node-has-been-deleted-when-i-restart-editor/451578 "2019-07-02T05:37:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ReU4752](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ReU4752](https://forums.unrealengine.com/u/ReU4752)\
**Post date:** [July 2, 2019, 5:37am UTC](https://forums.unrealengine.com/t/custom-animation-node-has-been-deleted-when-i-restart-editor/451578/1 "2019-07-02T05:37:09Z")

</div>

I have created custom animation node. I placed AnimNode to ingame module and AnimGraphNode to editor-only module. I deployed custom animation node to animation blueprint and saved it. But When I restart editor, Custom animation node has been deleted. (Node wasn’t show up in the animation blueprint.)

[Deploy and Save]

 ![281288-save.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/6/e66b0902eec22d54effb3ee10084a8846650b639.jpeg)

[Restarted editor]

 ![281289-restart.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/2/0b21bb6f1b76595149440aa317e2392bd7d221ee.png)

[MyGame.Build.cs]

```
public class MyGame : ModuleRules
{
	public MyGame(ReadOnlyTargetRules Target) : base(Target)
	{
		PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
	
		PublicDependencyModuleNames.AddRange(new string[] 
		{
            "Core",
            "CoreUObject",
            "Engine",
            "OnlineSubsystem",
            "OnlineSubsystemUtils",
            "AssetRegistry",
            "NavigationSystem",
            "GameplayTasks",
            "InputCore",
			"UMG",
            "AIModule",
			"Slate", 
			"SlateCore",
			"AnimGraphRuntime"
		});
	}
}

```

[MyGameEditor.Build.cs]

```
public class MyGameEditor : ModuleRules
{
    public MyGameEditor(ReadOnlyTargetRules Target) : base(Target)
    {
        PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
		bFasterWithoutUnity = true;

		PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "MyGame", "AnimGraph", "BlueprintGraph" });

        //Only if you created the Public and Private folder paths
        PublicIncludePaths.AddRange(
            new string[]
            {
				"MyGameEditor/Public"
			});

        PrivateIncludePaths.AddRange(
            new string[]
            {
				"MyGameEditor/Private"
			});
    }
}

```

[MyGameEditor.Target.cs]

```
public class MyGameEditorTarget : TargetRules
{
	public MyGameEditorTarget(TargetInfo Target) : base(Target)
	{
		Type = TargetType.Editor;

		ExtraModuleNames.AddRange( new string[] { "MyGame", "MyGameEditor" } );
	}
}

```

[MyAnimGraphNode\_Recoil.h]

```
UCLASS()
class MYGAMEEDITOR_API UMyAnimGraphNode_Recoil : public UAnimGraphNode_SkeletalControlBase
{
	GENERATED_BODY()
	
public:
	UPROPERTY(EditAnywhere, Category = Settings)
	FMyAnimNode_Recoil Node;

	// UEdGraphNode interface
	virtual FLinearColor GetNodeTitleColor() const override;
	virtual FText GetTooltipText() const override;
	virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
	virtual FString GetNodeCategory() const override;

	// UAnimGraphNode_SkeletalControlBase interface
	virtual FText GetControllerDescription() const override;
	virtual const FAnimNode_SkeletalControlBase* GetNode() const override { return &Node; }
	// End of UAnimGraphNode_SkeletalControlBase interface

private:
	/** Constructing FText strings can be costly, so we cache the node's title */
	FNodeTitleTextTable CachedNodeTitles;
};
```

---

<div class="post-metadata">

**Author:** ![BigShip](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BigShip](https://forums.unrealengine.com/u/BigShip)\
**Post date:** [March 11, 2021, 3:14am UTC](https://forums.unrealengine.com/t/custom-animation-node-has-been-deleted-when-i-restart-editor/451578/2 "2021-03-11T03:14:37Z")

</div>

Hi, Had you fixed this problem? I Had the same problem, and I fixed it.

Maybe you need to check you XXX.uplugin 's “Modules, LoadingPhase”

I Changed the “LoadingPhase" to Default , and the custom animnode which in plugin can be saved.
