# UFUNCTION(BlueprintCallable) not working

**URL:** <https://forums.unrealengine.com/t/ufunction-blueprintcallable-not-working/312047>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint\
**Created:** [March 21, 2015, 10:54pm UTC](https://forums.unrealengine.com/t/ufunction-blueprintcallable-not-working/312047 "2015-03-21T22:54:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![A00958821\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@A00958821\_1](https://forums.unrealengine.com/u/A00958821_1)\
**Post date:** [March 21, 2015, 10:54pm UTC](https://forums.unrealengine.com/t/ufunction-blueprintcallable-not-working/312047/1 "2015-03-21T22:54:55Z")

</div>

Hello, I was following the C++ programing tutorial for UE4, [Programming with C++ in Unreal Engine | Unreal Engine 5.1 Documentation](https://docs.unrealengine.com/latest/INT/Programming/Introduction/index.html)  
but had some trouble with UFUNCTION(BlueprintCallable, Category=“Damage”)

The thing is that eventhoug I use the function in the code I can’t see it in the blue prints, nor the category “Damage”.  
In my Actor.cpp I have the following:

void AMyActor::CalculateValues()  
{  
DamagePerSecond = TotalDamage / DamageTimeInSeconds;  
}

and in Actor.h i have:  
public:  
UFUNCTION(BlueprintCallable, Category = “Damage”)  
void CalculateValues();

Im trying to use the CalculateValues() function in the blueprints, but the function is not there.  
Help please

---

<div class="post-metadata">

**Author:** ![A00958821\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@A00958821\_1](https://forums.unrealengine.com/u/A00958821_1)\
**Post date:** [March 22, 2015, 12:54am UTC](https://forums.unrealengine.com/t/ufunction-blueprintcallable-not-working/312047/2 "2015-03-22T00:54:32Z")

</div>

Ok, I don’t know what happened, but I closed everything and went for a break, when I opened everything again BAM, there was the function… soo problem solved I guess, but why it happened?

---

<div class="post-metadata">

**Author:** ![A00958821\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@A00958821\_1](https://forums.unrealengine.com/u/A00958821_1)\
**Post date:** [March 22, 2015, 1:13am UTC](https://forums.unrealengine.com/t/ufunction-blueprintcallable-not-working/312047/3 "2015-03-22T01:13:07Z")

</div>

nvm… it stopped working, please heeelp

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [March 22, 2015, 2:21am UTC](https://forums.unrealengine.com/t/ufunction-blueprintcallable-not-working/312047/4 "2015-03-22T02:21:31Z")

</div>

You sure your code is compiled? How did you added that class? is the rest of the code working? Also don’t post answer if it’s not answer or it’s not notification that you find solution. I moved you answers to comments because as you stated problem is not solved

---

<div class="post-metadata">

**Author:** ![A00958821\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@A00958821\_1](https://forums.unrealengine.com/u/A00958821_1)\
**Post date:** [March 22, 2015, 6:57am UTC](https://forums.unrealengine.com/t/ufunction-blueprintcallable-not-working/312047/5 "2015-03-22T06:57:45Z")

</div>

Ok, sorry for commenting as answers, im new here actually, and the problem is gone, I used de debug - sart new instance option instead of the build option (which is the one I was using previously) and the problemas is gone, thank you

---

<div class="post-metadata">

**Author:** ![A00958821\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@A00958821\_1](https://forums.unrealengine.com/u/A00958821_1)\
**Post date:** [March 22, 2015, 6:59am UTC](https://forums.unrealengine.com/t/ufunction-blueprintcallable-not-working/312047/6 "2015-03-22T06:59:14Z")

</div>

and now… how do I set this question as solved?

---

<div class="post-metadata">

**Author:** ![akisolo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@akisolo](https://forums.unrealengine.com/u/akisolo)\
**Post date:** [April 2, 2019, 3:02pm UTC](https://forums.unrealengine.com/t/ufunction-blueprintcallable-not-working/312047/7 "2019-04-02T15:02:12Z")

</div>

Where is that I can’t find it
