Example #1
0
 public TrackType(Type trackType)
 {
     this.trackType = trackType;
     this.mediaType = TimelineAsset.MediaType.Animation;
     object[] customAttributes = trackType.GetCustomAttributes(typeof(TrackMediaType), true);
     if (customAttributes.Length > 0)
     {
         this.mediaType = ((TrackMediaType)customAttributes[0]).m_MediaType;
     }
 }
Example #2
0
 public TrackMediaType(TimelineAsset.MediaType mt)
 {
     this.m_MediaType = mt;
 }
Example #3
0
 public TrackType(Type trackType, TimelineAsset.MediaType mediaType)
 {
     this.trackType = trackType;
     this.mediaType = mediaType;
 }
Example #4
0
 protected TrackAsset()
 {
     this.m_MediaType = TrackAsset.GetMediaType(base.GetType());
 }