Exemple #1
0
            public TimelineNode(PlayableGraph graph, GameObject owner, IEnumerable <TrackAsset> tracks)
            {
                var trackAssets = tracks as TrackAsset[] ?? tracks.ToArray();

                timelinePlayable = TimelinePlayable.Create(graph, trackAssets, owner, true, false);
                timelinePlayable.SetOutputCount(trackAssets.Length);
                outputTypes = DetermineOutputTypes(trackAssets);
            }