Delete Icon

General support.
Post Reply
User avatar
spazmasta106
New Member
New Member
Posts: 1
Joined: Thu Nov 12, 2015 12:27 pm

Hello,

I am having trouble understanding your instructions in the manual about deleting the icons during runtime, can you provide a small example script to demonstrate the proper way to delete an icon?
Thanks!
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Hi.

I guess you mean Easy Hud Waypoint.

- For hide / show a specific icon from a script, firts you need a reference of "bl_Hud" that you want hide / show, eg:

Code: Select all

public bl_Hud myIcon;
- then when you need hide just call like this:

Code: Select all

myIcon.Hide();
for show again:

Code: Select all

myIcon.Show();
If you create the icon in runtime, the you can get the reference when instantiated it, eg:

Code: Select all

public GameObject PrefabIcon;
private bl_Hud myIcon;

void Start(){
GameObject obj = Instantiate(PrefabIcon, transform.position, Quaternion.identity) as GameObject;
myIcon = obj.GetComponet<bl_Hud>();
}
then just call same as above.

Regards.
How to find your Invoice Number: Here
How to find your Order Number: Here
Post Reply