https://github.com/arket/PoiPoiTooltip
PoiPoiTooltip is a simple tooltip. (Unity Asset)
https://github.com/arket/PoiPoiTooltip
Last synced: 9 months ago
JSON representation
PoiPoiTooltip is a simple tooltip. (Unity Asset)
- Host: GitHub
- URL: https://github.com/arket/PoiPoiTooltip
- Owner: arket
- License: mit
- Created: 2019-03-30T15:05:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-30T16:47:34.000Z (almost 7 years ago)
- Last Synced: 2024-08-02T05:14:01.071Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 25.4 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity3d - PoiPoiTooltip - PoiPoiTooltip is a simple tooltip. (Unity Asset) (Open Source Repositories / UI)
- awesome-unity3d - PoiPoiTooltip - PoiPoiTooltip is a simple tooltip. (Unity Asset) (Open Source Repositories / UI)
README
# PoiPoiTooltip
PoiPoiTooltip is a simple tooltip asset.
Tooltip design is freely customizable. (Only RectTransform)
There are 10 types of animations.
This asset requires DOTween.
[日本語 Readme](/README_JP.md)
## Animations
|TO_TOP|TO_TOP_FADE|TO_TOP_EXPAND|TO_TOP_ATTACHED|TO_TOP_FUN|
|-|-|-|-|-|
|
|
|
|
|
|
|TO_BOTTOM|TO_BOTTOM_FADE|TO_BOTTOM_EXPAND|TO_BOTTOM_ATTACHED|TO_BOTTOM_FUN|
|-|-|-|-|-|
|
|
|
|
|
|
## Install
1. Import [DOTween](http://dotween.demigiant.com/) into your project.
2. Import PoiPoiTooltip.unitypackage from [latest releases](https://github.com/arket/PoiPoiTooltip/releases/).
## Usage
### Static generation
1. Add a PoiPoiTooltip component to the RectTransform you want to display a tooltip.
2. Set a Tooltip object that you want to display in `Tool Tip Rect`.
3. Choice a animation type from `Play Animation Type`.
(Demo: Assets/PoiPoiTooltip/Example/Scenes/StaticDemo.unity)
### Dynamic generation
1. Add a PoiPoiTooltip component to the RectTransform you want to display a tooltip.
```
[Target RectTransform].gameobject.AddComponent();
```
2. Use the initialization method.
```
[Target RectTransform].InitTooltip([tooltip object], [animation type]);
```
(Demo: Assets/PoiPoiTooltip/Example/Scenes/DynamicDemo.unity)
## Version
- Unity 2018.2.5f1
- DOTween v1.2.235
## License
- MIT License