Issue with ActorComponent suddenly not working returning 'none'

  1. Component(s) in my PlayerPawn C++

  1. Class heading, Declaration & Definition in my component for function in question (tho no functions in the component are working anymore)



  1. Blueprint images of function in use (these are within my PlayerPawn bp (CG_PlayerPawn_BP), which is set as the default PlayerPawn/PlayerCharacter:



image

For clarity this is the owning actor in the scene:
image

  1. Error Message

The component was working without issue for over a month. I was making a new UMG Widget not connected to this and suddenly it just quit working and showing ‘none’ on the various functions attached to this component. I disconnected all of them to work on fixing in the issue.

I was figuring the component was being garbage collection, so I attempted to fix it with C++ by adding in ‘AddInstanceComponent’ shown in the CG_PlayerPawn.

Do I just need to rebuild the component? Stop having it as a C++ component and create a blueprint copy of it. Any direction/help would be appreciate.

Please note this is being done in 5.0

Thank you in advance

~Brehon

As an update, I see this in my Outliner:

image

I was able to resolve by commenting out the component in the C++ file. cleaning the solution, then building it. Reload the blueprint. Save everything, exited out, restarted unreal engine, went into the C++ file, removed the comment hashes. Saved all /built all shut everything down, then restarted Unreal Engine and the component is once again working.

I hope this can help someone in the future.

2 Likes