Example #1
0
	void removeEvent(TimelineEvent tempEvent)
	{
		Undo.RegisterUndo(EditorUtility.CollectDeepHierarchy(new UnityEngine.Object[] { mActiveTimeline }), "Remove Event");

		tempEvent.getLayer().events.Remove(tempEvent);

		GameObject.DestroyImmediate(tempEvent.gameObject);
	}