Hi Clayton,
Sorry for the delayed response. I tried to reproduce the issue that you described, but it appeared to be working for me. I may have created my setup a little differently from you, though. This is what I did.
- Created a new code Actor class.
- Added a
UActorComponent
to the class. - Added the function you supplied to the class.
- Created a Blueprint of the new class in the Editor.
- Placed a few instances of the Blueprint into the level.
- Started PIE.
This resulted in the output from the function in step 3 being output to the log for each instance of the Blueprint in the level. For any object in the level that contained a UActorComponent
, it would show the appropriate number that it contained and the name of each one. Where does my setup differ from yours?