Search Unity

OnFocusEvent or IFocusable ?

Discussion in 'Windows Mixed Reality' started by drhmiri, Aug 24, 2017.

  1. drhmiri

    drhmiri

    Joined:
    Jun 17, 2014
    Posts:
    76
    I have seen an example of using the OnFocusEvent component to handle gaze, and how we can use the FocusEnter and FocusLost methods, as well as how to wire-up these functions in Unity...

    But I wonder if this is just the old way of doing things or is it really different to using the common IFocusable interface and putting the code into its OnFocusEnter and OnFocusExit methods?
     
  2. unity_andrewc

    unity_andrewc

    Unity Technologies

    Joined:
    Dec 14, 2015
    Posts:
    147
  3. drhmiri

    drhmiri

    Joined:
    Jun 17, 2014
    Posts:
    76