- Home /
Question by
salvolannister · May 19, 2020 at 08:22 AM ·
raycastuser interfaceprivate
XRRAyInteractor: I need a function to be public
I need to find out which UI object is colliding with the raycast created from the script XRRayInteractor and there is a function that gives this result "GetCurrentUIRayCast" but it is private.
I tried to make it public and then compile, after that I can use it from another script and everything works fine but when I close Unity and then re-open it again the function becomes private. Does anyone know why?
Comment