Double Pointer - how to work with Arrays?

Unreal Verse Guru
Thu, 12 Dec 2019 21:45:29 +0000
C++

Hello, trying to call Array.GetData() return in this situation ** (double pointer)

FLinearColor UQAUserWidget::GetFirstButtonOriginalColor(TArray<class UButton*> Array)
 {
	 if (Array.Num() == 0)
	 {
		UButton** Button =  Array.GetData();

		if (Button)
		{
			OriginalButtonColor = Button->ColorAndOpacity();
		}
	 }
...

How to work with it ?
I get an error:

Error C2227 left of ‘->ColorAndOpacity’ must point to class/struct/union/generic type QA

3 posts - 1 participant