Blueprint Bugs: Difference between revisions

From Unreal Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:


<P>
<P>
//UCP_HelperFunctions is a Component<P>
TObjectPtr<UCP_HelperFunctions> CP_HF;<br> This causes the error  
TObjectPtr<UCP_HelperFunctions> CP_HF;<br> This causes the error  
<P>
<P>
Line 20: Line 22:




Fix 2: I also had this issue when I added a parameter to one of my functions, I had to clean the build, rebuild all<br>
close the editor and start than the issues was fixed


</blockquote>
</blockquote>

Latest revision as of 18:15, 16 May 2025


  1. Cannot find corresponding variable (make sure component has been assigned to one)

This can happen when you try to drag a component that was declared in c++ into the graph of blueprints

//UCP_HelperFunctions is a Component

TObjectPtr<UCP_HelperFunctions> CP_HF;
This causes the error

UCP_HelperFunctions* CP_HF
Use The Object pointer directly like above and not TObectPTr Fix 2: I also had this issue when I added a parameter to one of my functions, I had to clean the build, rebuild all
close the editor and start than the issues was fixed