private void RebuildTimelineDefinitions(SkyProfile profile) { if (m_TimelineDefinitions == null) { m_TimelineDefinitions = new List <ProfileGroupDefinition>(); } m_TimelineDefinitions.Clear(); foreach (string groupKey in profile.timelineManagedKeys) { ProfileGroupDefinition groupDefinition = profile.GetGroupDefinitionForKey(groupKey); if (groupDefinition == null) { //Debug.LogError("Failed to get group definition for key: " + groupKey); continue; } m_TimelineDefinitions.Add(groupDefinition); } }