Off Screen Indicator. Adding dynamic arrows

Off Screen Indicator. Adding dynamic arrows

Greyman Studios

8 лет назад

9,392 Просмотров

In this video we show how to add arrow indicators in real time with scripting

Off Screen Indicator Asset Store page: https://www.assetstore.unity3d.com/#!/content/57062
Steps of the tutorial

1.Let's add a button to add a new target
2.Create a new script to add the logic for the button
3.This code is included in the DemoScenes folder
4.This is the important stuff, the method: AddIndicator(Transform target, int indicatorID) adds the indicator of the given transform using the Indicator id.
5.Now link the button with the script
6.Let know the script which object to instantiate
7.Tune the OffScreenIndicator parameters to your needs
8.You can create all the indicators you want with their given colors, sprites and transitions
9.You can add an offset applied in the Canvas space (pixel units)
10.Let's use a random indicator in the AddTarget script

CREDITS

MUSIC:
"Music for Manatees" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0 License
http://creativecommons.org/licenses/by/3.0/

Тэги:

#Unity #Arrow #Indicator #Tutorial #Offscreen
Ссылки и html тэги не поддерживаются


Комментарии: