23. Unity - 3D game development subtotal 02 --- animation end UI, navigation grid agent, scene building plug-in (ProGrids, ProBuilder, Polybrush)

1. Animation end UI

After a game is passed, it needs an interface to show that the current game is over, that is, it needs to add an end interface to the game. You can make a simple game end interface and use a picture to show it: First, add two layers of UI in
the layer window The Image of the first layer is only used as the background, and its fill color can be set to pure black, and the image file of the second layer is added as the display at the end, as shown in the figure below: Then the background of the first
insert image description here
layer Add the Canvas Group component above to control the transparency of the current UI and its sub-UIs, as shown in the figure below:
insert image description here
If the transparency is not controlled, the end UI interface will always be displayed after the game is running. This interface should be displayed when the player character collides with a certain scene When the node is triggered to display, it needs to use colliders and codes to implement. The code example is as follows:

using System.Collections;
using Syste

Guess you like

Origin blog.csdn.net/FY_13781298928/article/details/130679650