Using it is very simple:
- Add it to your project
- Connect it to the "main" object
- All objects that should interact with the radar should be named as follows:
groupN
here group
, is a some prefix, N
, number of the object. For example you can have such a scene tree:
...
hero
enemy1
enemy2
enemy3
enemy4
...
- Select radar settings using the function:
public void USRoptions(GameObject main, Color opt_color, float opt_range, float opt_scale, float opt_panel_x, float opt_panel_y, float opt_panel_z, float opt_point_size)
I know there are a lot of arguments, but let's get down to business
main
- Main objectopt_color
- Color of points on the radaropt_range
- The range of the radaropt_scale
- Radar image zoomopt_panel_x / opt_panel_y / opt_panel_z
- Coordinates of the radar panelopt_point_size
- Size of a point on the radar
- Use the following code to launch the radar:
// Find all the objects of the group since before group_start group_end
CrawlGroup("group_name", group_start, group_end);
// To display the radar
DisplayVisibleGO();
18.12.2020 by Centrix14