UnityViewControllerBase.mm
1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#import "UnityViewControllerBase.h"
#import "UnityAppController.h"
#import "UnityAppController+ViewHandling.h"
#import "PluginBase/UnityViewControllerListener.h"
@implementation UnityViewControllerBase
- (id)init
{
if ((self = [super init]))
self.modalPresentationStyle = UIModalPresentationFullScreen;
return self;
}
- (void)viewWillLayoutSubviews
{
[super viewWillLayoutSubviews];
AppController_SendUnityViewControllerNotification(kUnityViewWillLayoutSubviews);
}
- (void)viewDidLayoutSubviews
{
[super viewDidLayoutSubviews];
AppController_SendUnityViewControllerNotification(kUnityViewDidLayoutSubviews);
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear: animated];
AppController_SendUnityViewControllerNotification(kUnityViewDidDisappear);
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear: animated];
AppController_SendUnityViewControllerNotification(kUnityViewWillDisappear);
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear: animated];
AppController_SendUnityViewControllerNotification(kUnityViewDidAppear);
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear: animated];
AppController_SendUnityViewControllerNotification(kUnityViewWillAppear);
}
@end