Hi all, I am trying to spawn an FPlane, with values that I set at construction time.
So I initialize an FPlane:
FPlane floorRotate(1, 0, 0, 341.234);
Can I then create it in the Editor with code?
I am also trying by creating a new AActor class like this:
AplaneFloor::AplaneFloor()
{
UStaticMeshComponent* Root = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Root"));
RootComponent = Root;
FPlane* Floor = CreateDefaultSubobject<FPlane>(TEXT("FloorRotated"));
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
}
Which I can then spawn, but can I pass the values through to the constructor this way? It seems not.
Which, if any, of these approaches is valid?
Thanks!