Skip to content

Latest commit

 

History

History

MojoUnity-TextPro

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

MojoUnity-TextPro v1.0

MojoUnity-TextPro is an Extension of UGUI Text which can mix texts and images as well as attach events.

  • The current unitypackage, packaged by Unity-2020.3, tested on Unity-2018.4, and supported Unity versions are 2018.4 or higher.
  • Released versions in releases.
  • Release changes in ChangeLog.

Quick goto the Samples Code and the Source Code.

Note

The source code depends on the Unity UI, which can be found and installed by Package Manager in the Unity menu Window/Package Manager.

Features

  • Mix Text-Image with Event by Efficient algorithm.
  • Serialize Image and Event dictionaries in Inspector.
  • Custom Image-Event tag in Text.
  • Simple API easy to use.

Use Cases

  • Custom tag in Text.

  • Image dictionary in Inspector.

  • Event dictionary in Inspector.

  • Play Image-Text-Event in Unity.

Quick Start

  1. Open the MojoUnityTextPro Scene in /MojoUnity/Samples/MojoUnityTextPro/Scenes/MojoUnityTextPro.unity.
  2. Click the Text-Image-Event GameObject, which is child of Samples GameObject, in Unity Hierarchy.
  3. Click the Play button in Unity Game Window.
  4. View the settings of TextPro and TextProQuad in Text-Image-Event GameObject.
  5. View the Sample Code in /MojoUnity/Samples/MojoUnityTextPro/Scripts/TextProQuadEvent.cs.

Note: If the image tag is not replaced correctly in PlayMode, please check whether the Serialization Dict setting is right in Inspector.

Issues & Discussions