Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

XRInteractionManager is allowed to call protected internal functions?

Discussion in 'AR/VR (XR) Discussion' started by MattFS, Jun 29, 2020.

  1. MattFS


    Jul 14, 2009
    Just curious how the XRInteractionManager calls this function on an XRInteractionBase
    ln 265

    But the signature of this function is...
    protected internal virtual void OnSelectEnter(XRBaseInteractor interactor) 

    And if I try to call it (as an example), I get a protection level error. So how is the manager able to call this without compile errors?

    The reason I'm wondering is I'm trying to make a set of input controls so I can use KB/Mouse to quickly validate basic interactions without needing a full VR setup on the PC.

    linojon likes this.