I have a question regarding the line mentioned in the title:
How exactly can this compile since CapsuleComp is of type UCapsuleComponent and RootComponent is of type USceneComponent ?
I even had VS warning me about this with red squiggly lines, yet when I pressed compile in the UE Editor, the lines disappeared and it compiled just fine.
Iām confused. Thanks