You need to create and register your component after spawning the actor you’re trying to attach it to. You’ll also need to pass in “Obj” instead of “ToSpawn” to the call to “NewObject” when creating the component.
You need to create and register your component after spawning the actor you’re trying to attach it to. You’ll also need to pass in “Obj” instead of “ToSpawn” to the call to “NewObject” when creating the component.