UnityEditor.AudioMixerSnapshotListView.GetSnapshotIndex C# (CSharp) Method

GetSnapshotIndex() private method

private GetSnapshotIndex ( AudioMixerSnapshotController snapshot ) : int
snapshot UnityEditor.Audio.AudioMixerSnapshotController
return int
        private int GetSnapshotIndex(AudioMixerSnapshotController snapshot)
        {
            for (int i = 0; i < this.m_Snapshots.Count; i++)
            {
                if (this.m_Snapshots[i] == snapshot)
                {
                    return i;
                }
            }
            return 0;
        }