- Home /
Question by
JukeBoxDelta · May 27, 2019 at 07:40 PM ·
functionmethoddebugger
Game is skipping over a called function and I'm not sure why
So I'm messing with VR and trying to activate mouse rotation from Oculus' OVRPlayerController script. The method is public and nothing is underlined red. Yet when the bool is true, nothing happens. When I debug, the debugger goes into the bool and then completely skips over the function no matter if I'm pressing F10 or F11. I've never seen this before. Anyone know why?
public OVRPlayerController ovrPlayerController;
void Update()
{
if (Input.GetKeyDown(KeyCode.M))
{
bool allowMouseRotation = true;
ovrPlayerController.SetSkipMouseRotation(allowMouseRotation);
}
}
Comment
Your answer
Follow this Question
Related Questions
what is wrong whis this? 1 Answer
How add Compontent B to all Childs with Component A (e.g. Script) 1 Answer
Ensure that function only gets called once in a frame 2 Answers
GUI calling function with return value. I dont know why this doesnt work. 0 Answers
How to call the same functions both in FixedUpdate and LateUpdate? 1 Answer