AMenu* newMenu;
UPROPERTY(EditAnywhere, Category = “Possible object”)
TSubclassOf menuOne;
newMenu = GetWorld()->SpawnActor(menuOne, posizione, FRotator(0, 90, 0), spawnParams);
after calling the function SpawnActor, newMenu is NULL ? do you have any suggestions ?