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; } }
public TrackMediaType(TimelineAsset.MediaType mt) { this.m_MediaType = mt; }
public TrackType(Type trackType, TimelineAsset.MediaType mediaType) { this.trackType = trackType; this.mediaType = mediaType; }
protected TrackAsset() { this.m_MediaType = TrackAsset.GetMediaType(base.GetType()); }