您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
26 行
543 B
26 行
543 B
#if TARGET_OS_IOS
|
|
|
|
#import "UnityAppController.h"
|
|
#import <TargetConditionals.h>
|
|
|
|
extern void UnityPluginLoad(struct IUnityInterfaces *interfaces);
|
|
extern void UnityPluginUnload(void);
|
|
|
|
#pragma mark - App controller subclasssing
|
|
|
|
@interface CustomAppController : UnityAppController
|
|
{
|
|
}
|
|
- (void)shouldAttachRenderDelegate;
|
|
@end
|
|
|
|
@implementation CustomAppController
|
|
- (void)shouldAttachRenderDelegate;
|
|
{
|
|
UnityRegisterRenderingPluginV5(&UnityPluginLoad, &UnityPluginUnload);
|
|
}
|
|
@end
|
|
|
|
IMPL_APP_CONTROLLER_SUBCLASS(CustomAppController);
|
|
|
|
#endif
|