├── .gitattributes ├── .github └── workflows │ └── main.yml ├── .gitignore ├── Assets ├── Test.meta ├── Test.unity ├── Test.unity.meta └── Test │ ├── Buffer.renderTexture │ ├── Buffer.renderTexture.meta │ ├── Controller.cs │ ├── Controller.cs.meta │ ├── Gradient.cs │ ├── Gradient.cs.meta │ ├── Gradient.shader │ └── Gradient.shader.meta ├── LICENSE ├── Packages ├── jp.keijiro.avfi │ ├── Editor.meta │ ├── Editor │ │ ├── Avfi.Editor.asmdef │ │ ├── Avfi.Editor.asmdef.meta │ │ ├── PbxModifier.cs │ │ └── PbxModifier.cs.meta │ ├── LICENSE │ ├── LICENSE.meta │ ├── README.md │ ├── README.md.meta │ ├── Runtime.meta │ ├── Runtime │ │ ├── Avfi.Runtime.asmdef │ │ ├── Avfi.Runtime.asmdef.meta │ │ ├── Internal.meta │ │ ├── Internal │ │ │ ├── Utils.cs │ │ │ └── Utils.cs.meta │ │ ├── Plugins.meta │ │ ├── Plugins │ │ │ ├── Avfi.bundle │ │ │ ├── Avfi.bundle.meta │ │ │ ├── Plugin.cs │ │ │ ├── Plugin.cs.meta │ │ │ ├── libAvfi.a │ │ │ └── libAvfi.a.meta │ │ ├── VideoRecorder.cs │ │ └── VideoRecorder.cs.meta │ ├── package.json │ └── package.json.meta ├── manifest.json └── packages-lock.json ├── Plugin ├── Avfi.m └── build.sh ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── MemorySettings.asset ├── NavMeshAreas.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── SceneTemplateSettings.json ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset ├── XRSettings.asset └── boot.config └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | * -text 2 | 3 | *.cs text eol=lf diff=csharp 4 | *.shader text eol=lf 5 | *.cginc text eol=lf 6 | *.hlsl text eol=lf 7 | *.compute text eol=lf 8 | 9 | *.meta text eol=lf 10 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: UPM on npsjs.com 2 | on: 3 | release: 4 | types: [created] 5 | jobs: 6 | publish: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - uses: actions/checkout@v2 10 | - uses: actions/setup-node@v2 11 | with: 12 | registry-url: 'https://registry.npmjs.org' 13 | - run: npm publish 14 | working-directory: Packages/jp.keijiro.avfi 15 | env: 16 | NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Thumbs.db 2 | Desktop.ini 3 | .DS_Store 4 | *.swp 5 | 6 | /Library 7 | /Logs 8 | /Recordings 9 | /Temp 10 | /UserSettings 11 | 12 | /Plugin/*.o 13 | /Plugin/*.so 14 | /Plugin/*.a 15 | /Plugin/*.bundle 16 | /Plugin/*.xcodeproj 17 | 18 | *.mp4 19 | -------------------------------------------------------------------------------- /Assets/Test.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d501aa4c76254b469f004b7356cdc08 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Test.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.37311915, g: 0.3807396, b: 0.35872662, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 12 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_LightingSettings: {fileID: 0} 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | maxJobWorkers: 0 122 | preserveTilesOutsideBounds: 0 123 | debug: 124 | m_Flags: 0 125 | m_NavMeshData: {fileID: 0} 126 | --- !u!1 &624149801 127 | GameObject: 128 | m_ObjectHideFlags: 0 129 | m_CorrespondingSourceObject: {fileID: 0} 130 | m_PrefabInstance: {fileID: 0} 131 | m_PrefabAsset: {fileID: 0} 132 | serializedVersion: 6 133 | m_Component: 134 | - component: {fileID: 624149803} 135 | - component: {fileID: 624149804} 136 | - component: {fileID: 624149802} 137 | m_Layer: 0 138 | m_Name: Video Recorder 139 | m_TagString: Untagged 140 | m_Icon: {fileID: 0} 141 | m_NavMeshLayer: 0 142 | m_StaticEditorFlags: 0 143 | m_IsActive: 1 144 | --- !u!114 &624149802 145 | MonoBehaviour: 146 | m_ObjectHideFlags: 0 147 | m_CorrespondingSourceObject: {fileID: 0} 148 | m_PrefabInstance: {fileID: 0} 149 | m_PrefabAsset: {fileID: 0} 150 | m_GameObject: {fileID: 624149801} 151 | m_Enabled: 1 152 | m_EditorHideFlags: 0 153 | m_Script: {fileID: 11500000, guid: 371410545873b41d68866d13c5be1adc, type: 3} 154 | m_Name: 155 | m_EditorClassIdentifier: 156 | _source: {fileID: 8400000, guid: bba7e441058c342e4968e2007df3bd4b, type: 2} 157 | --- !u!4 &624149803 158 | Transform: 159 | m_ObjectHideFlags: 0 160 | m_CorrespondingSourceObject: {fileID: 0} 161 | m_PrefabInstance: {fileID: 0} 162 | m_PrefabAsset: {fileID: 0} 163 | m_GameObject: {fileID: 624149801} 164 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 165 | m_LocalPosition: {x: 0, y: 0, z: 0} 166 | m_LocalScale: {x: 1, y: 1, z: 1} 167 | m_Children: [] 168 | m_Father: {fileID: 0} 169 | m_RootOrder: 4 170 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 171 | --- !u!114 &624149804 172 | MonoBehaviour: 173 | m_ObjectHideFlags: 0 174 | m_CorrespondingSourceObject: {fileID: 0} 175 | m_PrefabInstance: {fileID: 0} 176 | m_PrefabAsset: {fileID: 0} 177 | m_GameObject: {fileID: 624149801} 178 | m_Enabled: 1 179 | m_EditorHideFlags: 0 180 | m_Script: {fileID: 11500000, guid: 2cf0dfe2d0bf4455e8d5b440fc598036, type: 3} 181 | m_Name: 182 | m_EditorClassIdentifier: 183 | _buttonLabel: {fileID: 1249783282} 184 | --- !u!1 &654613769 185 | GameObject: 186 | m_ObjectHideFlags: 0 187 | m_CorrespondingSourceObject: {fileID: 0} 188 | m_PrefabInstance: {fileID: 0} 189 | m_PrefabAsset: {fileID: 0} 190 | serializedVersion: 6 191 | m_Component: 192 | - component: {fileID: 654613772} 193 | - component: {fileID: 654613771} 194 | - component: {fileID: 654613770} 195 | m_Layer: 0 196 | m_Name: EventSystem 197 | m_TagString: Untagged 198 | m_Icon: {fileID: 0} 199 | m_NavMeshLayer: 0 200 | m_StaticEditorFlags: 0 201 | m_IsActive: 1 202 | --- !u!114 &654613770 203 | MonoBehaviour: 204 | m_ObjectHideFlags: 0 205 | m_CorrespondingSourceObject: {fileID: 0} 206 | m_PrefabInstance: {fileID: 0} 207 | m_PrefabAsset: {fileID: 0} 208 | m_GameObject: {fileID: 654613769} 209 | m_Enabled: 1 210 | m_EditorHideFlags: 0 211 | m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} 212 | m_Name: 213 | m_EditorClassIdentifier: 214 | m_HorizontalAxis: Horizontal 215 | m_VerticalAxis: Vertical 216 | m_SubmitButton: Submit 217 | m_CancelButton: Cancel 218 | m_InputActionsPerSecond: 10 219 | m_RepeatDelay: 0.5 220 | m_ForceModuleActive: 0 221 | --- !u!114 &654613771 222 | MonoBehaviour: 223 | m_ObjectHideFlags: 0 224 | m_CorrespondingSourceObject: {fileID: 0} 225 | m_PrefabInstance: {fileID: 0} 226 | m_PrefabAsset: {fileID: 0} 227 | m_GameObject: {fileID: 654613769} 228 | m_Enabled: 1 229 | m_EditorHideFlags: 0 230 | m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} 231 | m_Name: 232 | m_EditorClassIdentifier: 233 | m_FirstSelected: {fileID: 0} 234 | m_sendNavigationEvents: 1 235 | m_DragThreshold: 10 236 | --- !u!4 &654613772 237 | Transform: 238 | m_ObjectHideFlags: 0 239 | m_CorrespondingSourceObject: {fileID: 0} 240 | m_PrefabInstance: {fileID: 0} 241 | m_PrefabAsset: {fileID: 0} 242 | m_GameObject: {fileID: 654613769} 243 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 244 | m_LocalPosition: {x: 0, y: 0, z: 0} 245 | m_LocalScale: {x: 1, y: 1, z: 1} 246 | m_Children: [] 247 | m_Father: {fileID: 0} 248 | m_RootOrder: 0 249 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 250 | --- !u!1 &830707191 251 | GameObject: 252 | m_ObjectHideFlags: 0 253 | m_CorrespondingSourceObject: {fileID: 0} 254 | m_PrefabInstance: {fileID: 0} 255 | m_PrefabAsset: {fileID: 0} 256 | serializedVersion: 6 257 | m_Component: 258 | - component: {fileID: 830707194} 259 | - component: {fileID: 830707193} 260 | - component: {fileID: 830707195} 261 | m_Layer: 0 262 | m_Name: RT Camera 263 | m_TagString: Untagged 264 | m_Icon: {fileID: 0} 265 | m_NavMeshLayer: 0 266 | m_StaticEditorFlags: 0 267 | m_IsActive: 1 268 | --- !u!20 &830707193 269 | Camera: 270 | m_ObjectHideFlags: 0 271 | m_CorrespondingSourceObject: {fileID: 0} 272 | m_PrefabInstance: {fileID: 0} 273 | m_PrefabAsset: {fileID: 0} 274 | m_GameObject: {fileID: 830707191} 275 | m_Enabled: 1 276 | serializedVersion: 2 277 | m_ClearFlags: 2 278 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 279 | m_projectionMatrixMode: 1 280 | m_GateFitMode: 2 281 | m_FOVAxisMode: 0 282 | m_SensorSize: {x: 36, y: 24} 283 | m_LensShift: {x: 0, y: 0} 284 | m_FocalLength: 50 285 | m_NormalizedViewPortRect: 286 | serializedVersion: 2 287 | x: 0 288 | y: 0 289 | width: 1 290 | height: 1 291 | near clip plane: 0.3 292 | far clip plane: 1000 293 | field of view: 60 294 | orthographic: 1 295 | orthographic size: 1 296 | m_Depth: 0 297 | m_CullingMask: 298 | serializedVersion: 2 299 | m_Bits: 0 300 | m_RenderingPath: 1 301 | m_TargetTexture: {fileID: 8400000, guid: bba7e441058c342e4968e2007df3bd4b, type: 2} 302 | m_TargetDisplay: 0 303 | m_TargetEye: 3 304 | m_HDR: 0 305 | m_AllowMSAA: 0 306 | m_AllowDynamicResolution: 0 307 | m_ForceIntoRT: 0 308 | m_OcclusionCulling: 0 309 | m_StereoConvergence: 10 310 | m_StereoSeparation: 0.022 311 | --- !u!4 &830707194 312 | Transform: 313 | m_ObjectHideFlags: 0 314 | m_CorrespondingSourceObject: {fileID: 0} 315 | m_PrefabInstance: {fileID: 0} 316 | m_PrefabAsset: {fileID: 0} 317 | m_GameObject: {fileID: 830707191} 318 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 319 | m_LocalPosition: {x: 0, y: 0, z: 0} 320 | m_LocalScale: {x: 1, y: 1, z: 1} 321 | m_Children: [] 322 | m_Father: {fileID: 0} 323 | m_RootOrder: 2 324 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 325 | --- !u!114 &830707195 326 | MonoBehaviour: 327 | m_ObjectHideFlags: 0 328 | m_CorrespondingSourceObject: {fileID: 0} 329 | m_PrefabInstance: {fileID: 0} 330 | m_PrefabAsset: {fileID: 0} 331 | m_GameObject: {fileID: 830707191} 332 | m_Enabled: 1 333 | m_EditorHideFlags: 0 334 | m_Script: {fileID: 11500000, guid: 1936ce1378a45425cbed1915b6de1dfc, type: 3} 335 | m_Name: 336 | m_EditorClassIdentifier: 337 | _shader: {fileID: 4800000, guid: 471e2c84a66ff4cf0a08e4078f8a45ff, type: 3} 338 | --- !u!1 &918562449 339 | GameObject: 340 | m_ObjectHideFlags: 0 341 | m_CorrespondingSourceObject: {fileID: 0} 342 | m_PrefabInstance: {fileID: 0} 343 | m_PrefabAsset: {fileID: 0} 344 | serializedVersion: 6 345 | m_Component: 346 | - component: {fileID: 918562451} 347 | - component: {fileID: 918562450} 348 | m_Layer: 0 349 | m_Name: Main Camera 350 | m_TagString: MainCamera 351 | m_Icon: {fileID: 0} 352 | m_NavMeshLayer: 0 353 | m_StaticEditorFlags: 0 354 | m_IsActive: 1 355 | --- !u!20 &918562450 356 | Camera: 357 | m_ObjectHideFlags: 0 358 | m_CorrespondingSourceObject: {fileID: 0} 359 | m_PrefabInstance: {fileID: 0} 360 | m_PrefabAsset: {fileID: 0} 361 | m_GameObject: {fileID: 918562449} 362 | m_Enabled: 1 363 | serializedVersion: 2 364 | m_ClearFlags: 2 365 | m_BackGroundColor: {r: 0.05339979, g: 0.09133341, b: 0.1509434, a: 0} 366 | m_projectionMatrixMode: 1 367 | m_GateFitMode: 2 368 | m_FOVAxisMode: 0 369 | m_SensorSize: {x: 36, y: 24} 370 | m_LensShift: {x: 0, y: 0} 371 | m_FocalLength: 50 372 | m_NormalizedViewPortRect: 373 | serializedVersion: 2 374 | x: 0 375 | y: 0 376 | width: 1 377 | height: 1 378 | near clip plane: 0.3 379 | far clip plane: 1000 380 | field of view: 60 381 | orthographic: 0 382 | orthographic size: 5 383 | m_Depth: 0 384 | m_CullingMask: 385 | serializedVersion: 2 386 | m_Bits: 4294967295 387 | m_RenderingPath: 1 388 | m_TargetTexture: {fileID: 0} 389 | m_TargetDisplay: 0 390 | m_TargetEye: 3 391 | m_HDR: 0 392 | m_AllowMSAA: 0 393 | m_AllowDynamicResolution: 0 394 | m_ForceIntoRT: 0 395 | m_OcclusionCulling: 0 396 | m_StereoConvergence: 10 397 | m_StereoSeparation: 0.022 398 | --- !u!4 &918562451 399 | Transform: 400 | m_ObjectHideFlags: 0 401 | m_CorrespondingSourceObject: {fileID: 0} 402 | m_PrefabInstance: {fileID: 0} 403 | m_PrefabAsset: {fileID: 0} 404 | m_GameObject: {fileID: 918562449} 405 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 406 | m_LocalPosition: {x: 0, y: 0, z: 0} 407 | m_LocalScale: {x: 1, y: 1, z: 1} 408 | m_Children: [] 409 | m_Father: {fileID: 0} 410 | m_RootOrder: 3 411 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 412 | --- !u!1 &1249783280 413 | GameObject: 414 | m_ObjectHideFlags: 0 415 | m_CorrespondingSourceObject: {fileID: 0} 416 | m_PrefabInstance: {fileID: 0} 417 | m_PrefabAsset: {fileID: 0} 418 | serializedVersion: 6 419 | m_Component: 420 | - component: {fileID: 1249783281} 421 | - component: {fileID: 1249783283} 422 | - component: {fileID: 1249783282} 423 | m_Layer: 5 424 | m_Name: Text 425 | m_TagString: Untagged 426 | m_Icon: {fileID: 0} 427 | m_NavMeshLayer: 0 428 | m_StaticEditorFlags: 0 429 | m_IsActive: 1 430 | --- !u!224 &1249783281 431 | RectTransform: 432 | m_ObjectHideFlags: 0 433 | m_CorrespondingSourceObject: {fileID: 0} 434 | m_PrefabInstance: {fileID: 0} 435 | m_PrefabAsset: {fileID: 0} 436 | m_GameObject: {fileID: 1249783280} 437 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 438 | m_LocalPosition: {x: 0, y: 0, z: 0} 439 | m_LocalScale: {x: 1, y: 1, z: 1} 440 | m_Children: [] 441 | m_Father: {fileID: 1311141148} 442 | m_RootOrder: 0 443 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 444 | m_AnchorMin: {x: 0, y: 0} 445 | m_AnchorMax: {x: 1, y: 1} 446 | m_AnchoredPosition: {x: 0, y: 0} 447 | m_SizeDelta: {x: 0, y: 0} 448 | m_Pivot: {x: 0.5, y: 0.5} 449 | --- !u!114 &1249783282 450 | MonoBehaviour: 451 | m_ObjectHideFlags: 0 452 | m_CorrespondingSourceObject: {fileID: 0} 453 | m_PrefabInstance: {fileID: 0} 454 | m_PrefabAsset: {fileID: 0} 455 | m_GameObject: {fileID: 1249783280} 456 | m_Enabled: 1 457 | m_EditorHideFlags: 0 458 | m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} 459 | m_Name: 460 | m_EditorClassIdentifier: 461 | m_Material: {fileID: 0} 462 | m_Color: {r: 0, g: 0, b: 0, a: 1} 463 | m_RaycastTarget: 1 464 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 465 | m_Maskable: 1 466 | m_OnCullStateChanged: 467 | m_PersistentCalls: 468 | m_Calls: [] 469 | m_FontData: 470 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 471 | m_FontSize: 50 472 | m_FontStyle: 1 473 | m_BestFit: 0 474 | m_MinSize: 4 475 | m_MaxSize: 50 476 | m_Alignment: 4 477 | m_AlignByGeometry: 0 478 | m_RichText: 1 479 | m_HorizontalOverflow: 0 480 | m_VerticalOverflow: 0 481 | m_LineSpacing: 1 482 | m_Text: Record 483 | --- !u!222 &1249783283 484 | CanvasRenderer: 485 | m_ObjectHideFlags: 0 486 | m_CorrespondingSourceObject: {fileID: 0} 487 | m_PrefabInstance: {fileID: 0} 488 | m_PrefabAsset: {fileID: 0} 489 | m_GameObject: {fileID: 1249783280} 490 | m_CullTransparentMesh: 1 491 | --- !u!1 &1311141147 492 | GameObject: 493 | m_ObjectHideFlags: 0 494 | m_CorrespondingSourceObject: {fileID: 0} 495 | m_PrefabInstance: {fileID: 0} 496 | m_PrefabAsset: {fileID: 0} 497 | serializedVersion: 6 498 | m_Component: 499 | - component: {fileID: 1311141148} 500 | - component: {fileID: 1311141151} 501 | - component: {fileID: 1311141150} 502 | - component: {fileID: 1311141149} 503 | m_Layer: 5 504 | m_Name: Button 505 | m_TagString: Untagged 506 | m_Icon: {fileID: 0} 507 | m_NavMeshLayer: 0 508 | m_StaticEditorFlags: 0 509 | m_IsActive: 1 510 | --- !u!224 &1311141148 511 | RectTransform: 512 | m_ObjectHideFlags: 0 513 | m_CorrespondingSourceObject: {fileID: 0} 514 | m_PrefabInstance: {fileID: 0} 515 | m_PrefabAsset: {fileID: 0} 516 | m_GameObject: {fileID: 1311141147} 517 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 518 | m_LocalPosition: {x: 0, y: 0, z: 0} 519 | m_LocalScale: {x: 1, y: 1, z: 1} 520 | m_Children: 521 | - {fileID: 1249783281} 522 | m_Father: {fileID: 1792894497} 523 | m_RootOrder: 1 524 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 525 | m_AnchorMin: {x: 1, y: 1} 526 | m_AnchorMax: {x: 1, y: 1} 527 | m_AnchoredPosition: {x: -40, y: -40} 528 | m_SizeDelta: {x: 500, y: 100} 529 | m_Pivot: {x: 1, y: 1} 530 | --- !u!114 &1311141149 531 | MonoBehaviour: 532 | m_ObjectHideFlags: 0 533 | m_CorrespondingSourceObject: {fileID: 0} 534 | m_PrefabInstance: {fileID: 0} 535 | m_PrefabAsset: {fileID: 0} 536 | m_GameObject: {fileID: 1311141147} 537 | m_Enabled: 1 538 | m_EditorHideFlags: 0 539 | m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} 540 | m_Name: 541 | m_EditorClassIdentifier: 542 | m_Navigation: 543 | m_Mode: 3 544 | m_WrapAround: 0 545 | m_SelectOnUp: {fileID: 0} 546 | m_SelectOnDown: {fileID: 0} 547 | m_SelectOnLeft: {fileID: 0} 548 | m_SelectOnRight: {fileID: 0} 549 | m_Transition: 1 550 | m_Colors: 551 | m_NormalColor: {r: 1, g: 1, b: 1, a: 1} 552 | m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} 553 | m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} 554 | m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} 555 | m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} 556 | m_ColorMultiplier: 1 557 | m_FadeDuration: 0.1 558 | m_SpriteState: 559 | m_HighlightedSprite: {fileID: 0} 560 | m_PressedSprite: {fileID: 0} 561 | m_SelectedSprite: {fileID: 0} 562 | m_DisabledSprite: {fileID: 0} 563 | m_AnimationTriggers: 564 | m_NormalTrigger: Normal 565 | m_HighlightedTrigger: Highlighted 566 | m_PressedTrigger: Pressed 567 | m_SelectedTrigger: Selected 568 | m_DisabledTrigger: Disabled 569 | m_Interactable: 1 570 | m_TargetGraphic: {fileID: 1311141150} 571 | m_OnClick: 572 | m_PersistentCalls: 573 | m_Calls: 574 | - m_Target: {fileID: 624149804} 575 | m_TargetAssemblyTypeName: Controller, Assembly-CSharp 576 | m_MethodName: OnPressRecordButton 577 | m_Mode: 1 578 | m_Arguments: 579 | m_ObjectArgument: {fileID: 0} 580 | m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine 581 | m_IntArgument: 0 582 | m_FloatArgument: 0 583 | m_StringArgument: 584 | m_BoolArgument: 0 585 | m_CallState: 2 586 | --- !u!114 &1311141150 587 | MonoBehaviour: 588 | m_ObjectHideFlags: 0 589 | m_CorrespondingSourceObject: {fileID: 0} 590 | m_PrefabInstance: {fileID: 0} 591 | m_PrefabAsset: {fileID: 0} 592 | m_GameObject: {fileID: 1311141147} 593 | m_Enabled: 1 594 | m_EditorHideFlags: 0 595 | m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} 596 | m_Name: 597 | m_EditorClassIdentifier: 598 | m_Material: {fileID: 0} 599 | m_Color: {r: 1, g: 1, b: 1, a: 1} 600 | m_RaycastTarget: 1 601 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 602 | m_Maskable: 1 603 | m_OnCullStateChanged: 604 | m_PersistentCalls: 605 | m_Calls: [] 606 | m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} 607 | m_Type: 1 608 | m_PreserveAspect: 0 609 | m_FillCenter: 1 610 | m_FillMethod: 4 611 | m_FillAmount: 1 612 | m_FillClockwise: 1 613 | m_FillOrigin: 0 614 | m_UseSpriteMesh: 0 615 | m_PixelsPerUnitMultiplier: 1 616 | --- !u!222 &1311141151 617 | CanvasRenderer: 618 | m_ObjectHideFlags: 0 619 | m_CorrespondingSourceObject: {fileID: 0} 620 | m_PrefabInstance: {fileID: 0} 621 | m_PrefabAsset: {fileID: 0} 622 | m_GameObject: {fileID: 1311141147} 623 | m_CullTransparentMesh: 1 624 | --- !u!1 &1441248030 625 | GameObject: 626 | m_ObjectHideFlags: 0 627 | m_CorrespondingSourceObject: {fileID: 0} 628 | m_PrefabInstance: {fileID: 0} 629 | m_PrefabAsset: {fileID: 0} 630 | serializedVersion: 6 631 | m_Component: 632 | - component: {fileID: 1441248031} 633 | - component: {fileID: 1441248033} 634 | - component: {fileID: 1441248032} 635 | m_Layer: 5 636 | m_Name: RawImage 637 | m_TagString: Untagged 638 | m_Icon: {fileID: 0} 639 | m_NavMeshLayer: 0 640 | m_StaticEditorFlags: 0 641 | m_IsActive: 1 642 | --- !u!224 &1441248031 643 | RectTransform: 644 | m_ObjectHideFlags: 0 645 | m_CorrespondingSourceObject: {fileID: 0} 646 | m_PrefabInstance: {fileID: 0} 647 | m_PrefabAsset: {fileID: 0} 648 | m_GameObject: {fileID: 1441248030} 649 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 650 | m_LocalPosition: {x: 0, y: 0, z: 0} 651 | m_LocalScale: {x: 1, y: 1, z: 1} 652 | m_Children: [] 653 | m_Father: {fileID: 1792894497} 654 | m_RootOrder: 0 655 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 656 | m_AnchorMin: {x: 0, y: 1} 657 | m_AnchorMax: {x: 0, y: 1} 658 | m_AnchoredPosition: {x: 40, y: -40} 659 | m_SizeDelta: {x: 960, y: 540} 660 | m_Pivot: {x: 0, y: 1} 661 | --- !u!114 &1441248032 662 | MonoBehaviour: 663 | m_ObjectHideFlags: 0 664 | m_CorrespondingSourceObject: {fileID: 0} 665 | m_PrefabInstance: {fileID: 0} 666 | m_PrefabAsset: {fileID: 0} 667 | m_GameObject: {fileID: 1441248030} 668 | m_Enabled: 1 669 | m_EditorHideFlags: 0 670 | m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3} 671 | m_Name: 672 | m_EditorClassIdentifier: 673 | m_Material: {fileID: 0} 674 | m_Color: {r: 1, g: 1, b: 1, a: 1} 675 | m_RaycastTarget: 1 676 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 677 | m_Maskable: 1 678 | m_OnCullStateChanged: 679 | m_PersistentCalls: 680 | m_Calls: [] 681 | m_Texture: {fileID: 8400000, guid: bba7e441058c342e4968e2007df3bd4b, type: 2} 682 | m_UVRect: 683 | serializedVersion: 2 684 | x: 0 685 | y: 0 686 | width: 1 687 | height: 1 688 | --- !u!222 &1441248033 689 | CanvasRenderer: 690 | m_ObjectHideFlags: 0 691 | m_CorrespondingSourceObject: {fileID: 0} 692 | m_PrefabInstance: {fileID: 0} 693 | m_PrefabAsset: {fileID: 0} 694 | m_GameObject: {fileID: 1441248030} 695 | m_CullTransparentMesh: 1 696 | --- !u!1 &1792894493 697 | GameObject: 698 | m_ObjectHideFlags: 0 699 | m_CorrespondingSourceObject: {fileID: 0} 700 | m_PrefabInstance: {fileID: 0} 701 | m_PrefabAsset: {fileID: 0} 702 | serializedVersion: 6 703 | m_Component: 704 | - component: {fileID: 1792894497} 705 | - component: {fileID: 1792894496} 706 | - component: {fileID: 1792894495} 707 | - component: {fileID: 1792894494} 708 | m_Layer: 5 709 | m_Name: Canvas 710 | m_TagString: Untagged 711 | m_Icon: {fileID: 0} 712 | m_NavMeshLayer: 0 713 | m_StaticEditorFlags: 0 714 | m_IsActive: 1 715 | --- !u!114 &1792894494 716 | MonoBehaviour: 717 | m_ObjectHideFlags: 0 718 | m_CorrespondingSourceObject: {fileID: 0} 719 | m_PrefabInstance: {fileID: 0} 720 | m_PrefabAsset: {fileID: 0} 721 | m_GameObject: {fileID: 1792894493} 722 | m_Enabled: 1 723 | m_EditorHideFlags: 0 724 | m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} 725 | m_Name: 726 | m_EditorClassIdentifier: 727 | m_IgnoreReversedGraphics: 1 728 | m_BlockingObjects: 0 729 | m_BlockingMask: 730 | serializedVersion: 2 731 | m_Bits: 4294967295 732 | --- !u!114 &1792894495 733 | MonoBehaviour: 734 | m_ObjectHideFlags: 0 735 | m_CorrespondingSourceObject: {fileID: 0} 736 | m_PrefabInstance: {fileID: 0} 737 | m_PrefabAsset: {fileID: 0} 738 | m_GameObject: {fileID: 1792894493} 739 | m_Enabled: 1 740 | m_EditorHideFlags: 0 741 | m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} 742 | m_Name: 743 | m_EditorClassIdentifier: 744 | m_UiScaleMode: 1 745 | m_ReferencePixelsPerUnit: 100 746 | m_ScaleFactor: 1 747 | m_ReferenceResolution: {x: 1920, y: 1080} 748 | m_ScreenMatchMode: 0 749 | m_MatchWidthOrHeight: 0 750 | m_PhysicalUnit: 3 751 | m_FallbackScreenDPI: 96 752 | m_DefaultSpriteDPI: 96 753 | m_DynamicPixelsPerUnit: 1 754 | m_PresetInfoIsWorld: 0 755 | --- !u!223 &1792894496 756 | Canvas: 757 | m_ObjectHideFlags: 0 758 | m_CorrespondingSourceObject: {fileID: 0} 759 | m_PrefabInstance: {fileID: 0} 760 | m_PrefabAsset: {fileID: 0} 761 | m_GameObject: {fileID: 1792894493} 762 | m_Enabled: 1 763 | serializedVersion: 3 764 | m_RenderMode: 0 765 | m_Camera: {fileID: 0} 766 | m_PlaneDistance: 100 767 | m_PixelPerfect: 0 768 | m_ReceivesEvents: 1 769 | m_OverrideSorting: 0 770 | m_OverridePixelPerfect: 0 771 | m_SortingBucketNormalizedSize: 0 772 | m_AdditionalShaderChannelsFlag: 0 773 | m_SortingLayerID: 0 774 | m_SortingOrder: 0 775 | m_TargetDisplay: 0 776 | --- !u!224 &1792894497 777 | RectTransform: 778 | m_ObjectHideFlags: 0 779 | m_CorrespondingSourceObject: {fileID: 0} 780 | m_PrefabInstance: {fileID: 0} 781 | m_PrefabAsset: {fileID: 0} 782 | m_GameObject: {fileID: 1792894493} 783 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 784 | m_LocalPosition: {x: 0, y: 0, z: 0} 785 | m_LocalScale: {x: 0, y: 0, z: 0} 786 | m_Children: 787 | - {fileID: 1441248031} 788 | - {fileID: 1311141148} 789 | m_Father: {fileID: 0} 790 | m_RootOrder: 1 791 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 792 | m_AnchorMin: {x: 0, y: 0} 793 | m_AnchorMax: {x: 0, y: 0} 794 | m_AnchoredPosition: {x: 0, y: 0} 795 | m_SizeDelta: {x: 0, y: 0} 796 | m_Pivot: {x: 0, y: 0} 797 | -------------------------------------------------------------------------------- /Assets/Test.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6aa4314593e9b459286297aab87b248f 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Test/Buffer.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: Buffer 10 | m_ImageContentsHash: 11 | serializedVersion: 2 12 | Hash: 00000000000000000000000000000000 13 | m_ForcedFallbackFormat: 4 14 | m_DownscaleFallback: 0 15 | m_IsAlphaChannelOptional: 0 16 | serializedVersion: 3 17 | m_Width: 1920 18 | m_Height: 1080 19 | m_AntiAliasing: 1 20 | m_MipCount: -1 21 | m_DepthFormat: 2 22 | m_ColorFormat: 8 23 | m_MipMap: 0 24 | m_GenerateMips: 1 25 | m_SRGB: 0 26 | m_UseDynamicScale: 0 27 | m_BindMS: 0 28 | m_EnableCompatibleFormat: 1 29 | m_TextureSettings: 30 | serializedVersion: 2 31 | m_FilterMode: 1 32 | m_Aniso: 0 33 | m_MipBias: 0 34 | m_WrapU: 1 35 | m_WrapV: 1 36 | m_WrapW: 1 37 | m_Dimension: 2 38 | m_VolumeDepth: 1 39 | -------------------------------------------------------------------------------- /Assets/Test/Buffer.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bba7e441058c342e4968e2007df3bd4b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 8400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Test/Controller.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | 4 | sealed class Controller : MonoBehaviour 5 | { 6 | [SerializeField] Text _buttonLabel = null; 7 | 8 | void Start() 9 | => Application.targetFrameRate = 60; 10 | 11 | public void OnPressRecordButton() 12 | { 13 | var rec = GetComponent(); 14 | 15 | if (rec.IsRecording) 16 | rec.EndRecording(); 17 | else 18 | rec.StartRecording(); 19 | 20 | _buttonLabel.text = rec.IsRecording ? "Stop" : "Record"; 21 | _buttonLabel.color = rec.IsRecording ? Color.red : Color.black; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Assets/Test/Controller.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cf0dfe2d0bf4455e8d5b440fc598036 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Test/Gradient.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | sealed class Gradient : MonoBehaviour 4 | { 5 | [SerializeField, HideInInspector] Shader _shader = null; 6 | 7 | Material _material; 8 | 9 | void Start() 10 | => _material = new Material(_shader); 11 | 12 | void OnRenderImage(RenderTexture source, RenderTexture destination) 13 | => Graphics.Blit(source, destination, _material, 0); 14 | } 15 | -------------------------------------------------------------------------------- /Assets/Test/Gradient.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1936ce1378a45425cbed1915b6de1dfc 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: 7 | - _shader: {fileID: 4800000, guid: 471e2c84a66ff4cf0a08e4078f8a45ff, type: 3} 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Test/Gradient.shader: -------------------------------------------------------------------------------- 1 | Shader "Hidden/Gradient" 2 | { 3 | CGINCLUDE 4 | 5 | float3 Plasma(float2 uv, float time) 6 | { 7 | float l = sin(uv.x * sin(time * 1.3f) + sin(uv.y * 4 + time) * sin(time)); 8 | return sin(float3(6, 7, 10) * 2 * l) * 0.5 + 0.5; 9 | } 10 | 11 | float3 Hue2RGB(float hue) 12 | { 13 | float h = hue * 6 - 2; 14 | float r = abs(h - 1) - 1; 15 | float g = 2 - abs(h); 16 | float b = 2 - abs(h - 2); 17 | return saturate(float3(r, g, b)); 18 | } 19 | 20 | void Vertex(float4 position : POSITION, 21 | float2 texCoord : TEXCOORD0, 22 | out float4 outPosition : SV_Position, 23 | out float2 outTexCoord : TEXCOORD0) 24 | { 25 | outPosition = UnityObjectToClipPos(position); 26 | outTexCoord = texCoord; 27 | } 28 | 29 | float4 Fragment(float4 position : SV_Position, 30 | float2 texCoord : TEXCOORD0) : SV_Target 31 | { 32 | float3 plasma = Plasma(texCoord, _Time.y); 33 | float gray = floor(texCoord.x * 11) / 10; 34 | float3 hue = Hue2RGB(gray); 35 | float3 rgb = texCoord.y < 0.6 ? plasma : (texCoord.y < 0.8 ? hue : gray); 36 | return float4(rgb, 1); 37 | } 38 | 39 | ENDCG 40 | 41 | SubShader 42 | { 43 | Cull Off ZWrite Off ZTest Always 44 | Pass 45 | { 46 | CGPROGRAM 47 | #pragma vertex Vertex 48 | #pragma fragment Fragment 49 | ENDCG 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Assets/Test/Gradient.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 471e2c84a66ff4cf0a08e4078f8a45ff 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | preprocessorOverride: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f229d41467b24772a65940b76486656 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Editor/Avfi.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Avfi.Editor", 3 | "rootNamespace": "", 4 | "references": [], 5 | "includePlatforms": [ 6 | "Editor" 7 | ], 8 | "excludePlatforms": [], 9 | "allowUnsafeCode": false, 10 | "overrideReferences": false, 11 | "precompiledReferences": [], 12 | "autoReferenced": true, 13 | "defineConstraints": [], 14 | "versionDefines": [], 15 | "noEngineReferences": false 16 | } -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Editor/Avfi.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23a5c4c394a4247979d5b8ef623ac0d5 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Editor/PbxModifier.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_IOS 2 | 3 | namespace Avfi { 4 | 5 | using UnityEditor; 6 | using UnityEditor.Callbacks; 7 | using UnityEditor.iOS.Xcode; 8 | using System.IO; 9 | 10 | // Xcode project file modifier for iOS support 11 | public class PbxModifier 12 | { 13 | [PostProcessBuild] 14 | public static void OnPostprocessBuild(BuildTarget buildTarget, string path) 15 | { 16 | if (buildTarget != BuildTarget.iOS) return; 17 | 18 | var plistPath = Path.Combine(path, "Info.plist"); 19 | 20 | var plist = new PlistDocument(); 21 | plist.ReadFromFile(plistPath); 22 | 23 | var key = "NSPhotoLibraryAddUsageDescription"; 24 | var desc = "Adds recorded videos to the library."; 25 | 26 | if (!plist.root.values.ContainsKey(key)) 27 | plist.root.SetString(key, desc); 28 | 29 | plist.WriteToFile(plistPath); 30 | } 31 | } 32 | 33 | } // namespace Avfi 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Editor/PbxModifier.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 808235bcbee664a44a93ab09a7d389a0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/LICENSE.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8f138997817a4650842e8b68437bc4e 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/README.md: -------------------------------------------------------------------------------- 1 | Avfi 2 | ==== 3 | 4 | ![gif](https://user-images.githubusercontent.com/343936/142568294-4cef6937-654c-4cfd-9d9e-032a4c84674e.gif) 5 | ![gif](https://user-images.githubusercontent.com/343936/142568320-d6285d24-adeb-4997-8ae6-5038288f4ce8.gif) 6 | 7 | **Avfi** is a Unity plugin allowing an application to record video clips with 8 | a simple operation. 9 | 10 | Avfi uses AVFoundation as a video encoding backend, so it only runs on the 11 | Apple platforms (macOS/iOS). 12 | 13 | [AVFoundation]: https://developer.apple.com/av-foundation/ 14 | 15 | How To Install 16 | -------------- 17 | 18 | This package uses the [scoped registry] feature to resolve package 19 | dependencies. Add the following lines to the manifest file 20 | (`Packages/manifest.json`). 21 | 22 | [scoped registry]: https://docs.unity3d.com/Manual/upm-scoped.html 23 | 24 | To the `scopedRegistries` section: 25 | 26 | ``` 27 | { 28 | "name": "Keijiro", 29 | "url": "https://registry.npmjs.com", 30 | "scopes": [ "jp.keijiro" ] 31 | } 32 | ``` 33 | 34 | To the `dependencies` section: 35 | 36 | ``` 37 | "jp.keijiro.avfi": "1.0.3" 38 | ``` 39 | 40 | After the changes, the manifest file should look like: 41 | 42 | ``` 43 | { 44 | "scopedRegistries": [ 45 | { 46 | "name": "Keijiro", 47 | "url": "https://registry.npmjs.com", 48 | "scopes": [ "jp.keijiro" ] 49 | } 50 | ], 51 | "dependencies": { 52 | "jp.keijiro.avfi": "1.0.3", 53 | ... 54 | ``` 55 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80676a42a8ff546e4a9feec44e3888ec 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e24ee39b64170488d882b27e122d23dc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime/Avfi.Runtime.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Avfi.Runtime", 3 | "rootNamespace": "", 4 | "references": [], 5 | "includePlatforms": [ 6 | "Editor", 7 | "iOS", 8 | "macOSStandalone" 9 | ], 10 | "excludePlatforms": [], 11 | "allowUnsafeCode": true, 12 | "overrideReferences": false, 13 | "precompiledReferences": [], 14 | "autoReferenced": true, 15 | "defineConstraints": [], 16 | "versionDefines": [], 17 | "noEngineReferences": false 18 | } -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime/Avfi.Runtime.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27ef066f8b226461ba23d8dc3671bb38 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime/Internal.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dae9f2941e4d447b185cc6590163ddb7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime/Internal/Utils.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEngine; 3 | using DateTime = System.DateTime; 4 | 5 | namespace Avfi { 6 | 7 | static class PathUtil 8 | { 9 | public static string TemporaryDirectoryPath 10 | => Application.platform == RuntimePlatform.IPhonePlayer 11 | ? Application.temporaryCachePath : "."; 12 | 13 | public static string GetTimestampedFilename() 14 | => $"Record_{DateTime.Now:MMdd_HHmm_ss}.mp4"; 15 | 16 | public static string GetTemporaryFilePath() 17 | => TemporaryDirectoryPath + "/" + GetTimestampedFilename(); 18 | } 19 | 20 | sealed class TimeQueue 21 | { 22 | Queue _queue = new Queue(); 23 | double _start; 24 | double _last; 25 | 26 | public void Clear() 27 | { 28 | _queue.Clear(); 29 | _start = 0; 30 | } 31 | 32 | public double Dequeue() 33 | => _queue.Dequeue(); 34 | 35 | public bool TryEnqueueNow() 36 | { 37 | if (_start == 0) 38 | { 39 | _queue.Enqueue(0); 40 | _start = Time.timeAsDouble; 41 | _last = 0; 42 | return true; 43 | } 44 | else 45 | { 46 | var time = Time.timeAsDouble - _start; 47 | 48 | // Reject it if it falls into the same frame. 49 | if ((int)(time * 60) == (int)(_last * 60)) return false; 50 | 51 | _queue.Enqueue(time); 52 | _last = time; 53 | return true; 54 | } 55 | } 56 | } 57 | 58 | } // namespace Avfi 59 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime/Internal/Utils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f2b41ba6f9214c5b9c0a571cb4237b7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c310cb6eae254231b17be88bbc7390e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime/Plugins/Avfi.bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/Avfi/690a0b1bfb86b6b990b766947f15928bd374b445/Packages/jp.keijiro.avfi/Runtime/Plugins/Avfi.bundle -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime/Plugins/Avfi.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67aaf9b657ee54ef7bf0469a5d99d400 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Editor: 0 20 | Exclude Linux64: 1 21 | Exclude OSXUniversal: 0 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude iOS: 1 25 | - first: 26 | Any: 27 | second: 28 | enabled: 0 29 | settings: {} 30 | - first: 31 | Editor: Editor 32 | second: 33 | enabled: 1 34 | settings: 35 | CPU: AnyCPU 36 | DefaultValueInitialized: true 37 | OS: OSX 38 | - first: 39 | Standalone: Linux64 40 | second: 41 | enabled: 0 42 | settings: 43 | CPU: None 44 | - first: 45 | Standalone: OSXUniversal 46 | second: 47 | enabled: 1 48 | settings: 49 | CPU: AnyCPU 50 | - first: 51 | Standalone: Win 52 | second: 53 | enabled: 0 54 | settings: 55 | CPU: x86 56 | - first: 57 | Standalone: Win64 58 | second: 59 | enabled: 0 60 | settings: 61 | CPU: x86_64 62 | - first: 63 | iPhone: iOS 64 | second: 65 | enabled: 0 66 | settings: 67 | AddToEmbeddedBinaries: false 68 | CPU: AnyCPU 69 | CompileFlags: 70 | FrameworkDependencies: 71 | userData: 72 | assetBundleName: 73 | assetBundleVariant: 74 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime/Plugins/Plugin.cs: -------------------------------------------------------------------------------- 1 | using DllImportAttribute = System.Runtime.InteropServices.DllImportAttribute; 2 | using IntPtr = System.IntPtr; 3 | 4 | namespace Avfi { 5 | 6 | static class Plugin 7 | { 8 | #if !UNITY_EDITOR && UNITY_IOS 9 | const string DllName = "__Internal"; 10 | #else 11 | const string DllName = "Avfi"; 12 | #endif 13 | 14 | [DllImport(DllName, EntryPoint = "Avfi_StartRecording")] 15 | public static extern 16 | void StartRecording(string filePath, int width, int height); 17 | 18 | [DllImport(DllName, EntryPoint = "Avfi_AppendFrame")] 19 | public static extern 20 | void AppendFrame(IntPtr pointer, uint size, double time); 21 | 22 | [DllImport(DllName, EntryPoint = "Avfi_EndRecording")] 23 | public static extern 24 | void EndRecording(); 25 | } 26 | 27 | } // namespace Avfi 28 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime/Plugins/Plugin.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d4b58686b81d4a43818436d28beac1a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime/Plugins/libAvfi.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/Avfi/690a0b1bfb86b6b990b766947f15928bd374b445/Packages/jp.keijiro.avfi/Runtime/Plugins/libAvfi.a -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime/Plugins/libAvfi.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e5c636acaaaf41b38d77452ce455b9f 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Editor: 1 20 | Exclude Linux64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude iOS: 0 25 | - first: 26 | Any: 27 | second: 28 | enabled: 0 29 | settings: {} 30 | - first: 31 | Editor: Editor 32 | second: 33 | enabled: 0 34 | settings: 35 | CPU: AnyCPU 36 | DefaultValueInitialized: true 37 | OS: AnyOS 38 | - first: 39 | Standalone: Linux64 40 | second: 41 | enabled: 0 42 | settings: 43 | CPU: None 44 | - first: 45 | Standalone: OSXUniversal 46 | second: 47 | enabled: 0 48 | settings: 49 | CPU: None 50 | - first: 51 | Standalone: Win 52 | second: 53 | enabled: 0 54 | settings: 55 | CPU: None 56 | - first: 57 | Standalone: Win64 58 | second: 59 | enabled: 0 60 | settings: 61 | CPU: None 62 | - first: 63 | iPhone: iOS 64 | second: 65 | enabled: 1 66 | settings: 67 | AddToEmbeddedBinaries: false 68 | CPU: ARM64 69 | CompileFlags: 70 | FrameworkDependencies: 71 | userData: 72 | assetBundleName: 73 | assetBundleVariant: 74 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime/VideoRecorder.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Rendering; 3 | using Unity.Collections.LowLevel.Unsafe; 4 | using IntPtr = System.IntPtr; 5 | 6 | namespace Avfi { 7 | 8 | public sealed class VideoRecorder : MonoBehaviour 9 | { 10 | #region Editable attributes 11 | 12 | [SerializeField] RenderTexture _source = null; 13 | 14 | public RenderTexture source 15 | { get => _source; set => ChangeSource(value); } 16 | 17 | #endregion 18 | 19 | #region Public properties and methods 20 | 21 | public bool IsRecording 22 | { get; private set; } 23 | 24 | public void StartRecording() 25 | { 26 | var path = PathUtil.GetTemporaryFilePath(); 27 | Plugin.StartRecording(path, _source.width, _source.height); 28 | 29 | _timeQueue.Clear(); 30 | IsRecording = true; 31 | } 32 | 33 | public void EndRecording() 34 | { 35 | AsyncGPUReadback.WaitAllRequests(); 36 | Plugin.EndRecording(); 37 | IsRecording = false; 38 | } 39 | 40 | #endregion 41 | 42 | #region Private objects 43 | 44 | RenderTexture _buffer; 45 | TimeQueue _timeQueue = new TimeQueue(); 46 | 47 | void ChangeSource(RenderTexture rt) 48 | { 49 | if (IsRecording) 50 | { 51 | Debug.LogError("Can't change the source while recording."); 52 | return; 53 | } 54 | 55 | if (_buffer != null) Destroy(_buffer); 56 | 57 | _source = rt; 58 | _buffer = new RenderTexture(rt.width, rt.height, 0); 59 | } 60 | 61 | #endregion 62 | 63 | #region Async GPU readback 64 | 65 | unsafe void OnSourceReadback(AsyncGPUReadbackRequest request) 66 | { 67 | if (!IsRecording) return; 68 | var data = request.GetData(0); 69 | var ptr = (IntPtr)NativeArrayUnsafeUtility.GetUnsafeReadOnlyPtr(data); 70 | Plugin.AppendFrame(ptr, (uint)data.Length, _timeQueue.Dequeue()); 71 | } 72 | 73 | #endregion 74 | 75 | #region MonoBehaviour implementation 76 | 77 | void Start() 78 | => ChangeSource(_source); 79 | 80 | void OnDestroy() 81 | { 82 | if (IsRecording) EndRecording(); 83 | Destroy(_buffer); 84 | } 85 | 86 | void Update() 87 | { 88 | if (!IsRecording) return; 89 | if (!_timeQueue.TryEnqueueNow()) return; 90 | Graphics.Blit(_source, _buffer, new Vector2(1, -1), new Vector2(0, 1)); 91 | AsyncGPUReadback.Request(_buffer, 0, OnSourceReadback); 92 | } 93 | 94 | #endregion 95 | } 96 | 97 | } // namespace Avfi 98 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/Runtime/VideoRecorder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 371410545873b41d68866d13c5be1adc 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: 7 | - _source: {instanceID: 0} 8 | - _shader: {fileID: 4800000, guid: a8e9274b7336f447cb22af8b8a884238, type: 3} 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Keijiro Takahashi", 3 | "dependencies": { }, 4 | "description": "Simple video recorder with AVFoundation", 5 | "displayName": "Avfi", 6 | "keywords": [ "unity" ], 7 | "license": "Unlicense", 8 | "name": "jp.keijiro.avfi", 9 | "unity": "2021.1", 10 | "unityRelease": "0f1", 11 | "version": "1.0.3" 12 | } 13 | -------------------------------------------------------------------------------- /Packages/jp.keijiro.avfi/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f843a8997cc048afa94630707aef518 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ugui": "1.0.0" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ugui": { 4 | "version": "1.0.0", 5 | "depth": 0, 6 | "source": "builtin", 7 | "dependencies": { 8 | "com.unity.modules.ui": "1.0.0", 9 | "com.unity.modules.imgui": "1.0.0" 10 | } 11 | }, 12 | "jp.keijiro.avfi": { 13 | "version": "file:jp.keijiro.avfi", 14 | "depth": 0, 15 | "source": "embedded", 16 | "dependencies": {} 17 | }, 18 | "com.unity.modules.imgui": { 19 | "version": "1.0.0", 20 | "depth": 1, 21 | "source": "builtin", 22 | "dependencies": {} 23 | }, 24 | "com.unity.modules.ui": { 25 | "version": "1.0.0", 26 | "depth": 1, 27 | "source": "builtin", 28 | "dependencies": {} 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Plugin/Avfi.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #if TARGET_OS_IOS 4 | #import 5 | #endif 6 | 7 | // Internal objects 8 | static AVAssetWriter* _writer; 9 | static AVAssetWriterInput* _writerInput; 10 | static AVAssetWriterInputPixelBufferAdaptor* _bufferAdaptor; 11 | 12 | extern void Avfi_StartRecording(const char* filePath, int width, int height) 13 | { 14 | if (_writer) 15 | { 16 | NSLog(@"Recording has already been initiated."); 17 | return; 18 | } 19 | 20 | // Asset writer setup 21 | NSURL* filePathURL = 22 | [NSURL fileURLWithPath:[NSString stringWithUTF8String:filePath]]; 23 | 24 | NSError* err; 25 | _writer = 26 | [[AVAssetWriter alloc] initWithURL: filePathURL 27 | fileType: AVFileTypeQuickTimeMovie 28 | error: &err]; 29 | 30 | if (err) 31 | { 32 | NSLog(@"Failed to initialize AVAssetWriter (%@)", err); 33 | return; 34 | } 35 | 36 | // Asset writer input setup 37 | NSDictionary* settings = 38 | @{ AVVideoCodecKey: AVVideoCodecTypeH264, 39 | AVVideoWidthKey: @(width), 40 | AVVideoHeightKey: @(height) }; 41 | 42 | _writerInput = 43 | [[AVAssetWriterInput assetWriterInputWithMediaType: AVMediaTypeVideo 44 | outputSettings: settings] retain]; 45 | _writerInput.expectsMediaDataInRealTime = true; 46 | 47 | [_writer addInput:_writerInput]; 48 | 49 | // Pixel buffer adaptor setup 50 | NSDictionary* attribs = 51 | @{ (NSString*)kCVPixelBufferPixelFormatTypeKey: @(kCVPixelFormatType_32BGRA), 52 | (NSString*)kCVPixelBufferWidthKey: @(width), 53 | (NSString*)kCVPixelBufferHeightKey: @(height) }; 54 | 55 | _bufferAdaptor = 56 | [[AVAssetWriterInputPixelBufferAdaptor 57 | assetWriterInputPixelBufferAdaptorWithAssetWriterInput: _writerInput 58 | sourcePixelBufferAttributes: attribs] retain]; 59 | 60 | // Recording start 61 | if (![_writer startWriting]) 62 | { 63 | NSLog(@"Failed to start (%ld: %@)", _writer.status, _writer.error); 64 | return; 65 | } 66 | 67 | [_writer startSessionAtSourceTime:kCMTimeZero]; 68 | } 69 | 70 | extern void Avfi_AppendFrame(const void* source, uint32_t size, double time) 71 | { 72 | if (!_writer) 73 | { 74 | NSLog(@"Recording hasn't been initiated."); 75 | return; 76 | } 77 | 78 | if (!_writerInput.isReadyForMoreMediaData) 79 | { 80 | NSLog(@"Writer is not ready."); 81 | return; 82 | } 83 | 84 | // Buffer allocation 85 | CVPixelBufferRef buffer; 86 | CVReturn ret = CVPixelBufferPoolCreatePixelBuffer 87 | (NULL, _bufferAdaptor.pixelBufferPool, &buffer); 88 | 89 | if (ret != kCVReturnSuccess) 90 | { 91 | NSLog(@"Can't allocate a pixel buffer (%d)", ret); 92 | NSLog(@"%ld: %@", _writer.status, _writer.error); 93 | return; 94 | } 95 | 96 | // Buffer update 97 | CVPixelBufferLockBaseAddress(buffer, 0); 98 | 99 | void* pointer = CVPixelBufferGetBaseAddress(buffer); 100 | size_t buffer_size = CVPixelBufferGetDataSize(buffer); 101 | memcpy(pointer, source, MIN(size, buffer_size)); 102 | 103 | CVPixelBufferUnlockBaseAddress(buffer, 0); 104 | 105 | // Buffer submission 106 | [_bufferAdaptor appendPixelBuffer:buffer 107 | withPresentationTime:CMTimeMakeWithSeconds(time, 240)]; 108 | 109 | CVPixelBufferRelease(buffer); 110 | } 111 | 112 | extern void Avfi_EndRecording(void) 113 | { 114 | if (!_writer) 115 | { 116 | NSLog(@"Recording hasn't been initiated."); 117 | return; 118 | } 119 | 120 | [_writerInput markAsFinished]; 121 | 122 | #if TARGET_OS_IOS 123 | 124 | NSString* path = [_writer.outputURL.path retain]; 125 | [_writer finishWritingWithCompletionHandler: ^{ 126 | UISaveVideoAtPathToSavedPhotosAlbum(path, nil, nil, nil); 127 | [path release]; 128 | }]; 129 | 130 | #else 131 | 132 | [_writer finishWritingWithCompletionHandler: ^{}]; 133 | 134 | #endif 135 | 136 | [_writer release]; 137 | [_writerInput release]; 138 | [_bufferAdaptor release]; 139 | 140 | _writer = NULL; 141 | _writerInput = NULL; 142 | _bufferAdaptor = NULL; 143 | } 144 | -------------------------------------------------------------------------------- /Plugin/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | CFLAGS="-O2 -Wall" 4 | 5 | LIBS="-framework Foundation -framework AVFoundation" 6 | LIBS+=" -framework CoreMedia -framework CoreVideo -framework QuartzCore" 7 | 8 | MAC_ARGS="-shared -rdynamic -fPIC" 9 | 10 | IOS_ROOT=`xcrun --sdk iphoneos --show-sdk-path` 11 | IOS_ARGS="--sysroot $IOS_ROOT -isysroot $IOS_ROOT -fembed-bitcode" 12 | 13 | rm *.o *.so *.a *.bundle 14 | 15 | set -x 16 | 17 | gcc -target x86_64-apple-macos10.13 $CFLAGS $MAC_ARGS Avfi.m $LIBS -o x86_64.so 18 | gcc -target arm64-apple-macos10.13 $CFLAGS $MAC_ARGS Avfi.m $LIBS -o arm64.so 19 | 20 | gcc $CFLAGS $IOS_ARGS -c Avfi.m 21 | 22 | lipo -create -output Avfi.bundle x86_64.so arm64.so 23 | 24 | ar -crv libAvfi.a Avfi.o 25 | 26 | DST="../Packages/jp.keijiro.avfi/Runtime/Plugins" 27 | cp Avfi.bundle $DST 28 | cp libAvfi.a $DST 29 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 1024 20 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 11 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | m_FrictionType: 0 32 | m_EnableEnhancedDeterminism: 0 33 | m_EnableUnifiedHeightmaps: 1 34 | m_DefaultMaxAngluarSpeed: 7 35 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Test.unity 10 | guid: 6aa4314593e9b459286297aab87b248f 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 11 7 | m_SerializationMode: 2 8 | m_LineEndingsForNewScripts: 1 9 | m_DefaultBehaviorMode: 0 10 | m_PrefabRegularEnvironment: {fileID: 0} 11 | m_PrefabUIEnvironment: {fileID: 0} 12 | m_SpritePackerMode: 0 13 | m_SpritePackerPaddingPower: 1 14 | m_Bc7TextureCompressor: 0 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_EnableTextureStreamingInEditMode: 1 22 | m_EnableTextureStreamingInPlayMode: 1 23 | m_AsyncShaderCompilation: 1 24 | m_CachingShaderPreprocessor: 1 25 | m_PrefabModeAllowAutoSave: 1 26 | m_EnterPlayModeOptionsEnabled: 1 27 | m_EnterPlayModeOptions: 3 28 | m_GameObjectNamingDigits: 1 29 | m_GameObjectNamingScheme: 0 30 | m_AssetNamingUsesSpace: 1 31 | m_UseLegacyProbeSampleCount: 0 32 | m_SerializeInlineMappingsOnOneLine: 1 33 | m_DisableCookiesInLightmapper: 0 34 | m_AssetPipelineMode: 1 35 | m_RefreshImportMode: 0 36 | m_CacheServerMode: 0 37 | m_CacheServerEndpoint: 38 | m_CacheServerNamespacePrefix: default 39 | m_CacheServerEnableDownload: 1 40 | m_CacheServerEnableUpload: 1 41 | m_CacheServerEnableAuth: 0 42 | m_CacheServerEnableTls: 0 43 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | m_LogWhenShaderIsCompiled: 0 63 | m_AllowEnlightenSupportForUpgradedProject: 0 64 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/MemorySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!387306366 &1 4 | MemorySettings: 5 | m_ObjectHideFlags: 0 6 | m_EditorMemorySettings: 7 | m_MainAllocatorBlockSize: -1 8 | m_ThreadAllocatorBlockSize: -1 9 | m_MainGfxBlockSize: -1 10 | m_ThreadGfxBlockSize: -1 11 | m_CacheBlockSize: -1 12 | m_TypetreeBlockSize: -1 13 | m_ProfilerBlockSize: -1 14 | m_ProfilerEditorBlockSize: -1 15 | m_BucketAllocatorGranularity: -1 16 | m_BucketAllocatorBucketsCount: -1 17 | m_BucketAllocatorBlockSize: -1 18 | m_BucketAllocatorBlockCount: -1 19 | m_ProfilerBucketAllocatorGranularity: -1 20 | m_ProfilerBucketAllocatorBucketsCount: -1 21 | m_ProfilerBucketAllocatorBlockSize: -1 22 | m_ProfilerBucketAllocatorBlockCount: -1 23 | m_TempAllocatorSizeMain: -1 24 | m_JobTempAllocatorBlockSize: -1 25 | m_BackgroundJobTempAllocatorBlockSize: -1 26 | m_JobTempAllocatorReducedBlockSize: -1 27 | m_TempAllocatorSizeGIBakingWorker: -1 28 | m_TempAllocatorSizeNavMeshWorker: -1 29 | m_TempAllocatorSizeAudioWorker: -1 30 | m_TempAllocatorSizeCloudWorker: -1 31 | m_TempAllocatorSizeGfx: -1 32 | m_TempAllocatorSizeJobWorker: -1 33 | m_TempAllocatorSizeBackgroundWorker: -1 34 | m_TempAllocatorSizePreloadManager: -1 35 | m_PlatformMemorySettings: {} 36 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreReleasePackages: 1 16 | m_EnablePackageDependencies: 1 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | m_SeeAllPackageVersions: 0 20 | oneTimeWarningShown: 1 21 | m_Registries: 22 | - m_Id: main 23 | m_Name: 24 | m_Url: https://packages.unity.com 25 | m_Scopes: [] 26 | m_IsDefault: 1 27 | m_Capabilities: 7 28 | m_UserSelectedRegistryName: 29 | m_UserAddingNewScopedRegistry: 0 30 | m_RegistryInfoDraft: 31 | m_Modified: 0 32 | m_ErrorMessage: 33 | m_UserModificationsInstanceId: -830 34 | m_OriginalInstanceId: -832 35 | m_LoadAssets: 0 36 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 22 7 | productGUID: 447c85e26be8142d2a9debcc871ae6f3 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 3 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: Avfi 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 0 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1920 46 | defaultScreenHeight: 1080 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | mipStripping: 0 53 | numberOfMipsStripped: 0 54 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 55 | iosShowActivityIndicatorOnLoading: -1 56 | androidShowActivityIndicatorOnLoading: -1 57 | iosUseCustomAppBackgroundBehavior: 0 58 | iosAllowHTTPDownload: 1 59 | allowedAutorotateToPortrait: 1 60 | allowedAutorotateToPortraitUpsideDown: 1 61 | allowedAutorotateToLandscapeRight: 1 62 | allowedAutorotateToLandscapeLeft: 1 63 | useOSAutorotation: 1 64 | use32BitDisplayBuffer: 1 65 | preserveFramebufferAlpha: 0 66 | disableDepthAndStencilBuffers: 0 67 | androidStartInFullscreen: 1 68 | androidRenderOutsideSafeArea: 1 69 | androidUseSwappy: 1 70 | androidBlitType: 0 71 | androidResizableWindow: 0 72 | androidDefaultWindowWidth: 1920 73 | androidDefaultWindowHeight: 1080 74 | androidMinimumWindowWidth: 400 75 | androidMinimumWindowHeight: 300 76 | androidFullscreenMode: 1 77 | defaultIsNativeResolution: 1 78 | macRetinaSupport: 1 79 | runInBackground: 0 80 | captureSingleScreen: 0 81 | muteOtherAudioSources: 0 82 | Prepare IOS For Recording: 0 83 | Force IOS Speakers When Recording: 0 84 | deferSystemGesturesMode: 0 85 | hideHomeButton: 0 86 | submitAnalytics: 1 87 | usePlayerLog: 1 88 | bakeCollisionMeshes: 0 89 | forceSingleInstance: 0 90 | useFlipModelSwapchain: 1 91 | resizableWindow: 0 92 | useMacAppStoreValidation: 0 93 | macAppStoreCategory: public.app-category.games 94 | gpuSkinning: 1 95 | xboxPIXTextureCapture: 0 96 | xboxEnableAvatar: 0 97 | xboxEnableKinect: 0 98 | xboxEnableKinectAutoTracking: 0 99 | xboxEnableFitness: 0 100 | visibleInBackground: 1 101 | allowFullscreenSwitch: 1 102 | fullscreenMode: 3 103 | xboxSpeechDB: 0 104 | xboxEnableHeadOrientation: 0 105 | xboxEnableGuest: 0 106 | xboxEnablePIXSampling: 0 107 | metalFramebufferOnly: 0 108 | xboxOneResolution: 0 109 | xboxOneSResolution: 0 110 | xboxOneXResolution: 3 111 | xboxOneMonoLoggingLevel: 0 112 | xboxOneLoggingLevel: 1 113 | xboxOneDisableEsram: 0 114 | xboxOneEnableTypeOptimization: 0 115 | xboxOnePresentImmediateThreshold: 0 116 | switchQueueCommandMemory: 0 117 | switchQueueControlMemory: 16384 118 | switchQueueComputeMemory: 262144 119 | switchNVNShaderPoolsGranularity: 33554432 120 | switchNVNDefaultPoolsGranularity: 16777216 121 | switchNVNOtherPoolsGranularity: 16777216 122 | switchNVNMaxPublicTextureIDCount: 0 123 | switchNVNMaxPublicSamplerIDCount: 0 124 | stadiaPresentMode: 0 125 | stadiaTargetFramerate: 0 126 | vulkanNumSwapchainBuffers: 3 127 | vulkanEnableSetSRGBWrite: 0 128 | vulkanEnablePreTransform: 1 129 | vulkanEnableLateAcquireNextImage: 0 130 | vulkanEnableCommandBufferRecycling: 1 131 | m_SupportedAspectRatios: 132 | 4:3: 1 133 | 5:4: 1 134 | 16:10: 1 135 | 16:9: 1 136 | Others: 1 137 | bundleVersion: 0.1 138 | preloadedAssets: [] 139 | metroInputSource: 0 140 | wsaTransparentSwapchain: 0 141 | m_HolographicPauseOnTrackingLoss: 1 142 | xboxOneDisableKinectGpuReservation: 1 143 | xboxOneEnable7thCore: 1 144 | vrSettings: 145 | enable360StereoCapture: 0 146 | isWsaHolographicRemotingEnabled: 0 147 | enableFrameTimingStats: 0 148 | useHDRDisplay: 0 149 | D3DHDRBitDepth: 0 150 | m_ColorGamuts: 00000000 151 | targetPixelDensity: 30 152 | resolutionScalingMode: 0 153 | androidSupportedAspectRatio: 1 154 | androidMaxAspectRatio: 2.1 155 | applicationIdentifier: 156 | Standalone: com.DefaultCompany.Avfi 157 | iPhone: com.DefaultCompany.Avfi 158 | buildNumber: 159 | Standalone: 0 160 | iPhone: 0 161 | tvOS: 0 162 | overrideDefaultApplicationIdentifier: 0 163 | AndroidBundleVersionCode: 1 164 | AndroidMinSdkVersion: 22 165 | AndroidTargetSdkVersion: 0 166 | AndroidPreferredInstallLocation: 1 167 | aotOptions: 168 | stripEngineCode: 1 169 | iPhoneStrippingLevel: 0 170 | iPhoneScriptCallOptimization: 0 171 | ForceInternetPermission: 0 172 | ForceSDCardPermission: 0 173 | CreateWallpaper: 0 174 | APKExpansionFiles: 0 175 | keepLoadedShadersAlive: 0 176 | StripUnusedMeshComponents: 1 177 | VertexChannelCompressionMask: 4054 178 | iPhoneSdkVersion: 988 179 | iOSTargetOSVersionString: 11.0 180 | tvOSSdkVersion: 0 181 | tvOSRequireExtendedGameController: 0 182 | tvOSTargetOSVersionString: 11.0 183 | uIPrerenderedIcon: 0 184 | uIRequiresPersistentWiFi: 0 185 | uIRequiresFullScreen: 1 186 | uIStatusBarHidden: 1 187 | uIExitOnSuspend: 0 188 | uIStatusBarStyle: 0 189 | appleTVSplashScreen: {fileID: 0} 190 | appleTVSplashScreen2x: {fileID: 0} 191 | tvOSSmallIconLayers: [] 192 | tvOSSmallIconLayers2x: [] 193 | tvOSLargeIconLayers: [] 194 | tvOSLargeIconLayers2x: [] 195 | tvOSTopShelfImageLayers: [] 196 | tvOSTopShelfImageLayers2x: [] 197 | tvOSTopShelfImageWideLayers: [] 198 | tvOSTopShelfImageWideLayers2x: [] 199 | iOSLaunchScreenType: 0 200 | iOSLaunchScreenPortrait: {fileID: 0} 201 | iOSLaunchScreenLandscape: {fileID: 0} 202 | iOSLaunchScreenBackgroundColor: 203 | serializedVersion: 2 204 | rgba: 0 205 | iOSLaunchScreenFillPct: 100 206 | iOSLaunchScreenSize: 100 207 | iOSLaunchScreenCustomXibPath: 208 | iOSLaunchScreeniPadType: 0 209 | iOSLaunchScreeniPadImage: {fileID: 0} 210 | iOSLaunchScreeniPadBackgroundColor: 211 | serializedVersion: 2 212 | rgba: 0 213 | iOSLaunchScreeniPadFillPct: 100 214 | iOSLaunchScreeniPadSize: 100 215 | iOSLaunchScreeniPadCustomXibPath: 216 | iOSLaunchScreenCustomStoryboardPath: 217 | iOSLaunchScreeniPadCustomStoryboardPath: 218 | iOSDeviceRequirements: [] 219 | iOSURLSchemes: [] 220 | iOSBackgroundModes: 0 221 | iOSMetalForceHardShadows: 0 222 | metalEditorSupport: 1 223 | metalAPIValidation: 1 224 | iOSRenderExtraFrameOnPause: 0 225 | iosCopyPluginsCodeInsteadOfSymlink: 0 226 | appleDeveloperTeamID: 227 | iOSManualSigningProvisioningProfileID: 228 | tvOSManualSigningProvisioningProfileID: 229 | iOSManualSigningProvisioningProfileType: 0 230 | tvOSManualSigningProvisioningProfileType: 0 231 | appleEnableAutomaticSigning: 0 232 | iOSRequireARKit: 0 233 | iOSAutomaticallyDetectAndAddCapabilities: 1 234 | appleEnableProMotion: 0 235 | shaderPrecisionModel: 0 236 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 237 | templatePackageId: com.unity.template.3d@8.0.0 238 | templateDefaultScene: Assets/Scenes/SampleScene.unity 239 | useCustomMainManifest: 0 240 | useCustomLauncherManifest: 0 241 | useCustomMainGradleTemplate: 0 242 | useCustomLauncherGradleManifest: 0 243 | useCustomBaseGradleTemplate: 0 244 | useCustomGradlePropertiesTemplate: 0 245 | useCustomProguardFile: 0 246 | AndroidTargetArchitectures: 1 247 | AndroidTargetDevices: 0 248 | AndroidSplashScreenScale: 0 249 | androidSplashScreen: {fileID: 0} 250 | AndroidKeystoreName: 251 | AndroidKeyaliasName: 252 | AndroidBuildApkPerCpuArchitecture: 0 253 | AndroidTVCompatibility: 0 254 | AndroidIsGame: 1 255 | AndroidEnableTango: 0 256 | androidEnableBanner: 1 257 | androidUseLowAccuracyLocation: 0 258 | androidUseCustomKeystore: 0 259 | m_AndroidBanners: 260 | - width: 320 261 | height: 180 262 | banner: {fileID: 0} 263 | androidGamepadSupportLevel: 0 264 | chromeosInputEmulation: 1 265 | AndroidMinifyWithR8: 0 266 | AndroidMinifyRelease: 0 267 | AndroidMinifyDebug: 0 268 | AndroidValidateAppBundleSize: 1 269 | AndroidAppBundleSizeToValidate: 150 270 | m_BuildTargetIcons: [] 271 | m_BuildTargetPlatformIcons: 272 | - m_BuildTarget: iPhone 273 | m_Icons: 274 | - m_Textures: [] 275 | m_Width: 180 276 | m_Height: 180 277 | m_Kind: 0 278 | m_SubKind: iPhone 279 | - m_Textures: [] 280 | m_Width: 120 281 | m_Height: 120 282 | m_Kind: 0 283 | m_SubKind: iPhone 284 | - m_Textures: [] 285 | m_Width: 167 286 | m_Height: 167 287 | m_Kind: 0 288 | m_SubKind: iPad 289 | - m_Textures: [] 290 | m_Width: 152 291 | m_Height: 152 292 | m_Kind: 0 293 | m_SubKind: iPad 294 | - m_Textures: [] 295 | m_Width: 76 296 | m_Height: 76 297 | m_Kind: 0 298 | m_SubKind: iPad 299 | - m_Textures: [] 300 | m_Width: 120 301 | m_Height: 120 302 | m_Kind: 3 303 | m_SubKind: iPhone 304 | - m_Textures: [] 305 | m_Width: 80 306 | m_Height: 80 307 | m_Kind: 3 308 | m_SubKind: iPhone 309 | - m_Textures: [] 310 | m_Width: 80 311 | m_Height: 80 312 | m_Kind: 3 313 | m_SubKind: iPad 314 | - m_Textures: [] 315 | m_Width: 40 316 | m_Height: 40 317 | m_Kind: 3 318 | m_SubKind: iPad 319 | - m_Textures: [] 320 | m_Width: 87 321 | m_Height: 87 322 | m_Kind: 1 323 | m_SubKind: iPhone 324 | - m_Textures: [] 325 | m_Width: 58 326 | m_Height: 58 327 | m_Kind: 1 328 | m_SubKind: iPhone 329 | - m_Textures: [] 330 | m_Width: 29 331 | m_Height: 29 332 | m_Kind: 1 333 | m_SubKind: iPhone 334 | - m_Textures: [] 335 | m_Width: 58 336 | m_Height: 58 337 | m_Kind: 1 338 | m_SubKind: iPad 339 | - m_Textures: [] 340 | m_Width: 29 341 | m_Height: 29 342 | m_Kind: 1 343 | m_SubKind: iPad 344 | - m_Textures: [] 345 | m_Width: 60 346 | m_Height: 60 347 | m_Kind: 2 348 | m_SubKind: iPhone 349 | - m_Textures: [] 350 | m_Width: 40 351 | m_Height: 40 352 | m_Kind: 2 353 | m_SubKind: iPhone 354 | - m_Textures: [] 355 | m_Width: 40 356 | m_Height: 40 357 | m_Kind: 2 358 | m_SubKind: iPad 359 | - m_Textures: [] 360 | m_Width: 20 361 | m_Height: 20 362 | m_Kind: 2 363 | m_SubKind: iPad 364 | - m_Textures: [] 365 | m_Width: 1024 366 | m_Height: 1024 367 | m_Kind: 4 368 | m_SubKind: App Store 369 | m_BuildTargetBatching: 370 | - m_BuildTarget: Standalone 371 | m_StaticBatching: 1 372 | m_DynamicBatching: 0 373 | - m_BuildTarget: tvOS 374 | m_StaticBatching: 1 375 | m_DynamicBatching: 0 376 | - m_BuildTarget: Android 377 | m_StaticBatching: 1 378 | m_DynamicBatching: 0 379 | - m_BuildTarget: iPhone 380 | m_StaticBatching: 1 381 | m_DynamicBatching: 0 382 | - m_BuildTarget: WebGL 383 | m_StaticBatching: 0 384 | m_DynamicBatching: 0 385 | m_BuildTargetGraphicsJobs: 386 | - m_BuildTarget: MacStandaloneSupport 387 | m_GraphicsJobs: 0 388 | - m_BuildTarget: Switch 389 | m_GraphicsJobs: 1 390 | - m_BuildTarget: MetroSupport 391 | m_GraphicsJobs: 1 392 | - m_BuildTarget: AppleTVSupport 393 | m_GraphicsJobs: 0 394 | - m_BuildTarget: BJMSupport 395 | m_GraphicsJobs: 1 396 | - m_BuildTarget: LinuxStandaloneSupport 397 | m_GraphicsJobs: 1 398 | - m_BuildTarget: PS4Player 399 | m_GraphicsJobs: 1 400 | - m_BuildTarget: iOSSupport 401 | m_GraphicsJobs: 0 402 | - m_BuildTarget: WindowsStandaloneSupport 403 | m_GraphicsJobs: 1 404 | - m_BuildTarget: XboxOnePlayer 405 | m_GraphicsJobs: 1 406 | - m_BuildTarget: LuminSupport 407 | m_GraphicsJobs: 0 408 | - m_BuildTarget: AndroidPlayer 409 | m_GraphicsJobs: 0 410 | - m_BuildTarget: WebGLSupport 411 | m_GraphicsJobs: 0 412 | m_BuildTargetGraphicsJobMode: 413 | - m_BuildTarget: PS4Player 414 | m_GraphicsJobMode: 0 415 | - m_BuildTarget: XboxOnePlayer 416 | m_GraphicsJobMode: 0 417 | m_BuildTargetGraphicsAPIs: 418 | - m_BuildTarget: AndroidPlayer 419 | m_APIs: 150000000b000000 420 | m_Automatic: 1 421 | - m_BuildTarget: iOSSupport 422 | m_APIs: 10000000 423 | m_Automatic: 1 424 | - m_BuildTarget: AppleTVSupport 425 | m_APIs: 10000000 426 | m_Automatic: 1 427 | - m_BuildTarget: WebGLSupport 428 | m_APIs: 0b000000 429 | m_Automatic: 1 430 | m_BuildTargetVRSettings: 431 | - m_BuildTarget: Standalone 432 | m_Enabled: 0 433 | m_Devices: 434 | - Oculus 435 | - OpenVR 436 | openGLRequireES31: 0 437 | openGLRequireES31AEP: 0 438 | openGLRequireES32: 0 439 | m_TemplateCustomTags: {} 440 | mobileMTRendering: 441 | Android: 1 442 | iPhone: 1 443 | tvOS: 1 444 | m_BuildTargetGroupLightmapEncodingQuality: 445 | - m_BuildTarget: Android 446 | m_EncodingQuality: 1 447 | - m_BuildTarget: iPhone 448 | m_EncodingQuality: 1 449 | - m_BuildTarget: tvOS 450 | m_EncodingQuality: 1 451 | m_BuildTargetGroupLightmapSettings: [] 452 | m_BuildTargetNormalMapEncoding: 453 | - m_BuildTarget: Android 454 | m_Encoding: 1 455 | - m_BuildTarget: iPhone 456 | m_Encoding: 1 457 | - m_BuildTarget: tvOS 458 | m_Encoding: 1 459 | playModeTestRunnerEnabled: 0 460 | runPlayModeTestAsEditModeTest: 0 461 | actionOnDotNetUnhandledException: 1 462 | enableInternalProfiler: 0 463 | logObjCUncaughtExceptions: 1 464 | enableCrashReportAPI: 0 465 | cameraUsageDescription: 466 | locationUsageDescription: 467 | microphoneUsageDescription: 468 | bluetoothUsageDescription: 469 | switchNMETAOverride: 470 | switchNetLibKey: 471 | switchSocketMemoryPoolSize: 6144 472 | switchSocketAllocatorPoolSize: 128 473 | switchSocketConcurrencyLimit: 14 474 | switchScreenResolutionBehavior: 2 475 | switchUseCPUProfiler: 0 476 | switchUseGOLDLinker: 0 477 | switchLTOSetting: 0 478 | switchApplicationID: 0x01004b9000490000 479 | switchNSODependencies: 480 | switchTitleNames_0: 481 | switchTitleNames_1: 482 | switchTitleNames_2: 483 | switchTitleNames_3: 484 | switchTitleNames_4: 485 | switchTitleNames_5: 486 | switchTitleNames_6: 487 | switchTitleNames_7: 488 | switchTitleNames_8: 489 | switchTitleNames_9: 490 | switchTitleNames_10: 491 | switchTitleNames_11: 492 | switchTitleNames_12: 493 | switchTitleNames_13: 494 | switchTitleNames_14: 495 | switchTitleNames_15: 496 | switchPublisherNames_0: 497 | switchPublisherNames_1: 498 | switchPublisherNames_2: 499 | switchPublisherNames_3: 500 | switchPublisherNames_4: 501 | switchPublisherNames_5: 502 | switchPublisherNames_6: 503 | switchPublisherNames_7: 504 | switchPublisherNames_8: 505 | switchPublisherNames_9: 506 | switchPublisherNames_10: 507 | switchPublisherNames_11: 508 | switchPublisherNames_12: 509 | switchPublisherNames_13: 510 | switchPublisherNames_14: 511 | switchPublisherNames_15: 512 | switchIcons_0: {fileID: 0} 513 | switchIcons_1: {fileID: 0} 514 | switchIcons_2: {fileID: 0} 515 | switchIcons_3: {fileID: 0} 516 | switchIcons_4: {fileID: 0} 517 | switchIcons_5: {fileID: 0} 518 | switchIcons_6: {fileID: 0} 519 | switchIcons_7: {fileID: 0} 520 | switchIcons_8: {fileID: 0} 521 | switchIcons_9: {fileID: 0} 522 | switchIcons_10: {fileID: 0} 523 | switchIcons_11: {fileID: 0} 524 | switchIcons_12: {fileID: 0} 525 | switchIcons_13: {fileID: 0} 526 | switchIcons_14: {fileID: 0} 527 | switchIcons_15: {fileID: 0} 528 | switchSmallIcons_0: {fileID: 0} 529 | switchSmallIcons_1: {fileID: 0} 530 | switchSmallIcons_2: {fileID: 0} 531 | switchSmallIcons_3: {fileID: 0} 532 | switchSmallIcons_4: {fileID: 0} 533 | switchSmallIcons_5: {fileID: 0} 534 | switchSmallIcons_6: {fileID: 0} 535 | switchSmallIcons_7: {fileID: 0} 536 | switchSmallIcons_8: {fileID: 0} 537 | switchSmallIcons_9: {fileID: 0} 538 | switchSmallIcons_10: {fileID: 0} 539 | switchSmallIcons_11: {fileID: 0} 540 | switchSmallIcons_12: {fileID: 0} 541 | switchSmallIcons_13: {fileID: 0} 542 | switchSmallIcons_14: {fileID: 0} 543 | switchSmallIcons_15: {fileID: 0} 544 | switchManualHTML: 545 | switchAccessibleURLs: 546 | switchLegalInformation: 547 | switchMainThreadStackSize: 1048576 548 | switchPresenceGroupId: 549 | switchLogoHandling: 0 550 | switchReleaseVersion: 0 551 | switchDisplayVersion: 1.0.0 552 | switchStartupUserAccount: 0 553 | switchTouchScreenUsage: 0 554 | switchSupportedLanguagesMask: 0 555 | switchLogoType: 0 556 | switchApplicationErrorCodeCategory: 557 | switchUserAccountSaveDataSize: 0 558 | switchUserAccountSaveDataJournalSize: 0 559 | switchApplicationAttribute: 0 560 | switchCardSpecSize: -1 561 | switchCardSpecClock: -1 562 | switchRatingsMask: 0 563 | switchRatingsInt_0: 0 564 | switchRatingsInt_1: 0 565 | switchRatingsInt_2: 0 566 | switchRatingsInt_3: 0 567 | switchRatingsInt_4: 0 568 | switchRatingsInt_5: 0 569 | switchRatingsInt_6: 0 570 | switchRatingsInt_7: 0 571 | switchRatingsInt_8: 0 572 | switchRatingsInt_9: 0 573 | switchRatingsInt_10: 0 574 | switchRatingsInt_11: 0 575 | switchRatingsInt_12: 0 576 | switchLocalCommunicationIds_0: 577 | switchLocalCommunicationIds_1: 578 | switchLocalCommunicationIds_2: 579 | switchLocalCommunicationIds_3: 580 | switchLocalCommunicationIds_4: 581 | switchLocalCommunicationIds_5: 582 | switchLocalCommunicationIds_6: 583 | switchLocalCommunicationIds_7: 584 | switchParentalControl: 0 585 | switchAllowsScreenshot: 1 586 | switchAllowsVideoCapturing: 1 587 | switchAllowsRuntimeAddOnContentInstall: 0 588 | switchDataLossConfirmation: 0 589 | switchUserAccountLockEnabled: 0 590 | switchSystemResourceMemory: 16777216 591 | switchSupportedNpadStyles: 22 592 | switchNativeFsCacheSize: 32 593 | switchIsHoldTypeHorizontal: 0 594 | switchSupportedNpadCount: 8 595 | switchSocketConfigEnabled: 0 596 | switchTcpInitialSendBufferSize: 32 597 | switchTcpInitialReceiveBufferSize: 64 598 | switchTcpAutoSendBufferSizeMax: 256 599 | switchTcpAutoReceiveBufferSizeMax: 256 600 | switchUdpSendBufferSize: 9 601 | switchUdpReceiveBufferSize: 42 602 | switchSocketBufferEfficiency: 4 603 | switchSocketInitializeEnabled: 1 604 | switchNetworkInterfaceManagerInitializeEnabled: 1 605 | switchPlayerConnectionEnabled: 1 606 | switchUseNewStyleFilepaths: 0 607 | switchUseMicroSleepForYield: 1 608 | switchMicroSleepForYieldTime: 25 609 | ps4NPAgeRating: 12 610 | ps4NPTitleSecret: 611 | ps4NPTrophyPackPath: 612 | ps4ParentalLevel: 11 613 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 614 | ps4Category: 0 615 | ps4MasterVersion: 01.00 616 | ps4AppVersion: 01.00 617 | ps4AppType: 0 618 | ps4ParamSfxPath: 619 | ps4VideoOutPixelFormat: 0 620 | ps4VideoOutInitialWidth: 1920 621 | ps4VideoOutBaseModeInitialWidth: 1920 622 | ps4VideoOutReprojectionRate: 60 623 | ps4PronunciationXMLPath: 624 | ps4PronunciationSIGPath: 625 | ps4BackgroundImagePath: 626 | ps4StartupImagePath: 627 | ps4StartupImagesFolder: 628 | ps4IconImagesFolder: 629 | ps4SaveDataImagePath: 630 | ps4SdkOverride: 631 | ps4BGMPath: 632 | ps4ShareFilePath: 633 | ps4ShareOverlayImagePath: 634 | ps4PrivacyGuardImagePath: 635 | ps4ExtraSceSysFile: 636 | ps4NPtitleDatPath: 637 | ps4RemotePlayKeyAssignment: -1 638 | ps4RemotePlayKeyMappingDir: 639 | ps4PlayTogetherPlayerCount: 0 640 | ps4EnterButtonAssignment: 1 641 | ps4ApplicationParam1: 0 642 | ps4ApplicationParam2: 0 643 | ps4ApplicationParam3: 0 644 | ps4ApplicationParam4: 0 645 | ps4DownloadDataSize: 0 646 | ps4GarlicHeapSize: 2048 647 | ps4ProGarlicHeapSize: 2560 648 | playerPrefsMaxSize: 32768 649 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 650 | ps4pnSessions: 1 651 | ps4pnPresence: 1 652 | ps4pnFriends: 1 653 | ps4pnGameCustomData: 1 654 | playerPrefsSupport: 0 655 | enableApplicationExit: 0 656 | resetTempFolder: 1 657 | restrictedAudioUsageRights: 0 658 | ps4UseResolutionFallback: 0 659 | ps4ReprojectionSupport: 0 660 | ps4UseAudio3dBackend: 0 661 | ps4UseLowGarlicFragmentationMode: 1 662 | ps4SocialScreenEnabled: 0 663 | ps4ScriptOptimizationLevel: 0 664 | ps4Audio3dVirtualSpeakerCount: 14 665 | ps4attribCpuUsage: 0 666 | ps4PatchPkgPath: 667 | ps4PatchLatestPkgPath: 668 | ps4PatchChangeinfoPath: 669 | ps4PatchDayOne: 0 670 | ps4attribUserManagement: 0 671 | ps4attribMoveSupport: 0 672 | ps4attrib3DSupport: 0 673 | ps4attribShareSupport: 0 674 | ps4attribExclusiveVR: 0 675 | ps4disableAutoHideSplash: 0 676 | ps4videoRecordingFeaturesUsed: 0 677 | ps4contentSearchFeaturesUsed: 0 678 | ps4CompatibilityPS5: 0 679 | ps4AllowPS5Detection: 0 680 | ps4GPU800MHz: 1 681 | ps4attribEyeToEyeDistanceSettingVR: 0 682 | ps4IncludedModules: [] 683 | ps4attribVROutputEnabled: 0 684 | monoEnv: 685 | splashScreenBackgroundSourceLandscape: {fileID: 0} 686 | splashScreenBackgroundSourcePortrait: {fileID: 0} 687 | blurSplashScreenBackground: 1 688 | spritePackerPolicy: 689 | webGLMemorySize: 16 690 | webGLExceptionSupport: 1 691 | webGLNameFilesAsHashes: 0 692 | webGLDataCaching: 1 693 | webGLDebugSymbols: 0 694 | webGLEmscriptenArgs: 695 | webGLModulesDirectory: 696 | webGLTemplate: APPLICATION:Default 697 | webGLAnalyzeBuildSize: 0 698 | webGLUseEmbeddedResources: 0 699 | webGLCompressionFormat: 1 700 | webGLWasmArithmeticExceptions: 0 701 | webGLLinkerTarget: 1 702 | webGLThreadsSupport: 0 703 | webGLDecompressionFallback: 0 704 | scriptingDefineSymbols: {} 705 | additionalCompilerArguments: {} 706 | platformArchitecture: {} 707 | scriptingBackend: {} 708 | il2cppCompilerConfiguration: {} 709 | managedStrippingLevel: {} 710 | incrementalIl2cppBuild: {} 711 | suppressCommonWarnings: 0 712 | allowUnsafeCode: 1 713 | useDeterministicCompilation: 1 714 | enableRoslynAnalyzers: 1 715 | additionalIl2CppArgs: 716 | scriptingRuntimeVersion: 1 717 | gcIncremental: 1 718 | assemblyVersionValidation: 1 719 | gcWBarrierValidation: 0 720 | apiCompatibilityLevelPerPlatform: {} 721 | m_RenderingPath: 1 722 | m_MobileRenderingPath: 1 723 | metroPackageName: Template_3D 724 | metroPackageVersion: 725 | metroCertificatePath: 726 | metroCertificatePassword: 727 | metroCertificateSubject: 728 | metroCertificateIssuer: 729 | metroCertificateNotAfter: 0000000000000000 730 | metroApplicationDescription: Template_3D 731 | wsaImages: {} 732 | metroTileShortName: 733 | metroTileShowName: 0 734 | metroMediumTileShowName: 0 735 | metroLargeTileShowName: 0 736 | metroWideTileShowName: 0 737 | metroSupportStreamingInstall: 0 738 | metroLastRequiredScene: 0 739 | metroDefaultTileSize: 1 740 | metroTileForegroundText: 2 741 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 742 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1} 743 | metroSplashScreenUseBackgroundColor: 0 744 | platformCapabilities: {} 745 | metroTargetDeviceFamilies: {} 746 | metroFTAName: 747 | metroFTAFileTypes: [] 748 | metroProtocolName: 749 | XboxOneProductId: 750 | XboxOneUpdateKey: 751 | XboxOneSandboxId: 752 | XboxOneContentId: 753 | XboxOneTitleId: 754 | XboxOneSCId: 755 | XboxOneGameOsOverridePath: 756 | XboxOnePackagingOverridePath: 757 | XboxOneAppManifestOverridePath: 758 | XboxOneVersion: 1.0.0.0 759 | XboxOnePackageEncryption: 0 760 | XboxOnePackageUpdateGranularity: 2 761 | XboxOneDescription: 762 | XboxOneLanguage: 763 | - enus 764 | XboxOneCapability: [] 765 | XboxOneGameRating: {} 766 | XboxOneIsContentPackage: 0 767 | XboxOneEnhancedXboxCompatibilityMode: 0 768 | XboxOneEnableGPUVariability: 1 769 | XboxOneSockets: {} 770 | XboxOneSplashScreen: {fileID: 0} 771 | XboxOneAllowedProductIds: [] 772 | XboxOnePersistentLocalStorageSize: 0 773 | XboxOneXTitleMemory: 8 774 | XboxOneOverrideIdentityName: 775 | XboxOneOverrideIdentityPublisher: 776 | vrEditorSettings: {} 777 | cloudServicesEnabled: 778 | UNet: 1 779 | luminIcon: 780 | m_Name: 781 | m_ModelFolderPath: 782 | m_PortalFolderPath: 783 | luminCert: 784 | m_CertPath: 785 | m_SignPackage: 1 786 | luminIsChannelApp: 0 787 | luminVersion: 788 | m_VersionCode: 1 789 | m_VersionName: 790 | apiCompatibilityLevel: 6 791 | activeInputHandler: 0 792 | cloudProjectId: 793 | framebufferDepthMemorylessMode: 0 794 | qualitySettingsNames: [] 795 | projectName: 796 | organizationId: 797 | cloudEnabled: 0 798 | legacyClampBlendShapeWeights: 0 799 | virtualTexturingSupportEnabled: 0 800 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2021.2.2f1 2 | m_EditorVersionWithRevision: 2021.2.2f1 (5e2b1e92c7f8) 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 0 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Medium 11 | pixelLightCount: 1 12 | shadows: 1 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 20 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | skinWeights: 2 22 | textureQuality: 0 23 | anisotropicTextures: 1 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 1 30 | lodBias: 0.7 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 64 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | customRenderPipeline: {fileID: 0} 44 | excludedTargetPlatforms: [] 45 | m_PerPlatformDefaultQuality: 46 | Android: 0 47 | Lumin: 0 48 | Nintendo 3DS: 0 49 | Nintendo Switch: 0 50 | PS4: 0 51 | PSP2: 0 52 | Server: 0 53 | Stadia: 0 54 | Standalone: 0 55 | WebGL: 0 56 | Windows Store Apps: 0 57 | XboxOne: 0 58 | iPhone: 0 59 | tvOS: 0 60 | -------------------------------------------------------------------------------- /ProjectSettings/SceneTemplateSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "templatePinStates": [], 3 | "dependencyTypeInfos": [ 4 | { 5 | "userAdded": false, 6 | "type": "UnityEngine.AnimationClip", 7 | "ignore": false, 8 | "defaultInstantiationMode": 0, 9 | "supportsModification": true 10 | }, 11 | { 12 | "userAdded": false, 13 | "type": "UnityEditor.Animations.AnimatorController", 14 | "ignore": false, 15 | "defaultInstantiationMode": 0, 16 | "supportsModification": true 17 | }, 18 | { 19 | "userAdded": false, 20 | "type": "UnityEngine.AnimatorOverrideController", 21 | "ignore": false, 22 | "defaultInstantiationMode": 0, 23 | "supportsModification": true 24 | }, 25 | { 26 | "userAdded": false, 27 | "type": "UnityEditor.Audio.AudioMixerController", 28 | "ignore": false, 29 | "defaultInstantiationMode": 0, 30 | "supportsModification": true 31 | }, 32 | { 33 | "userAdded": false, 34 | "type": "UnityEngine.ComputeShader", 35 | "ignore": true, 36 | "defaultInstantiationMode": 1, 37 | "supportsModification": true 38 | }, 39 | { 40 | "userAdded": false, 41 | "type": "UnityEngine.Cubemap", 42 | "ignore": false, 43 | "defaultInstantiationMode": 0, 44 | "supportsModification": true 45 | }, 46 | { 47 | "userAdded": false, 48 | "type": "UnityEngine.GameObject", 49 | "ignore": false, 50 | "defaultInstantiationMode": 0, 51 | "supportsModification": true 52 | }, 53 | { 54 | "userAdded": false, 55 | "type": "UnityEditor.LightingDataAsset", 56 | "ignore": false, 57 | "defaultInstantiationMode": 0, 58 | "supportsModification": false 59 | }, 60 | { 61 | "userAdded": false, 62 | "type": "UnityEngine.LightingSettings", 63 | "ignore": false, 64 | "defaultInstantiationMode": 0, 65 | "supportsModification": true 66 | }, 67 | { 68 | "userAdded": false, 69 | "type": "UnityEngine.Material", 70 | "ignore": false, 71 | "defaultInstantiationMode": 0, 72 | "supportsModification": true 73 | }, 74 | { 75 | "userAdded": false, 76 | "type": "UnityEditor.MonoScript", 77 | "ignore": true, 78 | "defaultInstantiationMode": 1, 79 | "supportsModification": true 80 | }, 81 | { 82 | "userAdded": false, 83 | "type": "UnityEngine.PhysicMaterial", 84 | "ignore": false, 85 | "defaultInstantiationMode": 0, 86 | "supportsModification": true 87 | }, 88 | { 89 | "userAdded": false, 90 | "type": "UnityEngine.PhysicsMaterial2D", 91 | "ignore": false, 92 | "defaultInstantiationMode": 0, 93 | "supportsModification": true 94 | }, 95 | { 96 | "userAdded": false, 97 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", 98 | "ignore": false, 99 | "defaultInstantiationMode": 0, 100 | "supportsModification": true 101 | }, 102 | { 103 | "userAdded": false, 104 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", 105 | "ignore": false, 106 | "defaultInstantiationMode": 0, 107 | "supportsModification": true 108 | }, 109 | { 110 | "userAdded": false, 111 | "type": "UnityEngine.Rendering.VolumeProfile", 112 | "ignore": false, 113 | "defaultInstantiationMode": 0, 114 | "supportsModification": true 115 | }, 116 | { 117 | "userAdded": false, 118 | "type": "UnityEditor.SceneAsset", 119 | "ignore": false, 120 | "defaultInstantiationMode": 0, 121 | "supportsModification": false 122 | }, 123 | { 124 | "userAdded": false, 125 | "type": "UnityEngine.Shader", 126 | "ignore": true, 127 | "defaultInstantiationMode": 1, 128 | "supportsModification": true 129 | }, 130 | { 131 | "userAdded": false, 132 | "type": "UnityEngine.ShaderVariantCollection", 133 | "ignore": true, 134 | "defaultInstantiationMode": 1, 135 | "supportsModification": true 136 | }, 137 | { 138 | "userAdded": false, 139 | "type": "UnityEngine.Texture", 140 | "ignore": false, 141 | "defaultInstantiationMode": 0, 142 | "supportsModification": true 143 | }, 144 | { 145 | "userAdded": false, 146 | "type": "UnityEngine.Texture2D", 147 | "ignore": false, 148 | "defaultInstantiationMode": 0, 149 | "supportsModification": true 150 | }, 151 | { 152 | "userAdded": false, 153 | "type": "UnityEngine.Timeline.TimelineAsset", 154 | "ignore": false, 155 | "defaultInstantiationMode": 0, 156 | "supportsModification": true 157 | } 158 | ], 159 | "defaultDependencyTypeInfo": { 160 | "userAdded": false, 161 | "type": "", 162 | "ignore": false, 163 | "defaultInstantiationMode": 1, 164 | "supportsModification": true 165 | }, 166 | "newSceneOverride": 0 167 | } -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 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 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_DashboardUrl: https://dashboard.unity3d.com 13 | m_TestInitMode: 0 14 | CrashReportingSettings: 15 | m_EventUrl: https://perf-events.cloud.unity3d.com 16 | m_Enabled: 0 17 | m_LogBufferSize: 10 18 | m_CaptureEditorExceptions: 1 19 | UnityPurchasingSettings: 20 | m_Enabled: 0 21 | m_TestMode: 0 22 | UnityAnalyticsSettings: 23 | m_Enabled: 0 24 | m_TestMode: 0 25 | m_InitializeOnStartup: 1 26 | UnityAdsSettings: 27 | m_Enabled: 0 28 | m_InitializeOnStartup: 1 29 | m_TestMode: 0 30 | m_IosGameId: 31 | m_AndroidGameId: 32 | m_GameIds: {} 33 | m_GameId: 34 | PerformanceReportingSettings: 35 | m_Enabled: 0 36 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /ProjectSettings/boot.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/Avfi/690a0b1bfb86b6b990b766947f15928bd374b445/ProjectSettings/boot.config -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Avfi 2 | ==== 3 | 4 | ![gif](https://user-images.githubusercontent.com/343936/142568294-4cef6937-654c-4cfd-9d9e-032a4c84674e.gif) 5 | ![gif](https://user-images.githubusercontent.com/343936/142568320-d6285d24-adeb-4997-8ae6-5038288f4ce8.gif) 6 | 7 | **Avfi** is a Unity plugin allowing an application to record video clips with 8 | a simple operation. 9 | 10 | Avfi uses AVFoundation as a video encoding backend, so it only runs on the 11 | Apple platforms (macOS/iOS). 12 | 13 | [AVFoundation]: https://developer.apple.com/av-foundation/ 14 | 15 | How To Install 16 | -------------- 17 | 18 | This package uses the [scoped registry] feature to resolve package 19 | dependencies. Add the following lines to the manifest file 20 | (`Packages/manifest.json`). 21 | 22 | [scoped registry]: https://docs.unity3d.com/Manual/upm-scoped.html 23 | 24 | To the `scopedRegistries` section: 25 | 26 | ``` 27 | { 28 | "name": "Keijiro", 29 | "url": "https://registry.npmjs.com", 30 | "scopes": [ "jp.keijiro" ] 31 | } 32 | ``` 33 | 34 | To the `dependencies` section: 35 | 36 | ``` 37 | "jp.keijiro.avfi": "1.0.3" 38 | ``` 39 | 40 | After the changes, the manifest file should look like: 41 | 42 | ``` 43 | { 44 | "scopedRegistries": [ 45 | { 46 | "name": "Keijiro", 47 | "url": "https://registry.npmjs.com", 48 | "scopes": [ "jp.keijiro" ] 49 | } 50 | ], 51 | "dependencies": { 52 | "jp.keijiro.avfi": "1.0.3", 53 | ... 54 | ``` 55 | --------------------------------------------------------------------------------