roguecode / Unity-Simple-SRT

A super simple SRT subtitle parser
MIT License
103 stars 24 forks source link

Unity-Simple-SRT

A super simple SRT subtitle parser

It'll parse most sane SRT's, and will display them in a Text element, crossfading between lines depending on a Fade Time you set.

To use it

A sub file like this:

1
00:00:00,000 --> 00:00:02,500
Mary had

2
00:00:02,500 --> 00:00:04,500
a little <i>lamb</i>

3
00:00:04,500 --> 00:00:06,500
little <b>lamb</b>

4
00:00:06,500 --> 00:00:08,500
little <size=40>lamb</size>

5
00:00:09,000 --> 00:00:12,000
<b><i><color=red>Until she didn't.</color></i></b>

Will result in this:

Totally the best gif evar

A good program to make subs is SubtitleEdit