浏览代码
Merge pull request #138 from Unity-Technologies/zgh/modify_custom_app_controller
Merge pull request #138 from Unity-Technologies/zgh/modify_custom_app_controller
update CustomAppController/siyaoH-1.17-PlatformMessage
GitHub
4 年前
当前提交
5d568298
共有 6 个文件被更改,包括 33 次插入 和 106 次删除
-
2engine/Build.bee.cs
-
12com.unity.uiwidgets/Runtime/Plugins/ios/custom_app_controller.h
-
21com.unity.uiwidgets/Runtime/Plugins/ios/custom_app_controller.m
-
26com.unity.uiwidgets/Runtime/Plugins/ios/CustomAppController.m
-
78com.unity.uiwidgets/Runtime/Plugins/ios/CustomAppController.m.meta
|
|||
#ifndef CUSTOM_APP_CONTROLLER_H |
|||
#define CUSTOM_APP_CONTROLLER_H |
|||
|
|||
#import "UnityAppController.h" |
|||
|
|||
@interface CustomUIWidgetsAppController : UnityAppController |
|||
{ |
|||
} |
|||
- (void)shouldAttachRenderDelegate; |
|||
@end |
|||
|
|||
#endif |
|
|||
#if TARGET_OS_IOS |
|||
|
|||
#import "UnityAppController.h" |
|||
#import <TargetConditionals.h> |
|||
#import "custom_app_controller.h" |
|||
|
|||
extern void UnityPluginLoad(struct IUnityInterfaces *interfaces); |
|||
extern void UnityPluginUnload(void); |
|||
|
|||
#pragma mark - App controller subclasssing |
|||
|
|||
@implementation CustomUIWidgetsAppController |
|||
- (void)shouldAttachRenderDelegate; |
|||
{ |
|||
UnityRegisterRenderingPluginV5(&UnityPluginLoad, &UnityPluginUnload); |
|||
} |
|||
@end |
|||
|
|||
IMPL_APP_CONTROLLER_SUBCLASS(CustomUIWidgetsAppController); |
|||
|
|||
#endif |
|
|||
#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 |
|
|||
fileFormatVersion: 2 |
|||
guid: f00e5af3860d8467eb47452a2962aa84 |
|||
PluginImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
iconMap: {} |
|||
executionOrder: {} |
|||
defineConstraints: [] |
|||
isPreloaded: 0 |
|||
isOverridable: 1 |
|||
isExplicitlyReferenced: 0 |
|||
validateReferences: 1 |
|||
platformData: |
|||
- first: |
|||
: Any |
|||
second: |
|||
enabled: 0 |
|||
settings: |
|||
Exclude Android: 1 |
|||
Exclude Editor: 1 |
|||
Exclude Linux64: 1 |
|||
Exclude OSXUniversal: 1 |
|||
Exclude Win: 1 |
|||
Exclude Win64: 1 |
|||
Exclude iOS: 0 |
|||
- first: |
|||
Android: Android |
|||
second: |
|||
enabled: 0 |
|||
settings: {} |
|||
- first: |
|||
Any: |
|||
second: |
|||
enabled: 0 |
|||
settings: {} |
|||
- first: |
|||
Editor: Editor |
|||
second: |
|||
enabled: 0 |
|||
settings: |
|||
DefaultValueInitialized: true |
|||
- first: |
|||
Standalone: Linux64 |
|||
second: |
|||
enabled: 0 |
|||
settings: |
|||
CPU: None |
|||
- first: |
|||
Standalone: OSXUniversal |
|||
second: |
|||
enabled: 0 |
|||
settings: |
|||
CPU: x86 |
|||
- first: |
|||
Standalone: Win |
|||
second: |
|||
enabled: 0 |
|||
settings: |
|||
CPU: None |
|||
- first: |
|||
Standalone: Win64 |
|||
second: |
|||
enabled: 0 |
|||
settings: |
|||
CPU: None |
|||
- first: |
|||
iPhone: iOS |
|||
second: |
|||
enabled: 1 |
|||
settings: {} |
|||
- first: |
|||
tvOS: tvOS |
|||
second: |
|||
enabled: 1 |
|||
settings: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue