Hey, I have a struct with this data:
Struct LevelsSetup:
Name: DataType:
Level0 LevelData
Level1 LevelData
Level2 LevelData
Struct LevelData:
LevelType LevelTypeEnum
CorrectTiles Int
So it’s a struct of a struct. I want to create a function that takes a variable CurrentLevel and then breaks out the data for that level (e.g LevelSetup->LevelData->CorrectTile), but I’m stumbling a bit.
I was thinking I’d be able to do a ‘Select’ on the LevelsSetup struct to get Level0’s LevelData but it only gives me option0 and option1. ‘Set Array Elem’ doesn’t seem to help either, was thinking I might be able to set a certain index of the LevelsSetup into a target LevelData array but no luck.
Does anyone know how to do this? I could break LevelsSetup and then break LevelData and do a massive case: situation but that seems silly.
Thanks in advance.