UnityEditor.AnimationClipInfoProperties.SetEvents C# (CSharp) Method

SetEvents() public method

public SetEvents ( AnimationEvent newEvents ) : void
newEvents AnimationEvent
return void
        public void SetEvents(AnimationEvent[] newEvents)
        {
            SerializedProperty property = this.Get("events");
            if ((property != null) && property.isArray)
            {
                property.ClearArray();
                foreach (AnimationEvent event2 in newEvents)
                {
                    property.InsertArrayElementAtIndex(property.arraySize);
                    this.SetEvent(property.arraySize - 1, event2);
                }
            }
        }