UnityForwardDecls.h
3.74 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#pragma once
#include <stdint.h>
#include "UnitySharedDecls.h"
#ifdef __OBJC__
@class UIScreen;
@class UIWindow;
@class UIView;
@class UIViewController;
@class UIEvent;
@class UILocalNotification;
@class NSString;
@class NSDictionary;
@class NSArray;
@class NSSet;
@class NSData;
@class NSError;
@class NSBundle;
@class UIKeyCommand;
@class UnityViewControllerBase;
#else
typedef struct objc_object UIScreen;
typedef struct objc_object UIWindow;
typedef struct objc_object UIView;
typedef struct objc_object UIViewController;
typedef struct objc_object UIEvent;
typedef struct objc_object UILocalNotification;
typedef struct objc_object NSString;
typedef struct objc_object NSDictionary;
typedef struct objc_object NSArray;
typedef struct objc_object NSSet;
typedef struct objc_object NSError;
typedef struct objc_object NSData;
typedef struct objc_object NSBundle;
typedef struct objc_object UIKeyCommand;
typedef struct objc_object UnityViewControllerBase;
#endif
// unity internal audio effect definition struct
struct UnityAudioEffectDefinition;
// new unity rendering api
struct IUnityInterfaces;
// be aware that this struct is shared with unity implementation so you should absolutely not change it
struct UnityFrameStats
{
uint64_t fixedBehaviourManagerDt;
uint64_t fixedPhysicsManagerDt;
uint64_t dynamicBehaviourManagerDt;
uint64_t coroutineDt;
uint64_t skinMeshUpdateDt;
uint64_t animationUpdateDt;
uint64_t renderDt;
uint64_t cullingDt;
uint64_t clearDt;
int fixedUpdateCount;
int batchCount;
uint64_t drawCallTime;
int drawCallCount;
int triCount;
int vertCount;
uint64_t dynamicBatchDt;
int dynamicBatchCount;
int dynamicBatchedDrawCallCount;
int dynamicBatchedTris;
int dynamicBatchedVerts;
int staticBatchCount;
int staticBatchedDrawCallCount;
int staticBatchedTris;
int staticBatchedVerts;
};
// be aware that this enum is shared with unity implementation so you should absolutely not change it
typedef enum
LogType
{
logError = 0,
logAssert = 1,
logWarning = 2,
logLog = 3,
logException = 4,
logDebug = 5,
}
LogType;
// this dictates touches processing on os level: should we transform touches to unity view coords or not.
// N.B. touch.position will always be adjusted to current resolution
// i.e. if you touch right border of view, touch.position.x will be Screen.width, not view.width
// to get coords in view space (os-coords), use touch.rawPosition
typedef enum ViewTouchProcessing
{
// the touches originated from view will be ignored by unity
touchesIgnored = 0,
// touches would be processed as if they were originated in unity view:
// coords will be transformed from view coords to unity view coords
touchesTransformedToUnityViewCoords = 1,
// touches coords will be kept intact (in originated view coords)
// it is default value
touchesKeptInOriginalViewCoords = 2,
}
ViewTouchProcessing;
// be aware that this enum is shared with unity implementation so you should absolutely not change it
typedef enum KeyboardStatus
{
Visible = 0,
Done = 1,
Canceled = 2,
LostFocus = 3,
}
KeyboardStatus;
// misc
#ifdef __cplusplus
extern "C" {
bool UnityiOS81orNewer();
bool UnityiOS82orNewer();
bool UnityiOS90orNewer();
bool UnityiOS91orNewer();
bool UnityiOS100orNewer();
bool UnityiOS101orNewer();
bool UnityiOS102orNewer();
bool UnityiOS103orNewer();
bool UnityiOS110orNewer();
bool UnityiOS111orNewer();
bool UnityiOS112orNewer();
bool UnityiOS130orNewer();
}
#endif