Setting up the UI Component
Last updated
Last updated
Important: Ensure that you have your player set up with Emerald AI before proceeding as this is required for the UI system to work properly.
After you have applied the UI Component to your AI, there are still a couple steps that need to be done in order for the UI system to detect which objects can enable the UI. This is done to optimize the AI system and to only allow the UI to be enabled when close enough to a player.
Open the UI Setup foldout and assign your player's Camera Tag, your UI Tag (typically your player's tag), and the UI Layers (typically your player's layer). Your player must be properly set up with Emerald AI for this to work. This means it needs to have an EmeraldGeneralTargetBridge or an EmeraldPlayerBridgescript (will also work if its a custom script derived from EmeraldPlayerBridge).
Next, choose which settings/elements you want enabled. These must be enabled through each of the foldouts of the corresponding setting. For this example, the Health Bars are being enabled. Each foldout has various settings for the particular setting. The health bar setting allows users to customize the health bar sprites, colors, position, and scale.
After you have chosen which setting to enable, test your AI to ensure they work. Getting near your AI should automatically enable the UI.
Note: This will only enable the UI elements that you enabled through each foldout.