Blueprint Bugs: Difference between revisions

From Unreal Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
TObjectPtr<UCP_HelperFunctions> CP_HF;<br> This causes the error  
TObjectPtr<UCP_HelperFunctions> CP_HF;<br> This causes the error  
<P>
<P>
UCP_HelperFunctions* CP_HF<br> Use The Object pointer directly and not TObectPTr
UCP_HelperFunctions* CP_HF<br> Use The Object pointer directly like above and not TObectPTr






</blockquote>
</blockquote>

Revision as of 00:55, 25 February 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

TObjectPtr<UCP_HelperFunctions> CP_HF;
This causes the error

UCP_HelperFunctions* CP_HF
Use The Object pointer directly like above and not TObectPTr