Skip to content

Cannot use child class from VRoidPlayerControllerBase #160

Closed Answered by mameoPix
ToffelsKater asked this question in Q&A
Discussion options

You must be logged in to vote

A simpler solution would be to cast the PlayerController in SeamlessTravelFrom to get the DownloadLicenseIdArray, as shown below.

void AVRoidPlayerControllerBase::SeamlessTravelFrom(APlayerController* OldPC)
{
	Super::SeamlessTravelFrom(OldPC);

	if (const auto OldVRoidPC = Cast<AVRoidPlayerControllerBase>(OldPC))
	{
		DownloadLicenseIdArray = OldVRoidPC->DownloadLicenseIdArray;
	}
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ToffelsKater
Comment options

@mameoPix
Comment options

Answer selected by ToffelsKater
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants