# Example how to use a custom cursor (a static image or an animated scene)

**URL:** https://forum.castle-engine.io/t/example-how-to-use-a-custom-cursor-a-static-image-or-an-animated-scene/513
**Category:** News
**Created:** [February 4, 2022, 4:06pm UTC](https://forum.castle-engine.io/t/example-how-to-use-a-custom-cursor-a-static-image-or-an-animated-scene/513 "2022-02-04T16:06:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [February 4, 2022, 4:06pm UTC](https://forum.castle-engine.io/t/example-how-to-use-a-custom-cursor-a-static-image-or-an-animated-scene/513/1 "2022-02-04T16:06:12Z")

</div>

| [![Custom cursor example](https://castle-engine.io/wp/wp-content/uploads/2022/02/Zrzut-ekranu-z-2022-02-04-17-03-16-200x118.png)](https://castle-engine.io/wp/wp-content/uploads/2022/02/Zrzut-ekranu-z-2022-02-04-17-03-16.png "Custom cursor example") |
| [![Custom cursor designed in CGE editor](https://castle-engine.io/wp/wp-content/uploads/2022/02/Zrzut-ekranu-z-2022-02-04-17-03-37-200x117.png)](https://castle-engine.io/wp/wp-content/uploads/2022/02/Zrzut-ekranu-z-2022-02-04-17-03-37.png "Custom cursor designed in CGE editor") |

I’ve added an example project [examples/user\_interface/custom\_cursor](https://github.com/castle-engine/castle-engine/tree/master/examples/user_interface/custom_cursor) showing how you can implement a custom cursor in your applications. It’s very flexible — the custom cursor is just a UI element, synchronized with mouse position, and it can contain an image, a viewport (with animated scene) or anything else you want. You even design the custom cursor in the CGE editor.
