public static FSequence CreateSequence(GameObject gameObject) { FSequence sequence = gameObject.AddComponent <FSequence>(); sequence._content = new GameObject("Content").transform; sequence._content.parent = sequence.transform; sequence.Add(FContainer.Create(FContainer.DEFAULT_COLOR, "Group 0")); sequence.Version = FUtility.FLUX_VERSION; return(sequence); }
public static FSequence CreateSequence(GameObject gameObject) { FSequence sequence = gameObject.AddComponent <FSequence>(); sequence._content = new GameObject("SequenceContent").transform; sequence._content.hideFlags |= HideFlags.HideInHierarchy; sequence._content.parent = sequence.transform; sequence.Add(FContainer.Create(FContainer.DEFAULT_COLOR)); sequence.Version = FUtility.FLUX_VERSION; // sequence.AddGlobalTimeline(); // sequence.AddCommentTrack(); // sequence.AddCommentTimeline(); return(sequence); }