3D User Interfaces

User Interfaces in Unity

Canvas Interactions

Diegetic Interactions

Familiarize yourself with the following tutorials:

Example Drawer Movement

The following videos are for XR Interaction Toolkit 1.0.0-pre.6. Earlier versions of the toolkit will give you errors ‘Assets\DraweSetUp.cs(31,32): error CS0246: The type or namespace name ‘SelectEnterEventArgs’ could not be found (are you missing a using directive or an assembly reference?)’.

Fix Error:

  • Assets\Scripts\HandButton.cs(26,34): error CS1503: Argument 1: cannot convert from ‘method group’ to ‘UnityAction<HoverEnterEventArgs>’
  • Replace in HandButton.cs - Awake() to: onHoverEntered.AddListener(StartPress); onHoverExited.AddListener(EndPress);

Fix Error:

  • Similar error in DrawerSetup.cs
  • Replace in OnEnable() and OnDisable() to: handle.selectEntered.AddListener(StoreGrabInfo); handle.selectEntered.RemoveListener(StoreGrabInfo);

Example Door Movement

Example Button Switch

Extra Material

Previous
Next