Beispiel #1
0
            private static void SetClipReferences(LegacyAnimatorTrack asset)
            {
                foreach (TimelineClip clip in asset.GetClips())
                {
                    LegacyAnimationClipAsset animationClipAsset = clip.asset as LegacyAnimationClipAsset;

                    if (animationClipAsset != null)
                    {
                        animationClipAsset.SetClip(clip);
                    }
                }
            }
                protected virtual void OnDrawSubTrack(Rect rect, int index, bool selected, bool focused)
                {
                    float columnWidth         = rect.width / 3f;
                    LegacyAnimatorTrack track = _channelTracks.list[index] as LegacyAnimatorTrack;

                    if (track != null)
                    {
                        rect.width = columnWidth;
                        GUI.Label(rect, track._animationChannel.ToString(), EditorStyles.label);
                        rect.x += columnWidth;
                        GUI.Label(rect, track.duration.ToString(), EditorStyles.label);
                        rect.x += columnWidth;
                        GUI.Label(rect, ArrayUtils.GetCount(track.GetClips()).ToString(), EditorStyles.label);
                    }
                }