// Project Lab - NHTV Igad #include "UnrealProject.h" #include "HexagonTile.h" void UHexagonTile::NativeConstruct() { TArray widgets; WidgetTree->GetAllWidgets(widgets); for (int32 i = 0; i < widgets.Num(); i++) { UImage* tmp = Cast(widgets[i]); if (tmp) { material = tmp->GetDynamicMaterial(); break; } } }