I’m having a hell of a time trying to understand how to instantiate classes.
I have a Cannon class with a Fire function that spawns a projectile with a given spawn location. Cannon class is based on UObject because I only need this to be a collection of custom fields and methods. For some reason Spawn Actor from Class doesn’t exist here and my only option is Spawn Actor for Gameplay Task. Is there a difference? Why doesn’t Spawn Actor for Gameplay Task not have a transform argument?
My Cannon class used to be based on Actor Component, but due to polymorphism issues I keep running into with Actor Components (as described in this post) I refactored to UObjects so I can make proper use of Construct Object form Class.