I have the following animation montage.
I am trying to set the next section of the montage dynamically in c++ without using a constant name (hardcoded).
In other words, at a certain point I want to be able to tell the montage to go to the next section that I have defined.
So, if the current section being played is “Strike1” I want it to go to “Strike2”.
I know how to do this via the following
Montage_SetNextSection("Strike1", "Strike2", GetCurrentMontage());
However, I don’t want to have to specify the names since I just want it to go to the next section.
So I would like to be able to get the next section name from looking at the current section.
I see that there is Montage_GetNextSectionID.
However, I’m not sure how to get the section name from that ID.
And I’m also not sure if that next section ID would return the ID for “Strike2” or not.
Because I don’t know if the “next section” is looking at #1 (see red number in screenshot) or #2 (see red number in screenshot)