Highlighting vs Selection
intermediate conceptsHighlight Plus · Core Concepts
Highlight Plus distinguishes between two modes of highlighting: Highlighting (hover/proximity) and Selection (click/toggle). Understanding the difference lets you build intuitive selection systems for your game.
Highlighting vs Selection
| Feature | Highlighting | Selection |
|---|---|---|
| Trigger | Mouse hover, proximity, or scripting | Mouse click or scripting |
| Duration | Temporary — ends when trigger stops | Persistent — stays until deselected |
| Profile | Uses the object's main Highlight Effect profile | Uses a separate Selection Profile (if assigned) |
| Multiple objects | Only one object highlighted at a time (by default) | Multiple objects can be selected simultaneously |
Setting Up Selection
- Add a Highlight Manager to your scene (or use the per-object Highlight Effect component).
- Create a Selection Profile — right-click in the Project window: Create > Highlight Plus > Highlight Profile. Configure the desired selection appearance (e.g., thicker outline, different color).
- Assign the Selection Profile — in the Highlight Effect component or Highlight Manager, assign your profile to the Selected Profile field.
- Enable selection — set the Selection Mode to your preferred option.
Selection Options
| Option | Description | Default |
|---|---|---|
| Selected Profile | Profile applied when the object is selected (overrides highlight appearance) | None |
| Selection Mode | How selection is triggered: None, Click, Toggle | None |
| Selected | Whether the object is currently selected (can be toggled via Inspector or script) | Off |
| Selected On Start | Automatically select this object when the scene starts | Off |
Scripting Selection
You can control selection programmatically:
// Select an object
HighlightEffect effect = GetComponent<HighlightEffect>();
effect.SetSelected(true);
// Deselect
effect.SetSelected(false);
// Toggle
effect.ToggleSelection();
// Check if selected
bool isSelected = effect.isSelected;
Tips
- If no Selection Profile is assigned, the selected state uses the same appearance as the highlight — only the persistence differs.
- Use different colors or outline widths in the Selection Profile to make it visually distinct from hover highlighting.
- To allow multiple selections, enable Toggle mode. To allow only one selection at a time, handle deselection in your script.
- Selection state persists across highlight/unhighlight events — a selected object keeps its selection appearance even when not being hovered.
Next Steps
- Settings Reference — full list of all Highlight Effect options
- Scripting Support — complete API reference
- FAQ — common questions
Was this page helpful?
Suggest an improvement
Help us improve this documentation page.