Can i buy the extension for Unity 5.2.0f4

+1 vote
asked Mar 4, 2016 in Help by Jonathan
Hello,

I'm using Unity 5.2.0f4 and can't upgrade to last version.
But anyway i really want to buy this extension. Can i buy it and integrate it regardless the 5.2.2 minimum version ?

Do you think about an possible incompatibility ?
(I want to use it essentially for input forms and buttons)

Thanks

2 Answers

0 votes
answered Mar 10, 2016 by admin (31,720 points)
 
Best answer
Next release will have support for 5.2.0 ;)
0 votes
answered Mar 4, 2016 by admin (31,720 points)

Hello Jonathan,

Yes, we limited the version to 5.2.2 because there are some things improved starting 5.2.2 that help us a lot for MaterialUI.
BUT! You should be able to download it, and just modify one thing (and it should work alright :D)

You'll just need to open the MaterialUI/Scripts/Components/VectorImages/VectorImage.cs
delete the entire OnPopulateMesh method and replace it with this code:

protected override void OnPopulateMesh(Mesh toFill)
{
    if (fontSize == 0)
    {
        return;
    }

    string cache = text;
    m_DisableDirty = true;
    text = IconDecoder.Decode(text);
    base.OnPopulateMesh(toFill);
    text = cache;
    m_DisableDirty = false;
}

This should be the only thing to do, but if other things are not working, just write us, and we'll help you ;)

We'll keep that in the TODO list and see if we can add some code to call what needs to be called depending on the Unity version ;)

commented Mar 4, 2016 by anonymous
Thanks a lot !
Welcome to MaterialUI support! Ask us anything :)
...