Easy and simple way to convert subtitle files into C# data structures.
Create a CaptionDataParser and use Parse() with the desired caption file to obtain a Queue with all the data:
Queue<Caption> captionsQueue = new Queue<Caption>();
CaptionDataParser captionsParser = new CaptionDataParser();
captionsQueue = captionsParser.Parse(textAsset);
Add the custom package to your project via:
or
- Package Manager -> + -> Add package from git URL -> https://github.com/Fenikkel/CaptionsFileParser.git
Supported captions file:
SubRip Subtitle (.srt)
More file formats coming soon
- Any Unity version
- Any pipeline (Build-in, URP, HDRP, etc)
⭐ Star if you like it
❤️️ Follow me for more