Skip to content

Commit 754c23a

Browse files
Fix generic method declarations
Add another example MonoBehaviour
1 parent 8599cf8 commit 754c23a

7 files changed

Lines changed: 816 additions & 90 deletions

File tree

Unity/Assets/NativeScript/Bindings.cs

Lines changed: 205 additions & 0 deletions
Large diffs are not rendered by default.

Unity/Assets/NativeScript/BootScene.unity

Lines changed: 55 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,17 @@ LightmapSettings:
7777
m_PVRDirectSampleCount: 32
7878
m_PVRSampleCount: 500
7979
m_PVRBounces: 2
80-
m_PVRFiltering: 0
80+
m_PVRFilterTypeDirect: 0
81+
m_PVRFilterTypeIndirect: 0
82+
m_PVRFilterTypeAO: 0
8183
m_PVRFilteringMode: 1
8284
m_PVRCulling: 1
8385
m_PVRFilteringGaussRadiusDirect: 1
8486
m_PVRFilteringGaussRadiusIndirect: 5
8587
m_PVRFilteringGaussRadiusAO: 2
86-
m_PVRFilteringAtrousColorSigma: 1
87-
m_PVRFilteringAtrousNormalSigma: 1
88-
m_PVRFilteringAtrousPositionSigma: 1
88+
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
89+
m_PVRFilteringAtrousPositionSigmaIndirect: 2
90+
m_PVRFilteringAtrousPositionSigmaAO: 1
8991
m_LightingDataAsset: {fileID: 0}
9092
m_UseShadowmask: 1
9193
--- !u!196 &4
@@ -107,6 +109,8 @@ NavMeshSettings:
107109
manualTileSize: 0
108110
tileSize: 256
109111
accuratePlacement: 0
112+
debug:
113+
m_Flags: 0
110114
m_NavMeshData: {fileID: 0}
111115
--- !u!1 &643357608
112116
GameObject:
@@ -149,83 +153,81 @@ Transform:
149153
m_Father: {fileID: 0}
150154
m_RootOrder: 0
151155
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
152-
--- !u!1 &1835393739
156+
--- !u!1 &1667680821
153157
GameObject:
154158
m_ObjectHideFlags: 0
155159
m_PrefabParentObject: {fileID: 0}
156160
m_PrefabInternal: {fileID: 0}
157161
serializedVersion: 5
158162
m_Component:
159-
- component: {fileID: 1835393743}
160-
- component: {fileID: 1835393742}
161-
- component: {fileID: 1835393741}
162-
- component: {fileID: 1835393740}
163+
- component: {fileID: 1667680825}
164+
- component: {fileID: 1667680824}
165+
- component: {fileID: 1667680823}
166+
- component: {fileID: 1667680822}
163167
m_Layer: 0
164-
m_Name: Sphere
168+
m_Name: Camera
165169
m_TagString: Untagged
166170
m_Icon: {fileID: 0}
167171
m_NavMeshLayer: 0
168172
m_StaticEditorFlags: 0
169173
m_IsActive: 1
170-
--- !u!23 &1835393740
171-
MeshRenderer:
174+
--- !u!81 &1667680822
175+
AudioListener:
172176
m_ObjectHideFlags: 0
173177
m_PrefabParentObject: {fileID: 0}
174178
m_PrefabInternal: {fileID: 0}
175-
m_GameObject: {fileID: 1835393739}
179+
m_GameObject: {fileID: 1667680821}
176180
m_Enabled: 1
177-
m_CastShadows: 1
178-
m_ReceiveShadows: 1
179-
m_MotionVectors: 1
180-
m_LightProbeUsage: 1
181-
m_ReflectionProbeUsage: 1
182-
m_Materials:
183-
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
184-
m_StaticBatchInfo:
185-
firstSubMesh: 0
186-
subMeshCount: 0
187-
m_StaticBatchRoot: {fileID: 0}
188-
m_ProbeAnchor: {fileID: 0}
189-
m_LightProbeVolumeOverride: {fileID: 0}
190-
m_ScaleInLightmap: 1
191-
m_PreserveUVs: 1
192-
m_IgnoreNormalsForChartDetection: 0
193-
m_ImportantGI: 0
194-
m_SelectedEditorRenderState: 3
195-
m_MinimumChartSize: 4
196-
m_AutoUVMaxDistance: 0.5
197-
m_AutoUVMaxAngle: 89
198-
m_LightmapParameters: {fileID: 0}
199-
m_SortingLayerID: 0
200-
m_SortingLayer: 0
201-
m_SortingOrder: 0
202-
--- !u!135 &1835393741
203-
SphereCollider:
181+
--- !u!124 &1667680823
182+
Behaviour:
204183
m_ObjectHideFlags: 0
205184
m_PrefabParentObject: {fileID: 0}
206185
m_PrefabInternal: {fileID: 0}
207-
m_GameObject: {fileID: 1835393739}
208-
m_Material: {fileID: 0}
209-
m_IsTrigger: 0
186+
m_GameObject: {fileID: 1667680821}
210187
m_Enabled: 1
211-
serializedVersion: 2
212-
m_Radius: 0.5
213-
m_Center: {x: 0, y: 0, z: 0}
214-
--- !u!33 &1835393742
215-
MeshFilter:
188+
--- !u!20 &1667680824
189+
Camera:
216190
m_ObjectHideFlags: 0
217191
m_PrefabParentObject: {fileID: 0}
218192
m_PrefabInternal: {fileID: 0}
219-
m_GameObject: {fileID: 1835393739}
220-
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
221-
--- !u!4 &1835393743
193+
m_GameObject: {fileID: 1667680821}
194+
m_Enabled: 1
195+
serializedVersion: 2
196+
m_ClearFlags: 1
197+
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
198+
m_NormalizedViewPortRect:
199+
serializedVersion: 2
200+
x: 0
201+
y: 0
202+
width: 1
203+
height: 1
204+
near clip plane: 0.3
205+
far clip plane: 1000
206+
field of view: 60
207+
orthographic: 0
208+
orthographic size: 5
209+
m_Depth: 0
210+
m_CullingMask:
211+
serializedVersion: 2
212+
m_Bits: 4294967295
213+
m_RenderingPath: -1
214+
m_TargetTexture: {fileID: 0}
215+
m_TargetDisplay: 0
216+
m_TargetEye: 3
217+
m_HDR: 1
218+
m_AllowMSAA: 1
219+
m_ForceIntoRT: 0
220+
m_OcclusionCulling: 1
221+
m_StereoConvergence: 10
222+
m_StereoSeparation: 0.022
223+
--- !u!4 &1667680825
222224
Transform:
223225
m_ObjectHideFlags: 0
224226
m_PrefabParentObject: {fileID: 0}
225227
m_PrefabInternal: {fileID: 0}
226-
m_GameObject: {fileID: 1835393739}
228+
m_GameObject: {fileID: 1667680821}
227229
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
228-
m_LocalPosition: {x: 0, y: 0, z: 0}
230+
m_LocalPosition: {x: 0, y: 0, z: -2}
229231
m_LocalScale: {x: 1, y: 1, z: 1}
230232
m_Children: []
231233
m_Father: {fileID: 0}

0 commit comments

Comments
 (0)