Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

XRInteractionManager is allowed to call protected internal functions?

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

  1. MattFS

    MattFS

    Joined:
    Jul 14, 2009
    Posts:
    207
    Just curious how the XRInteractionManager calls this function on an XRInteractionBase
    ln 265
    interactable.OnSelectEnter(interactor);


    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.

    Thanks!
     
    linojon likes this.
unityunity