Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
markdownToUIWidgets first commit May 15, 2019
.DS_Store first commit May 15, 2019
Example.meta first commit May 15, 2019 first commit May 15, 2019 first commit May 15, 2019
README.pdf first commit May 15, 2019
README.pdf.meta first commit May 15, 2019
favicon.ico first commit May 15, 2019
favicon.ico.meta first commit May 15, 2019
markdownToUIWidgets.meta first commit May 15, 2019

New unity plugin has been released:

What is UIWidgets?

UIWidget is a Unity Package which helps developers to create, debug and deploy efficient, cross-platform Apps. Details could be found at their github page

What does this plugin do?

Just parse and render raw markdown strings into UIWidgets elements.

How to use

    1. You must learn how to use UIWidgets first
    1. Import UIWidgets into your Unity project according to Requirements
    1. Then import this plugin into your Unity project
    1. Embed your markdown element into UIWidgets UI codes just like below:
    protected override Widget createWidget()
        return new MaterialApp(
            title: "Markdown Demo",
            showPerformanceOverlay: false,
            home: new Scaffold(
                body: new Markdown(null, markdownData1,
                    syntaxHighlighter: new DartSyntaxHighlighter(SyntaxHighlighterStyle.lightThemeStyle()),
                    url => { Application.OpenURL(url); })
    1. Adjust your code for better performance.
    1. Enjoy!


  • To use UIWidgets, Unity version must be larger than 2018.3

  • If the markdown string is too long, it would take much more time to parse and render, so async operation is needed and a Dispatcher script is provided to handle this situation

    buildThread = new Thread(() =>
            Stopwatch sw = Stopwatch.StartNew();
            if (nodes == null)
                nodes = document.parseLines(lines.ToList());
            if (widget.onParsed != null)
                widget.onParsed(, nodes);
            var elements =;
            // make the callback running on the unity main thread
            Dispatcher.Invoke(() =>
            Debug.Log(sw.ElapsedMilliseconds / 1000f);
        catch (ThreadAbortException e)
  • Also could use in-app webview to handle URL click event to replace Application.OpenURL for viewing web page in your unity application.

You can’t perform that action at this time.