TextMesh Pro Support
Before installation
Make sure you have Better UI as well as TextMesh Pro installed in your Project.
Installation
Download and import the TextMesh Pro for Better UI package from the asset store.
Troubleshooting
If you see two errors after installation you probably have a relatively new version of TextMesh Pro.
To fix this, double click on one of the errors to open the source code at the location of the error. There you will find a section which explains what you have to do:
/////////////// FIX:
///////////////
/////////////// If you are using TextMesh Pro 1.3.0 or greater,
/////////////// please comment the following two lines and uncomment the lines after that.
GUIContent[] a = TMP_UIStyleManager.alignContent_A; // <- comment
GUIContent[] b = TMP_UIStyleManager.alignContent_B; // <- comment
// GUIContent[] a = TMP_UIStyleManager.alignContentA; // <- uncomment
// GUIContent[] b = TMP_UIStyleManager.alignContentB; // <- uncomment
/////////////// FIX END
after you applied the described changes, it should look like this:
/////////////// FIX:
///////////////
/////////////// If you are using TextMesh Pro 1.3.0 or greater,
/////////////// please comment the following two lines and uncomment the lines after that.
// GUIContent[] a = TMP_UIStyleManager.alignContent_A; // <- comment
// GUIContent[] b = TMP_UIStyleManager.alignContent_B; // <- comment
GUIContent[] a = TMP_UIStyleManager.alignContentA; // <- uncomment
GUIContent[] b = TMP_UIStyleManager.alignContentB; // <- uncomment
/////////////// FIX END
Unfortunately it is a very complex task to detect the right version automatically. So, this workaround is required.