To be clear, the code I posted at the top is more like pseudo code, but you get the idea.
struct AllSoundsStruct
{
UAudioComponent* m_sound;
float m_initialPitch;
};
TArray<AllSoundsStruct> m_allSounds;
To be clear, the code I posted at the top is more like pseudo code, but you get the idea.
struct AllSoundsStruct
{
UAudioComponent* m_sound;
float m_initialPitch;
};
TArray<AllSoundsStruct> m_allSounds;