├── .gitignore ├── Assets ├── Quad.mat ├── Quad.mat.meta ├── Test.unity ├── Test.unity.meta ├── WebCamTester.cs └── WebCamTester.cs.meta ├── ProjectSettings ├── AudioManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset └── TimeManager.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | 5 | # Autogenerated VS/MD solution and project files 6 | *.csproj 7 | *.unityproj 8 | *.sln 9 | *.pidb 10 | *.userprefs 11 | 12 | .DS_Store 13 | *.swp 14 | -------------------------------------------------------------------------------- /Assets/Quad.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Quad 10 | m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_CustomRenderQueue: 2000 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | data: 19 | first: 20 | name: _MainTex 21 | second: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | data: 26 | first: 27 | name: _BumpMap 28 | second: 29 | m_Texture: {fileID: 0} 30 | m_Scale: {x: 1, y: 1} 31 | m_Offset: {x: 0, y: 0} 32 | data: 33 | first: 34 | name: _DetailNormalMap 35 | second: 36 | m_Texture: {fileID: 0} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | data: 40 | first: 41 | name: _ParallaxMap 42 | second: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | data: 47 | first: 48 | name: _OcclusionMap 49 | second: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | data: 54 | first: 55 | name: _EmissionMap 56 | second: 57 | m_Texture: {fileID: 0} 58 | m_Scale: {x: 1, y: 1} 59 | m_Offset: {x: 0, y: 0} 60 | data: 61 | first: 62 | name: _DetailMask 63 | second: 64 | m_Texture: {fileID: 0} 65 | m_Scale: {x: 1, y: 1} 66 | m_Offset: {x: 0, y: 0} 67 | data: 68 | first: 69 | name: _DetailAlbedoMap 70 | second: 71 | m_Texture: {fileID: 0} 72 | m_Scale: {x: 1, y: 1} 73 | m_Offset: {x: 0, y: 0} 74 | data: 75 | first: 76 | name: _MetallicGlossMap 77 | second: 78 | m_Texture: {fileID: 0} 79 | m_Scale: {x: 1, y: 1} 80 | m_Offset: {x: 0, y: 0} 81 | m_Floats: 82 | data: 83 | first: 84 | name: _SrcBlend 85 | second: 1 86 | data: 87 | first: 88 | name: _DstBlend 89 | second: 0 90 | data: 91 | first: 92 | name: _Cutoff 93 | second: .5 94 | data: 95 | first: 96 | name: _Parallax 97 | second: .0199999996 98 | data: 99 | first: 100 | name: _ZWrite 101 | second: 1 102 | data: 103 | first: 104 | name: _Glossiness 105 | second: .5 106 | data: 107 | first: 108 | name: _BumpScale 109 | second: 1 110 | data: 111 | first: 112 | name: _OcclusionStrength 113 | second: 1 114 | data: 115 | first: 116 | name: _DetailNormalMapScale 117 | second: 1 118 | data: 119 | first: 120 | name: _UVSec 121 | second: 0 122 | data: 123 | first: 124 | name: _Mode 125 | second: 0 126 | data: 127 | first: 128 | name: _Metallic 129 | second: 0 130 | m_Colors: 131 | data: 132 | first: 133 | name: _EmissionColor 134 | second: {r: 0, g: 0, b: 0, a: 1} 135 | data: 136 | first: 137 | name: _Color 138 | second: {r: 1, g: 1, b: 1, a: 1} 139 | -------------------------------------------------------------------------------- /Assets/Quad.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f720e646fc268466f962a23cb4654e2e 3 | timeCreated: 1440659452 4 | licenseType: Pro 5 | NativeFormatImporter: 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 | SceneSettings: 5 | m_ObjectHideFlags: 0 6 | m_PVSData: 7 | m_PVSObjectsArray: [] 8 | m_PVSPortalsArray: [] 9 | m_OcclusionBakeSettings: 10 | smallestOccluder: 5 11 | smallestHole: .25 12 | backfaceThreshold: 100 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 6 17 | m_Fog: 0 18 | m_FogColor: {r: .5, g: .5, b: .5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: .00999999978 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} 24 | m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} 25 | m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 3 28 | m_SkyboxMaterial: {fileID: 0} 29 | m_HaloStrength: .5 30 | m_FlareStrength: 1 31 | m_FlareFadeSpeed: 3 32 | m_HaloTexture: {fileID: 0} 33 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 34 | m_DefaultReflectionMode: 0 35 | m_DefaultReflectionResolution: 128 36 | m_ReflectionBounces: 1 37 | m_ReflectionIntensity: 1 38 | m_CustomReflection: {fileID: 0} 39 | m_Sun: {fileID: 0} 40 | --- !u!157 &3 41 | LightmapSettings: 42 | m_ObjectHideFlags: 0 43 | serializedVersion: 5 44 | m_GIWorkflowMode: 1 45 | m_LightmapsMode: 1 46 | m_GISettings: 47 | serializedVersion: 2 48 | m_BounceScale: 1 49 | m_IndirectOutputScale: 1 50 | m_AlbedoBoost: 1 51 | m_TemporalCoherenceThreshold: 1 52 | m_EnvironmentLightingMode: 0 53 | m_EnableBakedLightmaps: 0 54 | m_EnableRealtimeLightmaps: 0 55 | m_LightmapEditorSettings: 56 | serializedVersion: 3 57 | m_Resolution: 2 58 | m_BakeResolution: 40 59 | m_TextureWidth: 1024 60 | m_TextureHeight: 1024 61 | m_AOMaxDistance: 1 62 | m_Padding: 2 63 | m_CompAOExponent: 0 64 | m_LightmapParameters: {fileID: 0} 65 | m_TextureCompression: 1 66 | m_FinalGather: 0 67 | m_FinalGatherRayCount: 1024 68 | m_LightmapSnapshot: {fileID: 0} 69 | m_RuntimeCPUUsage: 25 70 | --- !u!196 &4 71 | NavMeshSettings: 72 | serializedVersion: 2 73 | m_ObjectHideFlags: 0 74 | m_BuildSettings: 75 | serializedVersion: 2 76 | agentRadius: .5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: .400000006 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | accuratePlacement: 0 83 | minRegionArea: 2 84 | cellSize: .166666672 85 | manualCellSize: 0 86 | m_NavMeshData: {fileID: 0} 87 | --- !u!127 &5 88 | LevelGameManager: 89 | m_ObjectHideFlags: 0 90 | --- !u!1 &1530426567 91 | GameObject: 92 | m_ObjectHideFlags: 0 93 | m_PrefabParentObject: {fileID: 0} 94 | m_PrefabInternal: {fileID: 0} 95 | serializedVersion: 4 96 | m_Component: 97 | - 4: {fileID: 1530426571} 98 | - 33: {fileID: 1530426570} 99 | - 23: {fileID: 1530426569} 100 | - 114: {fileID: 1530426568} 101 | m_Layer: 0 102 | m_Name: WebCam Quad 103 | m_TagString: Untagged 104 | m_Icon: {fileID: 0} 105 | m_NavMeshLayer: 0 106 | m_StaticEditorFlags: 0 107 | m_IsActive: 1 108 | --- !u!114 &1530426568 109 | MonoBehaviour: 110 | m_ObjectHideFlags: 0 111 | m_PrefabParentObject: {fileID: 0} 112 | m_PrefabInternal: {fileID: 0} 113 | m_GameObject: {fileID: 1530426567} 114 | m_Enabled: 1 115 | m_EditorHideFlags: 0 116 | m_Script: {fileID: 11500000, guid: 021ee882e543b42929e9401e95c0ada6, type: 3} 117 | m_Name: 118 | m_EditorClassIdentifier: 119 | --- !u!23 &1530426569 120 | MeshRenderer: 121 | m_ObjectHideFlags: 0 122 | m_PrefabParentObject: {fileID: 0} 123 | m_PrefabInternal: {fileID: 0} 124 | m_GameObject: {fileID: 1530426567} 125 | m_Enabled: 1 126 | m_CastShadows: 1 127 | m_ReceiveShadows: 1 128 | m_Materials: 129 | - {fileID: 2100000, guid: f720e646fc268466f962a23cb4654e2e, type: 2} 130 | m_SubsetIndices: 131 | m_StaticBatchRoot: {fileID: 0} 132 | m_UseLightProbes: 1 133 | m_ReflectionProbeUsage: 1 134 | m_ProbeAnchor: {fileID: 0} 135 | m_ScaleInLightmap: 1 136 | m_PreserveUVs: 1 137 | m_ImportantGI: 0 138 | m_AutoUVMaxDistance: .5 139 | m_AutoUVMaxAngle: 89 140 | m_LightmapParameters: {fileID: 0} 141 | m_SortingLayerID: 0 142 | m_SortingOrder: 0 143 | --- !u!33 &1530426570 144 | MeshFilter: 145 | m_ObjectHideFlags: 0 146 | m_PrefabParentObject: {fileID: 0} 147 | m_PrefabInternal: {fileID: 0} 148 | m_GameObject: {fileID: 1530426567} 149 | m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} 150 | --- !u!4 &1530426571 151 | Transform: 152 | m_ObjectHideFlags: 0 153 | m_PrefabParentObject: {fileID: 0} 154 | m_PrefabInternal: {fileID: 0} 155 | m_GameObject: {fileID: 1530426567} 156 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 157 | m_LocalPosition: {x: 0, y: 0, z: 0} 158 | m_LocalScale: {x: 1, y: 1, z: 1} 159 | m_Children: [] 160 | m_Father: {fileID: 0} 161 | m_RootOrder: 1 162 | --- !u!1 &2066051156 163 | GameObject: 164 | m_ObjectHideFlags: 0 165 | m_PrefabParentObject: {fileID: 0} 166 | m_PrefabInternal: {fileID: 0} 167 | serializedVersion: 4 168 | m_Component: 169 | - 4: {fileID: 2066051161} 170 | - 20: {fileID: 2066051160} 171 | - 92: {fileID: 2066051159} 172 | - 124: {fileID: 2066051158} 173 | - 81: {fileID: 2066051157} 174 | m_Layer: 0 175 | m_Name: Main Camera 176 | m_TagString: MainCamera 177 | m_Icon: {fileID: 0} 178 | m_NavMeshLayer: 0 179 | m_StaticEditorFlags: 0 180 | m_IsActive: 1 181 | --- !u!81 &2066051157 182 | AudioListener: 183 | m_ObjectHideFlags: 0 184 | m_PrefabParentObject: {fileID: 0} 185 | m_PrefabInternal: {fileID: 0} 186 | m_GameObject: {fileID: 2066051156} 187 | m_Enabled: 1 188 | --- !u!124 &2066051158 189 | Behaviour: 190 | m_ObjectHideFlags: 0 191 | m_PrefabParentObject: {fileID: 0} 192 | m_PrefabInternal: {fileID: 0} 193 | m_GameObject: {fileID: 2066051156} 194 | m_Enabled: 1 195 | --- !u!92 &2066051159 196 | Behaviour: 197 | m_ObjectHideFlags: 0 198 | m_PrefabParentObject: {fileID: 0} 199 | m_PrefabInternal: {fileID: 0} 200 | m_GameObject: {fileID: 2066051156} 201 | m_Enabled: 1 202 | --- !u!20 &2066051160 203 | Camera: 204 | m_ObjectHideFlags: 0 205 | m_PrefabParentObject: {fileID: 0} 206 | m_PrefabInternal: {fileID: 0} 207 | m_GameObject: {fileID: 2066051156} 208 | m_Enabled: 1 209 | serializedVersion: 2 210 | m_ClearFlags: 2 211 | m_BackGroundColor: {r: .190743953, g: .219506934, b: .264705896, a: .0196078438} 212 | m_NormalizedViewPortRect: 213 | serializedVersion: 2 214 | x: 0 215 | y: 0 216 | width: 1 217 | height: 1 218 | near clip plane: .300000012 219 | far clip plane: 1000 220 | field of view: 60 221 | orthographic: 1 222 | orthographic size: .5 223 | m_Depth: -1 224 | m_CullingMask: 225 | serializedVersion: 2 226 | m_Bits: 4294967295 227 | m_RenderingPath: -1 228 | m_TargetTexture: {fileID: 0} 229 | m_TargetDisplay: 0 230 | m_TargetEye: 3 231 | m_HDR: 0 232 | m_OcclusionCulling: 1 233 | m_StereoConvergence: 10 234 | m_StereoSeparation: .0219999999 235 | m_StereoMirrorMode: 0 236 | --- !u!4 &2066051161 237 | Transform: 238 | m_ObjectHideFlags: 0 239 | m_PrefabParentObject: {fileID: 0} 240 | m_PrefabInternal: {fileID: 0} 241 | m_GameObject: {fileID: 2066051156} 242 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 243 | m_LocalPosition: {x: 0, y: 0, z: -10} 244 | m_LocalScale: {x: 1, y: 1, z: 1} 245 | m_Children: [] 246 | m_Father: {fileID: 0} 247 | m_RootOrder: 0 248 | -------------------------------------------------------------------------------- /Assets/Test.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af50d967db157435eb1fbdcf22182b34 3 | timeCreated: 1440659472 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/WebCamTester.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class WebCamTester : MonoBehaviour 4 | { 5 | WebCamTexture webCam; 6 | Material material; 7 | 8 | void Start() 9 | { 10 | webCam = new WebCamTexture(4096, 4096); 11 | 12 | material = GetComponent().material; 13 | material.mainTexture = webCam; 14 | 15 | webCam.Play(); 16 | } 17 | 18 | void Update() 19 | { 20 | transform.rotation = Quaternion.AngleAxis(webCam.videoRotationAngle, -Vector3.forward); 21 | 22 | var screenAspect = (float)Screen.width / Screen.height; 23 | var webCamAspect = (float)webCam.width / webCam.height; 24 | 25 | var rot90 = (webCam.videoRotationAngle / 90) % 2 != 0; 26 | if (rot90) webCamAspect = 1.0f / webCamAspect; 27 | 28 | float sx, sy; 29 | if (webCamAspect < screenAspect) 30 | { 31 | sx = webCamAspect; 32 | sy = 1.0f; 33 | } 34 | else 35 | { 36 | sx = screenAspect; 37 | sy = screenAspect / webCamAspect; 38 | } 39 | 40 | if (rot90) 41 | transform.localScale = new Vector3(sy, sx, 1); 42 | else 43 | transform.localScale = new Vector3(sx, sy, 1); 44 | 45 | var mirror = webCam.videoVerticallyMirrored; 46 | material.mainTextureOffset = new Vector2(0, mirror ? 1 : 0); 47 | material.mainTextureScale = new Vector2(1, mirror ? -1 : 1); 48 | } 49 | 50 | void OnGUI() 51 | { 52 | var text = "web cam size = " + webCam.width + " x " + webCam.height; 53 | text += "\nrotation = " + webCam.videoRotationAngle; 54 | text += "\nscreen size = " + Screen.width + " x " + Screen.height; 55 | GUI.Label(new Rect(0, 0, Screen.width, Screen.height), text); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Assets/WebCamTester.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 021ee882e543b42929e9401e95c0ada6 3 | timeCreated: 1440658819 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /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 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_DisableAudio: 0 15 | -------------------------------------------------------------------------------- /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 | m_Gravity: {x: 0, y: -9.81000042, z: 0} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_BounceThreshold: 2 9 | m_SleepThreshold: .00499999989 10 | m_DefaultContactOffset: .00999999978 11 | m_SolverIterationCount: 6 12 | m_RaycastsHitTriggers: 1 13 | m_EnableAdaptiveForce: 0 14 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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: 3 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_WebSecurityEmulationEnabled: 0 10 | m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d 11 | m_DefaultBehaviorMode: 0 12 | m_SpritePackerMode: 2 13 | m_SpritePackerPaddingPower: 1 14 | -------------------------------------------------------------------------------- /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: 3 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_LegacyDeferred: 11 | m_Mode: 1 12 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 13 | m_AlwaysIncludedShaders: 14 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 15 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 16 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 17 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 18 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 19 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 20 | m_PreloadedShaders: [] 21 | m_LightmapStripping: 0 22 | m_LightmapKeepPlain: 1 23 | m_LightmapKeepDirCombined: 1 24 | m_LightmapKeepDirSeparate: 1 25 | m_LightmapKeepDynamic: 1 26 | m_FogStripping: 0 27 | m_FogKeepLinear: 1 28 | m_FogKeepExp: 1 29 | m_FogKeepExp2: 1 30 | -------------------------------------------------------------------------------- /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: .00100000005 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: .00100000005 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: .00100000005 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: .00100000005 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: .00100000005 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: .00100000005 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: .100000001 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: .100000001 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: .100000001 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: .189999998 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: .189999998 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: .00100000005 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: .00100000005 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: .00100000005 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: .00100000005 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: .00100000005 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: .00100000005 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: .00100000005 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshAreas: 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 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /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 | m_Gravity: {x: 0, y: -9.81000042} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_VelocityIterations: 8 9 | m_PositionIterations: 3 10 | m_VelocityThreshold: 1 11 | m_MaxLinearCorrection: .200000003 12 | m_MaxAngularCorrection: 8 13 | m_MaxTranslationSpeed: 100 14 | m_MaxRotationSpeed: 360 15 | m_MinPenetrationForPenalty: .00999999978 16 | m_BaumgarteScale: .200000003 17 | m_BaumgarteTimeOfImpactScale: .75 18 | m_TimeToSleep: .5 19 | m_LinearSleepTolerance: .00999999978 20 | m_AngularSleepTolerance: 2 21 | m_RaycastsHitTriggers: 1 22 | m_RaycastsStartInColliders: 1 23 | m_ChangeStopsCallbacks: 0 24 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 25 | -------------------------------------------------------------------------------- /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: 7 7 | AndroidProfiler: 0 8 | defaultScreenOrientation: 4 9 | targetDevice: 2 10 | targetResolution: 0 11 | accelerometerFrequency: 60 12 | companyName: DefaultCompany 13 | productName: WebCamRotation 14 | defaultCursor: {fileID: 0} 15 | cursorHotspot: {x: 0, y: 0} 16 | m_ShowUnitySplashScreen: 1 17 | defaultScreenWidth: 1024 18 | defaultScreenHeight: 768 19 | defaultScreenWidthWeb: 960 20 | defaultScreenHeightWeb: 600 21 | m_RenderingPath: 1 22 | m_MobileRenderingPath: 1 23 | m_ActiveColorSpace: 0 24 | m_MTRendering: 1 25 | m_MobileMTRendering: 0 26 | m_Stereoscopic3D: 0 27 | iosShowActivityIndicatorOnLoading: -1 28 | androidShowActivityIndicatorOnLoading: -1 29 | iosAppInBackgroundBehavior: 0 30 | displayResolutionDialog: 1 31 | allowedAutorotateToPortrait: 1 32 | allowedAutorotateToPortraitUpsideDown: 1 33 | allowedAutorotateToLandscapeRight: 1 34 | allowedAutorotateToLandscapeLeft: 1 35 | useOSAutorotation: 1 36 | use32BitDisplayBuffer: 1 37 | disableDepthAndStencilBuffers: 0 38 | defaultIsFullScreen: 1 39 | defaultIsNativeResolution: 1 40 | runInBackground: 0 41 | captureSingleScreen: 0 42 | Override IPod Music: 0 43 | Prepare IOS For Recording: 0 44 | submitAnalytics: 1 45 | usePlayerLog: 1 46 | bakeCollisionMeshes: 0 47 | forceSingleInstance: 0 48 | resizableWindow: 0 49 | useMacAppStoreValidation: 0 50 | gpuSkinning: 0 51 | xboxPIXTextureCapture: 0 52 | xboxEnableAvatar: 0 53 | xboxEnableKinect: 0 54 | xboxEnableKinectAutoTracking: 0 55 | xboxEnableFitness: 0 56 | visibleInBackground: 0 57 | macFullscreenMode: 2 58 | d3d9FullscreenMode: 1 59 | d3d11FullscreenMode: 1 60 | xboxSpeechDB: 0 61 | xboxEnableHeadOrientation: 0 62 | xboxEnableGuest: 0 63 | xboxOneResolution: 0 64 | ps3SplashScreen: {fileID: 0} 65 | videoMemoryForVertexBuffers: 0 66 | psp2PowerMode: 0 67 | psp2AcquireBGM: 1 68 | m_SupportedAspectRatios: 69 | 4:3: 1 70 | 5:4: 1 71 | 16:10: 1 72 | 16:9: 1 73 | Others: 1 74 | bundleIdentifier: jp.unity3d.webcamrotation 75 | bundleVersion: 1.0 76 | preloadedAssets: [] 77 | metroEnableIndependentInputSource: 0 78 | metroEnableLowLatencyPresentationAPI: 0 79 | xboxOneDisableKinectGpuReservation: 0 80 | virtualRealitySupported: 0 81 | productGUID: f42a70f04ca584625abcdbe5db41d0dc 82 | AndroidBundleVersionCode: 1 83 | AndroidMinSdkVersion: 9 84 | AndroidPreferredInstallLocation: 1 85 | aotOptions: 86 | apiCompatibilityLevel: 2 87 | iPhoneStrippingLevel: 0 88 | iPhoneScriptCallOptimization: 0 89 | ForceInternetPermission: 0 90 | ForceSDCardPermission: 0 91 | CreateWallpaper: 0 92 | APKExpansionFiles: 0 93 | preloadShaders: 0 94 | StripUnusedMeshComponents: 0 95 | VertexChannelCompressionMask: 96 | serializedVersion: 2 97 | m_Bits: 238 98 | iPhoneSdkVersion: 988 99 | iPhoneTargetOSVersion: 22 100 | uIPrerenderedIcon: 0 101 | uIRequiresPersistentWiFi: 0 102 | uIStatusBarHidden: 1 103 | uIExitOnSuspend: 0 104 | uIStatusBarStyle: 0 105 | iPhoneSplashScreen: {fileID: 0} 106 | iPhoneHighResSplashScreen: {fileID: 0} 107 | iPhoneTallHighResSplashScreen: {fileID: 0} 108 | iPhone47inSplashScreen: {fileID: 0} 109 | iPhone55inPortraitSplashScreen: {fileID: 0} 110 | iPhone55inLandscapeSplashScreen: {fileID: 0} 111 | iPadPortraitSplashScreen: {fileID: 0} 112 | iPadHighResPortraitSplashScreen: {fileID: 0} 113 | iPadLandscapeSplashScreen: {fileID: 0} 114 | iPadHighResLandscapeSplashScreen: {fileID: 0} 115 | iOSLaunchScreenType: 0 116 | iOSLaunchScreenPortrait: {fileID: 0} 117 | iOSLaunchScreenLandscape: {fileID: 0} 118 | iOSLaunchScreenBackgroundColor: 119 | serializedVersion: 2 120 | rgba: 0 121 | iOSLaunchScreenFillPct: 100 122 | iOSLaunchScreenSize: 100 123 | iOSLaunchScreenCustomXibPath: 124 | AndroidTargetDevice: 0 125 | AndroidSplashScreenScale: 0 126 | androidSplashScreen: {fileID: 0} 127 | AndroidKeystoreName: 128 | AndroidKeyaliasName: 129 | AndroidTVCompatibility: 1 130 | AndroidIsGame: 1 131 | androidEnableBanner: 1 132 | m_AndroidBanners: 133 | - width: 320 134 | height: 180 135 | banner: {fileID: 0} 136 | androidGamepadSupportLevel: 0 137 | resolutionDialogBanner: {fileID: 0} 138 | m_BuildTargetIcons: 139 | - m_BuildTarget: 140 | m_Icons: 141 | - m_Icon: {fileID: 0} 142 | m_Size: 128 143 | m_BuildTargetBatching: [] 144 | m_BuildTargetGraphicsAPIs: [] 145 | webPlayerTemplate: APPLICATION:Default 146 | m_TemplateCustomTags: {} 147 | actionOnDotNetUnhandledException: 1 148 | enableInternalProfiler: 0 149 | logObjCUncaughtExceptions: 1 150 | enableCrashReportAPI: 0 151 | locationUsageDescription: 152 | XboxTitleId: 153 | XboxImageXexPath: 154 | XboxSpaPath: 155 | XboxGenerateSpa: 0 156 | XboxDeployKinectResources: 0 157 | XboxSplashScreen: {fileID: 0} 158 | xboxEnableSpeech: 0 159 | xboxAdditionalTitleMemorySize: 0 160 | xboxDeployKinectHeadOrientation: 0 161 | xboxDeployKinectHeadPosition: 0 162 | ps3TitleConfigPath: 163 | ps3DLCConfigPath: 164 | ps3ThumbnailPath: 165 | ps3BackgroundPath: 166 | ps3SoundPath: 167 | ps3NPAgeRating: 12 168 | ps3TrophyCommId: 169 | ps3NpCommunicationPassphrase: 170 | ps3TrophyPackagePath: 171 | ps3BootCheckMaxSaveGameSizeKB: 128 172 | ps3TrophyCommSig: 173 | ps3SaveGameSlots: 1 174 | ps3TrialMode: 0 175 | ps3VideoMemoryForAudio: 0 176 | ps3EnableVerboseMemoryStats: 0 177 | ps3UseSPUForUmbra: 0 178 | ps3EnableMoveSupport: 1 179 | ps3DisableDolbyEncoding: 0 180 | ps4NPAgeRating: 12 181 | ps4NPTitleSecret: 182 | ps4NPTrophyPackPath: 183 | ps4ParentalLevel: 1 184 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 185 | ps4Category: 0 186 | ps4MasterVersion: 01.00 187 | ps4AppVersion: 01.00 188 | ps4AppType: 0 189 | ps4ParamSfxPath: 190 | ps4VideoOutPixelFormat: 0 191 | ps4VideoOutResolution: 4 192 | ps4PronunciationXMLPath: 193 | ps4PronunciationSIGPath: 194 | ps4BackgroundImagePath: 195 | ps4StartupImagePath: 196 | ps4SaveDataImagePath: 197 | ps4BGMPath: 198 | ps4ShareFilePath: 199 | ps4ShareOverlayImagePath: 200 | ps4PrivacyGuardImagePath: 201 | ps4NPtitleDatPath: 202 | ps4RemotePlayKeyAssignment: -1 203 | ps4EnterButtonAssignment: 1 204 | ps4ApplicationParam1: 0 205 | ps4ApplicationParam2: 0 206 | ps4ApplicationParam3: 0 207 | ps4ApplicationParam4: 0 208 | ps4GarlicHeapSize: 2048 209 | ps4Passcode: BlQ9wQj99nsQzldVI5ZuGXbEWRK5RhRX 210 | ps4pnSessions: 1 211 | ps4pnPresence: 1 212 | ps4pnFriends: 1 213 | ps4pnGameCustomData: 1 214 | playerPrefsSupport: 0 215 | monoEnv: 216 | psp2Splashimage: {fileID: 0} 217 | psp2NPTrophyPackPath: 218 | psp2NPSupportGBMorGJP: 0 219 | psp2NPAgeRating: 12 220 | psp2NPTitleDatPath: 221 | psp2NPCommsID: 222 | psp2NPCommunicationsID: 223 | psp2NPCommsPassphrase: 224 | psp2NPCommsSig: 225 | psp2ParamSfxPath: 226 | psp2ManualPath: 227 | psp2LiveAreaGatePath: 228 | psp2LiveAreaBackroundPath: 229 | psp2LiveAreaPath: 230 | psp2LiveAreaTrialPath: 231 | psp2PatchChangeInfoPath: 232 | psp2PatchOriginalPackage: 233 | psp2PackagePassword: dCdG5nG5azdNMK66MuCV6GXi5xr84P2R 234 | psp2KeystoneFile: 235 | psp2MemoryExpansionMode: 0 236 | psp2DRMType: 0 237 | psp2StorageType: 0 238 | psp2MediaCapacity: 0 239 | psp2DLCConfigPath: 240 | psp2ThumbnailPath: 241 | psp2BackgroundPath: 242 | psp2SoundPath: 243 | psp2TrophyCommId: 244 | psp2TrophyPackagePath: 245 | psp2PackagedResourcesPath: 246 | psp2SaveDataQuota: 10240 247 | psp2ParentalLevel: 1 248 | psp2ShortTitle: Not Set 249 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 250 | psp2Category: 0 251 | psp2MasterVersion: 01.00 252 | psp2AppVersion: 01.00 253 | psp2TVBootMode: 0 254 | psp2EnterButtonAssignment: 2 255 | psp2TVDisableEmu: 0 256 | psp2AllowTwitterDialog: 1 257 | psp2Upgradable: 0 258 | psp2HealthWarning: 0 259 | psp2UseLibLocation: 0 260 | psp2InfoBarOnStartup: 0 261 | psp2InfoBarColor: 0 262 | psmSplashimage: {fileID: 0} 263 | spritePackerPolicy: 264 | scriptingDefineSymbols: {} 265 | metroPackageName: WebCamRotation 266 | metroPackageLogo: 267 | metroPackageLogo140: 268 | metroPackageLogo180: 269 | metroPackageLogo240: 270 | metroPackageVersion: 271 | metroCertificatePath: 272 | metroCertificatePassword: 273 | metroCertificateSubject: 274 | metroCertificateIssuer: 275 | metroCertificateNotAfter: 0000000000000000 276 | metroApplicationDescription: WebCamRotation 277 | metroStoreTileLogo80: 278 | metroStoreTileLogo: 279 | metroStoreTileLogo140: 280 | metroStoreTileLogo180: 281 | metroStoreTileWideLogo80: 282 | metroStoreTileWideLogo: 283 | metroStoreTileWideLogo140: 284 | metroStoreTileWideLogo180: 285 | metroStoreTileSmallLogo80: 286 | metroStoreTileSmallLogo: 287 | metroStoreTileSmallLogo140: 288 | metroStoreTileSmallLogo180: 289 | metroStoreSmallTile80: 290 | metroStoreSmallTile: 291 | metroStoreSmallTile140: 292 | metroStoreSmallTile180: 293 | metroStoreLargeTile80: 294 | metroStoreLargeTile: 295 | metroStoreLargeTile140: 296 | metroStoreLargeTile180: 297 | metroStoreSplashScreenImage: 298 | metroStoreSplashScreenImage140: 299 | metroStoreSplashScreenImage180: 300 | metroPhoneAppIcon: 301 | metroPhoneAppIcon140: 302 | metroPhoneAppIcon240: 303 | metroPhoneSmallTile: 304 | metroPhoneSmallTile140: 305 | metroPhoneSmallTile240: 306 | metroPhoneMediumTile: 307 | metroPhoneMediumTile140: 308 | metroPhoneMediumTile240: 309 | metroPhoneWideTile: 310 | metroPhoneWideTile140: 311 | metroPhoneWideTile240: 312 | metroPhoneSplashScreenImage: 313 | metroPhoneSplashScreenImage140: 314 | metroPhoneSplashScreenImage240: 315 | metroTileShortName: 316 | metroCommandLineArgsFile: 317 | metroTileShowName: 0 318 | metroMediumTileShowName: 0 319 | metroLargeTileShowName: 0 320 | metroWideTileShowName: 0 321 | metroDefaultTileSize: 1 322 | metroTileForegroundText: 1 323 | metroTileBackgroundColor: {r: 0, g: 0, b: 0, a: 1} 324 | metroSplashScreenBackgroundColor: {r: 0, g: 0, b: 0, a: 1} 325 | metroSplashScreenUseBackgroundColor: 0 326 | platformCapabilities: {} 327 | metroFTAName: 328 | metroFTAFileTypes: [] 329 | metroProtocolName: 330 | metroCompilationOverrides: 1 331 | blackberryDeviceAddress: 332 | blackberryDevicePassword: 333 | blackberryTokenPath: 334 | blackberryTokenExires: 335 | blackberryTokenAuthor: 336 | blackberryTokenAuthorId: 337 | blackberryCskPassword: 338 | blackberrySaveLogPath: 339 | blackberrySharedPermissions: 0 340 | blackberryCameraPermissions: 0 341 | blackberryGPSPermissions: 0 342 | blackberryDeviceIDPermissions: 0 343 | blackberryMicrophonePermissions: 0 344 | blackberryGamepadSupport: 0 345 | blackberryBuildId: 0 346 | blackberryLandscapeSplashScreen: {fileID: 0} 347 | blackberryPortraitSplashScreen: {fileID: 0} 348 | blackberrySquareSplashScreen: {fileID: 0} 349 | tizenProductDescription: 350 | tizenProductURL: 351 | tizenSigningProfileName: 352 | tizenGPSPermissions: 0 353 | tizenMicrophonePermissions: 0 354 | stvDeviceAddress: 355 | stvProductDescription: 356 | stvProductAuthor: 357 | stvProductAuthorEmail: 358 | stvProductLink: 359 | stvProductCategory: 0 360 | XboxOneProductId: 361 | XboxOneUpdateKey: 362 | XboxOneSandboxId: 363 | XboxOneContentId: 364 | XboxOneTitleId: 365 | XboxOneSCId: 366 | XboxOneGameOsOverridePath: 367 | XboxOnePackagingOverridePath: 368 | XboxOneAppManifestOverridePath: 369 | XboxOnePackageEncryption: 0 370 | XboxOnePackageUpdateGranularity: 2 371 | XboxOneDescription: 372 | XboxOneIsContentPackage: 0 373 | XboxOneEnableGPUVariability: 0 374 | XboxOneSockets: {} 375 | XboxOneSplashScreen: {fileID: 0} 376 | XboxOneAllowedProductIds: [] 377 | XboxOnePersistentLocalStorageSize: 0 378 | intPropertyNames: 379 | - Standalone::ScriptingBackend 380 | - WebGL::ScriptingBackend 381 | - WebGL::audioCompressionFormat 382 | - WebGL::exceptionSupport 383 | - WebGL::memorySize 384 | - WebPlayer::ScriptingBackend 385 | - iOS::Architecture 386 | - iOS::EnableIncrementalBuildSupportForIl2cpp 387 | - iOS::ScriptingBackend 388 | Standalone::ScriptingBackend: 0 389 | WebGL::ScriptingBackend: 1 390 | WebGL::audioCompressionFormat: 4 391 | WebGL::exceptionSupport: 1 392 | WebGL::memorySize: 256 393 | WebPlayer::ScriptingBackend: 0 394 | iOS::Architecture: 0 395 | iOS::EnableIncrementalBuildSupportForIl2cpp: 0 396 | iOS::ScriptingBackend: 0 397 | boolPropertyNames: 398 | - WebGL::analyzeBuildSize 399 | - WebGL::dataCaching 400 | - WebGL::useEmbeddedResources 401 | - XboxOne::enus 402 | WebGL::analyzeBuildSize: 0 403 | WebGL::dataCaching: 0 404 | WebGL::useEmbeddedResources: 0 405 | XboxOne::enus: 1 406 | stringPropertyNames: 407 | - WebGL::emscriptenArgs 408 | - WebGL::template 409 | - additionalIl2CppArgs::additionalIl2CppArgs 410 | WebGL::emscriptenArgs: 411 | WebGL::template: APPLICATION:Default 412 | additionalIl2CppArgs::additionalIl2CppArgs: 413 | firstStreamedSceneWithResources: 0 414 | cloudProjectId: 415 | projectId: 416 | projectName: 417 | organizationId: 418 | cloudEnabled: 0 419 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.1.3f1 2 | m_StandardAssetsVersion: 0 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: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Fastest 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowCascade2Split: .333333343 18 | shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} 19 | blendWeights: 1 20 | textureQuality: 1 21 | anisotropicTextures: 0 22 | antiAliasing: 0 23 | softParticles: 0 24 | softVegetation: 0 25 | realtimeReflectionProbes: 0 26 | billboardsFaceCameraPosition: 0 27 | vSyncCount: 0 28 | lodBias: .300000012 29 | maximumLODLevel: 0 30 | particleRaycastBudget: 4 31 | excludedTargetPlatforms: [] 32 | - serializedVersion: 2 33 | name: Fast 34 | pixelLightCount: 0 35 | shadows: 0 36 | shadowResolution: 0 37 | shadowProjection: 1 38 | shadowCascades: 1 39 | shadowDistance: 20 40 | shadowCascade2Split: .333333343 41 | shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} 42 | blendWeights: 2 43 | textureQuality: 0 44 | anisotropicTextures: 0 45 | antiAliasing: 0 46 | softParticles: 0 47 | softVegetation: 0 48 | realtimeReflectionProbes: 0 49 | billboardsFaceCameraPosition: 0 50 | vSyncCount: 0 51 | lodBias: .400000006 52 | maximumLODLevel: 0 53 | particleRaycastBudget: 16 54 | excludedTargetPlatforms: [] 55 | - serializedVersion: 2 56 | name: Simple 57 | pixelLightCount: 1 58 | shadows: 1 59 | shadowResolution: 0 60 | shadowProjection: 1 61 | shadowCascades: 1 62 | shadowDistance: 20 63 | shadowCascade2Split: .333333343 64 | shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} 65 | blendWeights: 2 66 | textureQuality: 0 67 | anisotropicTextures: 1 68 | antiAliasing: 0 69 | softParticles: 0 70 | softVegetation: 0 71 | realtimeReflectionProbes: 0 72 | billboardsFaceCameraPosition: 0 73 | vSyncCount: 0 74 | lodBias: .699999988 75 | maximumLODLevel: 0 76 | particleRaycastBudget: 64 77 | excludedTargetPlatforms: [] 78 | - serializedVersion: 2 79 | name: Good 80 | pixelLightCount: 2 81 | shadows: 2 82 | shadowResolution: 1 83 | shadowProjection: 1 84 | shadowCascades: 2 85 | shadowDistance: 40 86 | shadowCascade2Split: .333333343 87 | shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} 88 | blendWeights: 2 89 | textureQuality: 0 90 | anisotropicTextures: 1 91 | antiAliasing: 0 92 | softParticles: 0 93 | softVegetation: 1 94 | realtimeReflectionProbes: 1 95 | billboardsFaceCameraPosition: 1 96 | vSyncCount: 1 97 | lodBias: 1 98 | maximumLODLevel: 0 99 | particleRaycastBudget: 256 100 | excludedTargetPlatforms: [] 101 | - serializedVersion: 2 102 | name: Beautiful 103 | pixelLightCount: 3 104 | shadows: 2 105 | shadowResolution: 2 106 | shadowProjection: 1 107 | shadowCascades: 2 108 | shadowDistance: 70 109 | shadowCascade2Split: .333333343 110 | shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} 111 | blendWeights: 4 112 | textureQuality: 0 113 | anisotropicTextures: 2 114 | antiAliasing: 2 115 | softParticles: 1 116 | softVegetation: 1 117 | realtimeReflectionProbes: 1 118 | billboardsFaceCameraPosition: 1 119 | vSyncCount: 1 120 | lodBias: 1.5 121 | maximumLODLevel: 0 122 | particleRaycastBudget: 1024 123 | excludedTargetPlatforms: [] 124 | - serializedVersion: 2 125 | name: Fantastic 126 | pixelLightCount: 4 127 | shadows: 2 128 | shadowResolution: 2 129 | shadowProjection: 1 130 | shadowCascades: 4 131 | shadowDistance: 150 132 | shadowCascade2Split: .333333343 133 | shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} 134 | blendWeights: 4 135 | textureQuality: 0 136 | anisotropicTextures: 2 137 | antiAliasing: 2 138 | softParticles: 1 139 | softVegetation: 1 140 | realtimeReflectionProbes: 1 141 | billboardsFaceCameraPosition: 1 142 | vSyncCount: 1 143 | lodBias: 2 144 | maximumLODLevel: 0 145 | particleRaycastBudget: 4096 146 | excludedTargetPlatforms: [] 147 | m_PerPlatformDefaultQuality: 148 | Android: 2 149 | BlackBerry: 2 150 | GLES Emulation: 5 151 | PS3: 5 152 | PS4: 5 153 | PSM: 5 154 | PSP2: 5 155 | Samsung TV: 2 156 | Standalone: 5 157 | Tizen: 2 158 | WP8: 5 159 | Web: 5 160 | WebGL: 3 161 | Windows Store Apps: 5 162 | XBOX360: 5 163 | XboxOne: 5 164 | iPhone: 2 165 | -------------------------------------------------------------------------------- /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: .0199999996 7 | Maximum Allowed Timestep: .333333343 8 | m_TimeScale: 1 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | WebCamRotation 2 | ============== 3 | 4 | An example that shows how to rotate a WebCamTexture according to the screen rotation. 5 | 6 | ![gif](https://33.media.tumblr.com/a66b2b26d588decfb258759a1623253a/tumblr_nts2eoXKYb1qio469o1_400.gif) 7 | --------------------------------------------------------------------------------