UnityView+iOS.h 699 B

123456789101112131415
  1. #pragma once
  2. @interface UnityView (iOS)
  3. // will simply update content orientation (it might be tweaked in layoutSubviews, due to disagreement between unity and view controller)
  4. - (void)willRotateToOrientation:(UIInterfaceOrientation)toOrientation fromOrientation:(UIInterfaceOrientation)fromOrientation;
  5. // will recreate gles backing if needed and repaint once to make sure we dont have black frame creeping in
  6. - (void)didRotate;
  7. - (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event;
  8. - (void)touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event;
  9. - (void)touchesCancelled:(NSSet*)touches withEvent:(UIEvent*)event;
  10. - (void)touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event;
  11. @end