# Hot reload GetVariables blueprint

**URL:** <https://forums.unrealengine.com/t/hot-reload-getvariables-blueprint/303018>\
**Category:** Blueprint\
**Tags:** unreal-engine, bug-report, Blueprint, CPP, question, hot-reload\
**Created:** [January 4, 2015, 7:26pm UTC](https://forums.unrealengine.com/t/hot-reload-getvariables-blueprint/303018 "2015-01-04T19:26:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_7fb66735](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7fb66735](https://forums.unrealengine.com/u/anonymous_user_7fb66735)\
**Post date:** [January 4, 2015, 7:26pm UTC](https://forums.unrealengine.com/t/hot-reload-getvariables-blueprint/303018/1 "2015-01-04T19:26:03Z")

</div>

Hi,

I have notices that hot-reload fails a lot in how I use it. It seems like the “GetVariable” Nodes in blueprint doesn’t refresh their types when HotReloading classes that have been changed.

To better illustrate. I have setup a class in native:

```
UCLASS(Blueprintable,abstract)
class DREVIL_API UEvilSkill : public UObject
{
	GENERATED_BODY()
public:
	UEvilSkill( const FObjectInitializer& ObjectInitializer );

	UFUNCTION(BlueprintCallable,Category="Skill|Cooldown")
	virtual float GetCooldown();
};

```

And a blueprint

![25571-setup.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/b/86ba793d35eb7b53dccccdd227fa64ddb2183a39.png)

Where skill is a UEvilSkill.

Then I add a member to the class:

```
UCLASS(Blueprintable,abstract)
class DREVIL_API UEvilSkill : public UObject
{
	GENERATED_BODY()
public:
	UEvilSkill( const FObjectInitializer& ObjectInitializer );

	UFUNCTION(BlueprintCallable,Category="Skill|Cooldown")
	virtual float GetCooldown();

	UPROPERTY( EditDefaultsOnly, BlueprintReadOnly, Category = "Skill" )
	float Cooldown;
};

```

and recompiles in MSVS. (It doesn’t matter if I add properties or functions)

When compiling the blueprint again, the “GetVariable” node will be of type: HOTRELOADED\_EvilSkill0 (ie, it hasn’t updated to the new skill class) but target in GetCooldown will have been updated to EvilSkill.

 ![25573-error.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/3/ab308b3f6174fa4648718559a4da585180b923b8.png)

I can workaround the issue by dragging out a new GetVariable node to the Skill member. But it feels like a really damper to the workflow.

This is in 4.6.1 but I verified that the issue exists in 4.7.0 too. 4.6.1 is verified in Source-code version and binary downloaded version, and 4.7.0 is only verified in binary downloaded version.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [January 15, 2015, 11:01pm UTC](https://forums.unrealengine.com/t/hot-reload-getvariables-blueprint/303018/2 "2015-01-15T23:01:34Z")

</div>

Hey MarkusRannare-

I was able to reproduce the issue with the node pins not updating after a hot reload which has been reported to our internal tracking database (UE-7646). Currently the only workaround appears to be to close and reopen the editor to update the pins.

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7fb66735](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7fb66735](https://forums.unrealengine.com/u/anonymous_user_7fb66735)\
**Post date:** [January 19, 2015, 8:09pm UTC](https://forums.unrealengine.com/t/hot-reload-getvariables-blueprint/303018/3 "2015-01-19T20:09:52Z")

</div>

Thanks for letting me know! =)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7fb66735](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7fb66735](https://forums.unrealengine.com/u/anonymous_user_7fb66735)\
**Post date:** [January 20, 2015, 9:26am UTC](https://forums.unrealengine.com/t/hot-reload-getvariables-blueprint/303018/4 "2015-01-20T09:26:13Z")

</div>

I have tried 4.7.p3 where it seems to be resolved =) Thanks for really fast work =)
