[TASK] Initial commit with basic product setup

This commit is contained in:
2019-08-18 13:50:14 +02:00
commit 01a66a8e1f
2548 changed files with 167528 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: bd59039d9bee14a6f90b5544ce66788a
folderAsset: yes
timeCreated: 1525982888
licenseType: Pro
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,77 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: DeviceOrientationMat
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000
stringTagMap:
RenderType: Transparent
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 10
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 3
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 0
m_Colors:
- _Color: {r: 1, g: 0, b: 0, a: 0.541}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 107ca5e7bb5e26f46b0ce09f5fc2e817
timeCreated: 1526382537
licenseType: Pro
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,77 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: UserHeadingMat
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000
stringTagMap:
RenderType: Transparent
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 10
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 3
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 0
m_Colors:
- _Color: {r: 0.11724138, g: 1, b: 0, a: 0.39215687}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 9cd87e4a7579b3c4e85d198cf4d7f65f
timeCreated: 1524792279
licenseType: Pro
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 6945c6e6fe5104d8082a9b97201c039b
folderAsset: yes
timeCreated: 1481919576
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: b650aa71f57a846dc83ef01c3c1755ad
timeCreated: 1521496787
licenseType: Pro
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 9683d5465276540cd9a4c9e89d931293
timeCreated: 1521496787
licenseType: Pro
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 12e74a80942ad194fb4ddd66ed099b5b
timeCreated: 1524215094
licenseType: Pro
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 893d0b4deb5544335b798dafd12ff9a7
timeCreated: 1521496787
licenseType: Pro
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,406 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 8
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.4465785, g: 0.49641252, b: 0.574817, a: 1}
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 11
m_GIWorkflowMode: 0
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_TemporalCoherenceThreshold: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 1
m_LightmapEditorSettings:
serializedVersion: 9
m_Resolution: 2
m_BakeResolution: 40
m_TextureWidth: 1024
m_TextureHeight: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 0
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 500
m_PVRBounces: 2
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVRFilteringMode: 1
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ShowResolutionOverlay: 1
m_LightingDataAsset: {fileID: 0}
m_UseShadowmask: 1
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &221323885
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 221323889}
- component: {fileID: 221323888}
- component: {fileID: 221323887}
- component: {fileID: 221323886}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &221323886
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 221323885}
m_Enabled: 1
--- !u!124 &221323887
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 221323885}
m_Enabled: 1
--- !u!20 &221323888
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 221323885}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &221323889
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 221323885}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &240255710
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 114196496685157712, guid: 5bb46bae81bf04608ac699be504c5e66,
type: 2}
propertyPath: _vectorData._layerProperty.vectorSubLayers.Array.data[0].GoModifiers.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4187505068457818, guid: 5bb46bae81bf04608ac699be504c5e66, type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4187505068457818, guid: 5bb46bae81bf04608ac699be504c5e66, type: 2}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4187505068457818, guid: 5bb46bae81bf04608ac699be504c5e66, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4187505068457818, guid: 5bb46bae81bf04608ac699be504c5e66, type: 2}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4187505068457818, guid: 5bb46bae81bf04608ac699be504c5e66, type: 2}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4187505068457818, guid: 5bb46bae81bf04608ac699be504c5e66, type: 2}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4187505068457818, guid: 5bb46bae81bf04608ac699be504c5e66, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4187505068457818, guid: 5bb46bae81bf04608ac699be504c5e66, type: 2}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 114196496685157712, guid: 5bb46bae81bf04608ac699be504c5e66,
type: 2}
propertyPath: _vectorData._layerProperty.vectorSubLayers.Array.data[0].GoModifiers.Array.data[0]
value:
objectReference: {fileID: 11400000, guid: 68f1c8a1aa79a4a7cb5af3c591ccbea9,
type: 2}
- target: {fileID: 114196496685157712, guid: 5bb46bae81bf04608ac699be504c5e66,
type: 2}
propertyPath: _vectorData._layerProperty.vectorSubLayers.Array.data[0].presetFeatureType
value: 0
objectReference: {fileID: 0}
- target: {fileID: 114196496685157712, guid: 5bb46bae81bf04608ac699be504c5e66,
type: 2}
propertyPath: _vectorData._layerProperty.vectorSubLayers.Array.data[1].filterOptions._selectedLayerName
value: road
objectReference: {fileID: 0}
- target: {fileID: 114196496685157712, guid: 5bb46bae81bf04608ac699be504c5e66,
type: 2}
propertyPath: _vectorData._layerProperty.vectorSubLayers.Array.data[1].honorBuildingIdSetting
value: 0
objectReference: {fileID: 0}
- target: {fileID: 114196496685157712, guid: 5bb46bae81bf04608ac699be504c5e66,
type: 2}
propertyPath: _vectorData._layerProperty.vectorSubLayers.Array.data[1].presetFeatureType
value: 1
objectReference: {fileID: 0}
- target: {fileID: 114196496685157712, guid: 5bb46bae81bf04608ac699be504c5e66,
type: 2}
propertyPath: _vectorData._layerProperty.vectorSubLayers.Array.data[1].materialOptions.customStyleOptions.materials.Array.data[0].Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 8e8afdee0a225a84282f04f2fb89b8b6, type: 2}
- target: {fileID: 114196496685157712, guid: 5bb46bae81bf04608ac699be504c5e66,
type: 2}
propertyPath: _vectorData._layerProperty.vectorSubLayers.Array.data[1].materialOptions.customStyleOptions.materials.Array.data[1].Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: b00db1eb69ea64eb4adb30b2c0fb01cb, type: 2}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 5bb46bae81bf04608ac699be504c5e66, type: 2}
m_IsPrefabParent: 0
--- !u!1 &874846281
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 874846284}
- component: {fileID: 874846283}
- component: {fileID: 874846282}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &874846282
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 874846281}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
m_CancelButton: Cancel
m_InputActionsPerSecond: 10
m_RepeatDelay: 0.5
m_ForceModuleActive: 0
--- !u!114 &874846283
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 874846281}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 5
--- !u!4 &874846284
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 874846281}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &2004214922
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 2004214924}
- component: {fileID: 2004214923}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &2004214923
Light:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 2004214922}
m_Enabled: 1
serializedVersion: 8
m_Type: 1
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_Lightmapping: 4
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &2004214924
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 2004214922}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 7cc595021f9e346b2a073e4503d5978a
timeCreated: 1532996438
licenseType: Pro
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 9a904a5fcec05469db76712a52999b39
timeCreated: 1521496787
licenseType: Pro
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 416b524fd28da493a9b8e35443dbd25b
timeCreated: 1521496787
licenseType: Pro
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 82fc5af5fb735425683aba1dd1d22379
folderAsset: yes
timeCreated: 1480363911
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,122 @@
//-----------------------------------------------------------------------
// <copyright file="DirectionsExample.cs" company="Mapbox">
// Copyright (c) 2016 Mapbox. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Mapbox.Examples.Playground
{
using Mapbox.Unity;
using System;
using UnityEngine;
using UnityEngine.UI;
using Mapbox.Json;
using Mapbox.Directions;
using Mapbox.Utils;
using Mapbox.Utils.JsonConverters;
using Mapbox.Geocoding;
/// <summary>
/// Fetch directions JSON once start and end locations are provided.
/// Example: Enter Start Location: San Francisco, Enter Destination: Los Angeles
/// </summary>
public class DirectionsExample : MonoBehaviour
{
[SerializeField]
Text _resultsText;
[SerializeField]
ForwardGeocodeUserInput _startLocationGeocoder;
[SerializeField]
ForwardGeocodeUserInput _endLocationGeocoder;
Directions _directions;
Vector2d[] _coordinates;
DirectionResource _directionResource;
void Start()
{
_directions = MapboxAccess.Instance.Directions;
_startLocationGeocoder.OnGeocoderResponse += StartLocationGeocoder_OnGeocoderResponse;
_endLocationGeocoder.OnGeocoderResponse += EndLocationGeocoder_OnGeocoderResponse;
_coordinates = new Vector2d[2];
// Can we make routing profiles an enum?
_directionResource = new DirectionResource(_coordinates, RoutingProfile.Driving);
_directionResource.Steps = true;
}
void OnDestroy()
{
if (_startLocationGeocoder != null)
{
_startLocationGeocoder.OnGeocoderResponse -= StartLocationGeocoder_OnGeocoderResponse;
}
if (_startLocationGeocoder != null)
{
_startLocationGeocoder.OnGeocoderResponse -= EndLocationGeocoder_OnGeocoderResponse;
}
}
/// <summary>
/// Start location geocoder responded, update start coordinates.
/// </summary>
/// <param name="sender">Sender.</param>
/// <param name="e">E.</param>
void StartLocationGeocoder_OnGeocoderResponse(ForwardGeocodeResponse response)
{
_coordinates[0] = _startLocationGeocoder.Coordinate;
if (ShouldRoute())
{
Route();
}
}
/// <summary>
/// End location geocoder responded, update end coordinates.
/// </summary>
/// <param name="sender">Sender.</param>
/// <param name="e">E.</param>
void EndLocationGeocoder_OnGeocoderResponse(ForwardGeocodeResponse response)
{
_coordinates[1] = _endLocationGeocoder.Coordinate;
if (ShouldRoute())
{
Route();
}
}
/// <summary>
/// Ensure both forward geocoders have a response, which grants access to their respective coordinates.
/// </summary>
/// <returns><c>true</c>, if both forward geocoders have a response, <c>false</c> otherwise.</returns>
bool ShouldRoute()
{
return _startLocationGeocoder.HasResponse && _endLocationGeocoder.HasResponse;
}
/// <summary>
/// Route
/// </summary>
void Route()
{
_directionResource.Coordinates = _coordinates;
_directions.Query(_directionResource, HandleDirectionsResponse);
}
/// <summary>
/// Log directions response to UI.
/// </summary>
/// <param name="res">Res.</param>
void HandleDirectionsResponse(DirectionsResponse res)
{
var data = JsonConvert.SerializeObject(res, Formatting.Indented, JsonConverters.Converters);
string sub = data.Substring(0, data.Length > 5000 ? 5000 : data.Length) + "\n. . . ";
_resultsText.text = sub;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 6813623cf588043fa958028235282143
timeCreated: 1480366119
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,41 @@
//-----------------------------------------------------------------------
// <copyright file="ForwardGeocoderExample.cs" company="Mapbox">
// Copyright (c) 2016 Mapbox. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Mapbox.Examples.Playground
{
using UnityEngine;
using UnityEngine.UI;
using Mapbox.Json;
using Mapbox.Utils.JsonConverters;
using Mapbox.Geocoding;
public class ForwardGeocoderExample : MonoBehaviour
{
[SerializeField]
ForwardGeocodeUserInput _searchLocation;
[SerializeField]
Text _resultsText;
void Awake()
{
_searchLocation.OnGeocoderResponse += SearchLocation_OnGeocoderResponse;
}
void OnDestroy()
{
if (_searchLocation != null)
{
_searchLocation.OnGeocoderResponse -= SearchLocation_OnGeocoderResponse;
}
}
void SearchLocation_OnGeocoderResponse(ForwardGeocodeResponse response)
{
_resultsText.text = JsonConvert.SerializeObject(_searchLocation.Response, Formatting.Indented, JsonConverters.Converters);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 9db62c5c7a8e7409e99e6cb401d74611
timeCreated: 1480379354
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,135 @@
namespace Mapbox.Examples.Scripts
{
using Mapbox.Unity.Location;
using Mapbox.Utils;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using UnityEngine;
using UnityEngine.UI;
public class LogLocationProviderData : MonoBehaviour
{
[SerializeField]
private Text _logText;
[SerializeField]
private Toggle _logToggle;
private CultureInfo _invariantCulture = CultureInfo.InvariantCulture;
private bool _logToFile = false;
private LocationLogWriter _logWriter = null;
void Start()
{
Screen.sleepTimeout = SleepTimeout.NeverSleep;
LocationProviderFactory.Instance.DefaultLocationProvider.OnLocationUpdated += LocationProvider_OnLocationUpdated;
if (null != _logToggle)
{
_logToggle.onValueChanged.AddListener((isOn) => { _logToFile = isOn; });
}
else
{
Debug.LogError("no logtoggle attached, cannot log");
}
if (null == _logText)
{
Debug.LogError("no text to log to");
}
}
void OnDestroy()
{
closeLogWriter();
LocationProviderFactory.Instance.DefaultLocationProvider.OnLocationUpdated -= LocationProvider_OnLocationUpdated;
}
void LocationProvider_OnLocationUpdated(Location location)
{
/////////////// GUI logging //////////////////////
StringBuilder sb = new StringBuilder();
sb.AppendLine(string.Format("IsLocationServiceEnabled: {0}", location.IsLocationServiceEnabled));
sb.AppendLine(string.Format("IsLocationServiceInitializing: {0}", location.IsLocationServiceInitializing));
sb.AppendLine(string.Format("IsLocationUpdated: {0}", location.IsLocationUpdated));
sb.AppendLine(string.Format("IsHeadingUpdated: {0}", location.IsUserHeadingUpdated));
string locationProviderClass = LocationProviderFactory.Instance.DefaultLocationProvider.GetType().Name;
sb.AppendLine(string.Format("location provider: {0} ({1})", location.Provider, locationProviderClass));
sb.AppendLine(string.Format("UTC time:{0} - device: {1}{0} - location:{2}", Environment.NewLine, DateTime.UtcNow.ToString("yyyyMMdd HHmmss"), UnixTimestampUtils.From(location.Timestamp).ToString("yyyyMMdd HHmmss")));
sb.AppendLine(string.Format(_invariantCulture, "position: {0:0.00000000} / {1:0.00000000}", location.LatitudeLongitude.x, location.LatitudeLongitude.y));
sb.AppendLine(string.Format(_invariantCulture, "accuracy: {0:0.0}m", location.Accuracy));
sb.AppendLine(string.Format(_invariantCulture, "user heading: {0:0.0}°", location.UserHeading));
sb.AppendLine(string.Format(_invariantCulture, "device orientation: {0:0.0}°", location.DeviceOrientation));
sb.AppendLine(nullableAsStr<float>(location.SpeedKmPerHour, "speed: {0:0.0}km/h"));
sb.AppendLine(nullableAsStr<bool>(location.HasGpsFix, "HasGpsFix: {0}"));
sb.AppendLine(nullableAsStr<int>(location.SatellitesUsed, "SatellitesUsed:{0} "));
sb.AppendLine(nullableAsStr<int>(location.SatellitesInView, "SatellitesInView:{0}"));
if (null != _logText)
{
_logText.text = sb.ToString();
}
/////////////// file logging //////////////////////
// start logging to file
if (_logToFile && null == _logWriter)
{
Debug.Log("--- about to start logging to file ---");
_logWriter = new LocationLogWriter();
_logToggle.GetComponentInChildren<Text>().text = "stop logging";
}
// stop logging to file
if (!_logToFile && null != _logWriter)
{
Debug.Log("--- about to stop logging to file ---");
_logToggle.GetComponentInChildren<Text>().text = "start logging";
closeLogWriter();
}
// write line to log file
if (_logToFile && null != _logWriter)
{
_logWriter.Write(location);
}
}
private string nullableAsStr<T>(T? val, string formatString = null) where T : struct
{
if (null == val && null == formatString) { return "[not supported by provider]"; }
if (null == val && null != formatString) { return string.Format(_invariantCulture, formatString, "[not supported by provider]"); }
if (null != val && null == formatString) { return val.Value.ToString(); }
return string.Format(_invariantCulture, formatString, val);
}
private void closeLogWriter()
{
if (null == _logWriter) { return; }
Debug.Log("closing stream writer");
_logWriter.Dispose();
_logWriter = null;
}
void Update() { }
}
}

View File

@@ -0,0 +1,13 @@
fileFormatVersion: 2
guid: b1e59fc6e7b8a20469944d48968f397f
timeCreated: 1524490509
licenseType: Pro
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,136 @@
//-----------------------------------------------------------------------
// <copyright file="RasterTileExample.cs" company="Mapbox">
// Copyright (c) 2016 Mapbox. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Mapbox.Examples.Playground
{
using System.Linq;
using System;
using Mapbox.Map;
using Mapbox.Unity;
using UnityEngine;
using UnityEngine.UI;
using Mapbox.Utils;
using Mapbox.Unity.Utilities;
using Mapbox.Geocoding;
public class RasterTileExample : MonoBehaviour, Mapbox.Utils.IObserver<RasterTile>
{
[SerializeField]
ForwardGeocodeUserInput _searchLocation;
[SerializeField]
Slider _zoomSlider;
[SerializeField]
Dropdown _stylesDropdown;
[SerializeField]
RawImage _imageContainer;
Map<RasterTile> _map;
[Geocode]
[SerializeField]
string _latLon;
// initialize _mapboxStyles
string[] _mapboxStyles = new string[]
{
"mapbox://styles/mapbox/satellite-v9",
"mapbox://styles/mapbox/streets-v9",
"mapbox://styles/mapbox/dark-v9",
"mapbox://styles/mapbox/light-v9"
};
// start location - San Francisco
Vector2d _startLoc = new Vector2d();
int _mapstyle = 0;
void Awake()
{
_searchLocation.OnGeocoderResponse += SearchLocation_OnGeocoderResponse;
_stylesDropdown.ClearOptions();
_stylesDropdown.AddOptions(_mapboxStyles.ToList());
_stylesDropdown.onValueChanged.AddListener(ToggleDropdownStyles);
_zoomSlider.onValueChanged.AddListener(AdjustZoom);
var parsed = _latLon.Split(',');
_startLoc.x = double.Parse(parsed[0]);
_startLoc.y = double.Parse(parsed[1]);
}
void OnDestroy()
{
if (_searchLocation != null)
{
_searchLocation.OnGeocoderResponse -= SearchLocation_OnGeocoderResponse;
}
}
void Start()
{
_map = new Map<RasterTile>(MapboxAccess.Instance);
_map.MapId = _mapboxStyles[_mapstyle];
_map.Center = _startLoc;
_map.Zoom = (int)_zoomSlider.value;
_map.Subscribe(this);
_map.Update();
}
/// <summary>
/// New search location has become available, begin a new _map query.
/// </summary>
/// <param name="sender">Sender.</param>
/// <param name="e">E.</param>
void SearchLocation_OnGeocoderResponse(ForwardGeocodeResponse response)
{
_map.Center = _searchLocation.Coordinate;
_map.Update();
}
/// <summary>
/// Zoom was modified by the slider, begin a new _map query.
/// </summary>
/// <param name="value">Value.</param>
void AdjustZoom(float value)
{
_map.Zoom = (int)_zoomSlider.value;
_map.Update();
}
/// <summary>
/// Style dropdown updated, begin a new _map query.
/// </summary>
/// <param name="value">If set to <c>true</c> value.</param>
void ToggleDropdownStyles(int target)
{
_mapstyle = target;
_map.MapId = _mapboxStyles[target];
_map.Update();
}
/// <summary>
/// Update the texture with new data.
/// </summary>
/// <param name="tile">Tile.</param>
public void OnNext(RasterTile tile)
{
if (
tile.HasError
|| (tile.CurrentState != Tile.State.Loaded && tile.CurrentState != Tile.State.Updated)
)
{
return;
}
// Can we utility this? Should users have to know source size?
var texture = new Texture2D(256, 256);
texture.LoadImage(tile.Data);
_imageContainer.texture = texture;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: baa72cd3a86b44e2e9923f1bfb635675
timeCreated: 1480376499
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,40 @@
//-----------------------------------------------------------------------
// <copyright file="ForwardGeocoderExample.cs" company="Mapbox">
// Copyright (c) 2016 Mapbox. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Mapbox.Examples.Playground
{
using Mapbox.Json;
using Mapbox.Utils.JsonConverters;
using UnityEngine;
using UnityEngine.UI;
public class ReverseGeocoderExample : MonoBehaviour
{
[SerializeField]
ReverseGeocodeUserInput _searchLocation;
[SerializeField]
Text _resultsText;
void Awake()
{
_searchLocation.OnGeocoderResponse += SearchLocation_OnGeocoderResponse;
}
void OnDestroy()
{
if (_searchLocation != null)
{
_searchLocation.OnGeocoderResponse -= SearchLocation_OnGeocoderResponse;
}
}
void SearchLocation_OnGeocoderResponse(object sender, System.EventArgs e)
{
_resultsText.text = JsonConvert.SerializeObject(_searchLocation.Response, Formatting.Indented, JsonConverters.Converters);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: d99f8e76925b24aaeaa5f9e5e23f3085
timeCreated: 1480379354
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,98 @@
//-----------------------------------------------------------------------
// <copyright file="VectorTileExample.cs" company="Mapbox">
// Copyright (c) 2016 Mapbox. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Mapbox.Examples.Playground
{
using Mapbox.Unity;
using Mapbox.Platform;
using System;
using UnityEngine;
using UnityEngine.UI;
using Mapbox.Map;
using Mapbox.Json;
using Mapbox.VectorTile.ExtensionMethods;
using Mapbox.Utils.JsonConverters;
using Mapbox.Geocoding;
public class VectorTileExample : MonoBehaviour, Mapbox.Utils.IObserver<VectorTile>
{
[SerializeField]
ForwardGeocodeUserInput _searchLocation;
[SerializeField]
Text _resultsText;
Map<VectorTile> _map;
void Awake()
{
_searchLocation.OnGeocoderResponse += SearchLocation_OnGeocoderResponse;
}
void OnDestroy()
{
if (_searchLocation != null)
{
_searchLocation.OnGeocoderResponse -= SearchLocation_OnGeocoderResponse;
}
}
void Start()
{
_map = new Map<VectorTile>(new FileSource(MapboxAccess.Instance.Configuration.AccessToken));
_map.Zoom = 18;
// This marks us an an observer to map.
// We will get each tile in OnNext(VectorTile tile) as they become available.
_map.Subscribe(this);
_map.Update();
}
/// <summary>
/// Search location was changed.
/// </summary>
/// <param name="sender">Sender.</param>
/// <param name="e">E.</param>
void SearchLocation_OnGeocoderResponse(ForwardGeocodeResponse response)
{
Redraw();
}
/// <summary>
/// Request _map to update its tile data with new coordinates.
/// </summary>
void Redraw()
{
if (!_searchLocation.HasResponse)
{
_resultsText.text = "no results";
return;
}
//zoom in to get results for consecutive searches
_map.Center = _searchLocation.Coordinate;
_map.Update();
}
/// <summary>
/// Handle tile data from _map as they become available.
/// </summary>
/// <param name="tile">Tile.</param>
public void OnNext(VectorTile tile)
{
if (tile.CurrentState != Tile.State.Loaded || tile.HasError)
{
return;
}
var data = JsonConvert.SerializeObject(
tile.Data.ToGeoJson((ulong)tile.Id.Z, (ulong)tile.Id.X, (ulong)tile.Id.Y),
Formatting.Indented,
JsonConverters.Converters
);
string sub = data.Length < 5000 ? data : data.Substring(0, 5000) + "\n. . . ";
_resultsText.text = sub;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 4f54a6bac8f0048a3a30e4d15baaaff9
timeCreated: 1480376499
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: