Skip to content

The Samples

The toolkit comes with some examples. You can find them in the Examples folder.

Demo Scene

The main scene is called Demo.unity. It has a few objects set up that you can drag around.

  • How to run it:
  • Open the Demo.unity scene.
  • You might need to add a layer called Dynamic in your project settings if it isnt there.
  • Select the cubes and add the Dynamic layer to them.
  • Hit Play and try clicking the cubes

Sample Scripts

There are some handy scripts in Examples/Scripts that you can use or copy for your own game.

Input

  • SampleInputSystemPointerSource: This hooks up the toolkit to the Unity Input System. If you're using the new input system, you want this.

Feedback

  • SampleQuickOutlineHoverFeedback: This makes objects glow or show an outline when you hover over them. Its a nice way to let players know they can click something.

Creating your own

You can use the samples as a base. If you like how the hover feedback works but want a different color, just look at the Interactable Profile in the Demo Settings folder.