MessageTickerUI
MessageTickerUI copied to clipboard
Very simple UI element for displaying messages on screen.
Message Ticker UI v1.1
This is a very simple little UI element for displaying text in a live scrolling little window similar to a console window. I created this for the prototype of the Arena game and noticed that it was very self-contained and should be easy add to other projects. I can see myself re-using this in the future, so I figured I'd make an easy to import package out of it.
It's meant to be a very straightforward and simple package so that it can be easily dropped into any project and customized with new features from there.
This project was built in Unity 2017.4.30f1
Download
You can either clone the repository or download the asset package located in the root.
Features
- Automatic scrolling of passed in messages
- Max number of messages, after which old messages are deleted
- Optional coloring of messages
- Messages can be set to fade out after a time or remain permanently
How to use
Keep in mind is that only one Ticker is supported at a time. If multiple tickers are present, they will all display the same information.
- Import package
- If you're interested only in the ticker itself, do not import the
Demo
folder.
- If you're interested only in the ticker itself, do not import the
- Drag the
Ticker
prefab onto your UI canvas. - Call
Ticker.AddItem(text)
to create a message on the ticker.- Alternatively,
Ticker.AddItem(text, lifespan, color)
can be used to customize the message.
- Alternatively,
If you run the demo scene, press the S
key to trigger random messages.
Changelog
1.1 (July 29 2019)
- Fixed bug where ticker item color could be incorrect when fading out
- Updated project to 2017.4.30f1 LTS
1.0 (May 14 2019)
- Released