> For the complete documentation index, see [llms.txt](https://profpivec.gitbook.io/documentation-and-tutorials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://profpivec.gitbook.io/documentation-and-tutorials/game-creator/action-pack-2/examples/example-3-graphics.md).

# Example 3 - Graphics

![](/files/-MFjH2en7MKGm7oQmubq)

The Graphics example demonstrates the use of two Action Pack 2 Actions; Highlight Object On, and Highlight Object Off.

These two Actions use cusotm Shaders amd Materials that have been included in the Action Pack 2 Resources folder so they will automaitcally be included in your build.

The example has 3 triggers:

1. On Mouse Enter/Exit
2. On Key Down "H"
3. On Key Down "J"

For the mouse enter/exit to work, you must add a collider to your object, in this case we have added a Capsule collider around a Cylinder.

![](/files/-MG2bgxaJQ_MV9QtmAC_)

The Actions call the Highlight Object On and Off respectively, where color and width can be set from a value or a variable.

![](/files/-MG2cEfeu5WlPtm6XmqO)

The OnKeyDown triggers work similar but without the need for a collider. You can highlight as many Objects as needed with various colors and width.

![](/files/-MG2ch94lVwdBL9hTy_w)

{% hint style="danger" %}
Note: these shaders do not work with HDRP.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://profpivec.gitbook.io/documentation-and-tutorials/game-creator/action-pack-2/examples/example-3-graphics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
