浏览代码

clean up

/main
Siyao Huang 1年前
当前提交
1c3c0251
共有 17 个文件被更改,包括 24 次插入1587 次删除
  1. 29
      Assets/Game/Scene/UserScene 1.unity
  2. 5
      Assets/MetaCity.BundleKit.Editor/MetacityMainWindow.cs
  3. 2
      Assets/Myshader/test.mat
  4. 2
      Assets/spawnPosition.asset
  5. 2
      Assets/spawnPositionConfig.json
  6. 2
      ExportBundles/Asset/Asset
  7. 2
      ExportBundles/Asset/Asset.manifest
  8. 2
      ExportBundles/Asset/localCatalog.json
  9. 2
      ExportBundles/Asset/spawnpositionconfig-bundle
  10. 4
      ExportBundles/Asset/spawnpositionconfig-bundle.manifest
  11. 2
      ExportBundles/Asset/userscene 1-bundle.manifest
  12. 421
      Assets/Game/Scene/test 1.unity
  13. 7
      Assets/Game/Scene/test 1.unity.meta
  14. 1001
      Assets/Game/Scene/UserScene.unity
  15. 8
      Assets/Game/Scene/UserScene.unity.meta
  16. 109
      Assets/MetaCity.BundleKit.Editor/MetacityTokenWindow.cs
  17. 11
      Assets/MetaCity.BundleKit.Editor/MetacityTokenWindow.cs.meta

29
Assets/Game/Scene/UserScene 1.unity


- component: {fileID: 2006519980}
- component: {fileID: 2006519979}
- component: {fileID: 2006519978}
- component: {fileID: 2006519977}
- component: {fileID: 2006519981}
m_Layer: 0
m_Name: Quad (1)
m_TagString: Untagged

m_IsActive: 1
--- !u!64 &2006519977
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2006519976}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 4
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &2006519978
MeshRenderer:
m_ObjectHideFlags: 0

m_Father: {fileID: 0}
m_RootOrder: 24
m_LocalEulerAnglesHint: {x: 0, y: -8.426, z: 0}
--- !u!65 &2006519981
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2006519976}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 0.99999994, y: 1, z: 0.51}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1001 &2008524186
PrefabInstance:
m_ObjectHideFlags: 0

5
Assets/MetaCity.BundleKit.Editor/MetacityMainWindow.cs


};
}
m_showPublish = EditorGUILayout.BeginFoldoutHeaderGroup(m_showPublish, "Publish");
if (m_showPublish)
base.OnGUI();
EditorGUILayout.EndFoldoutHeaderGroup();
GUILayout.EndVertical();
EditorGUILayout.EndScrollView();
}

2
Assets/Myshader/test.mat


- _AlphaClip: 1
- _Blend: 0
- _CastShadows: 1
- _Cull: 2
- _Cull: 0
- _DstBlend: 10
- _Offset: -0.53
- _QueueControl: 0

2
Assets/spawnPosition.asset


m_Name: spawnPosition
m_EditorClassIdentifier:
mSpawnPoints:
- mPosition: {x: 72.58, y: 21.52, z: 46.69}
- mPosition: {x: 72.58, y: 28.4, z: 46.69}
mEulerAngle: {x: -0, y: 0, z: 0}

2
Assets/spawnPositionConfig.json


{"mSpawnPoints":[{"mPosition":{"x":72.58000183105469,"y":21.520000457763673,"z":46.689998626708987},"mEulerAngle":{"x":0.0,"y":0.0,"z":0.0}}]}
{"mSpawnPoints":[{"mPosition":{"x":72.58000183105469,"y":28.399999618530275,"z":46.689998626708987},"mEulerAngle":{"x":0.0,"y":0.0,"z":0.0}}]}

2
ExportBundles/Asset/Asset


3
4
(5]� +E
h�E6 b�m�D �}�spawnpositionconfig-�\" ealloonPusers@% 1z�����@��B$�2�L����>�b��>+Q��@|��� F4ܢј\$me���,
h�E6 b�m�D �}�spawnpositionconfig-�\" ealloonPusers@% 1z�(f���[� 3�d4�ʰ���>�b��>+Q��@|��� F4ܢј\$me���,

2
ExportBundles/Asset/Asset.manifest


ManifestFileVersion: 0
CRC: 319720448
CRC: 2797028207
AssetBundleManifest:
AssetBundleInfos:
Info_0:

2
ExportBundles/Asset/localCatalog.json


{"catalogs":[{"bundleName":"spawnpositionconfig-bundle","bundleHash":"f3040e9cd2ce1940fd8942249b32914c","bundleType":"SpawnPoints","multiPlayer":false,"bundlePlatform":"WebGL","bundleDependencies":[],"bundleLocalPath":"D:\\project\\MetacityTemplate\\ExportBundles/Asset\\spawnpositionconfig-bundle"},{"bundleName":"balloon-bundle","bundleHash":"efaf3eef621aa3e53e2b51bcbc407c8a","bundleType":"Prefab","multiPlayer":false,"bundlePlatform":"WebGL","bundleDependencies":[],"bundleLocalPath":"D:\\project\\MetacityTemplate\\ExportBundles/Asset\\balloon-bundle"},{"bundleName":"userscene 1-bundle","bundleHash":"461034dca2d1985c19246d65b685db2c","bundleType":"Scene","multiPlayer":false,"bundlePlatform":"WebGL","bundleDependencies":["balloon-bundle-efaf3eef621aa3e53e2b51bcbc407c8a"],"bundleLocalPath":"D:\\project\\MetacityTemplate\\ExportBundles/Asset\\userscene 1-bundle"}]}
{"catalogs":[{"bundleName":"spawnpositionconfig-bundle","bundleHash":"1604286697e48f5b9b2033b36434b8ca","bundleType":"SpawnPoints","multiPlayer":false,"bundlePlatform":"WebGL","bundleDependencies":[],"bundleLocalPath":"D:\\project\\templeteV2\\MetacityTemplate 1\\ExportBundles/Asset\\spawnpositionconfig-bundle"},{"bundleName":"balloon-bundle","bundleHash":"efaf3eef621aa3e53e2b51bcbc407c8a","bundleType":"Prefab","multiPlayer":false,"bundlePlatform":"WebGL","bundleDependencies":[],"bundleLocalPath":"D:\\project\\templeteV2\\MetacityTemplate 1\\ExportBundles/Asset\\balloon-bundle"},{"bundleName":"userscene 1-bundle","bundleHash":"461034dca2d1985c19246d65b685db2c","bundleType":"Scene","multiPlayer":false,"bundlePlatform":"WebGL","bundleDependencies":["balloon-bundle-efaf3eef621aa3e53e2b51bcbc407c8a"],"bundleLocalPath":"D:\\project\\templeteV2\\MetacityTemplate 1\\ExportBundles/Asset\\userscene 1-bundle"}]}

2
ExportBundles/Asset/spawnpositionconfig-bundle


�@����b�`� � �� ���.�S��n@`��� � ! 
�"
�# ���$� %��&@� '  `(�`)��.*�SL��+�`à,� � - `�@.@ /` 0` 1` 2` 3` 4` 5`�"
`6� 7� 8� 9 � AssetBundlem_PreloadTab`FileID1ath �Container9bInfop5TIndex `Sizea#�m_MainA �RuntimeCompatibilitym_�0Nam|�Dependenciesm_IsStreamedScene��ExplicitDataLayout�@Flag>4aHashes�1U�Hk��]�j����d0X�� 5oO�U�����/U (@ U* � )�����R"-�L�,������J �spawnpositionconfig-b�+,� 6>s/s;@.jso <��Z4P4C4�B{"mS�ints":[{"m'�E":{"x":72.58000183105469,"y":21.520000457763673,"z":46.689998626708987},"mEulerAngleT10.0F7�0.0}}]}
`6� 7� 8� 9 � AssetBundlem_PreloadTab`FileID1ath �Container9bInfop5TIndex `Sizea#�m_MainA �RuntimeCompatibilitym_�0Nam|�Dependenciesm_IsStreamedScene��ExplicitDataLayout�@Flag>4aHashes�1U�Hk��]�j����d0X�� 5oO�U�����/U (@ U* � )�����R"-�L�,������J �spawnpositionconfig-b�+,� 6>s/s;@.jso <��Z4P4C4�B{"mS�ints":[{"m'�":{"x":72.58000183105469,"y":28.39�618530275,"z":46.689998626708987},"mEulerAngleT10.0F7�0.0}}]}

4
ExportBundles/Asset/spawnpositionconfig-bundle.manifest


ManifestFileVersion: 0
CRC: 2082401763
CRC: 66319666
Hash: f3040e9cd2ce1940fd8942249b32914c
Hash: 1604286697e48f5b9b2033b36434b8ca
TypeTreeHash:
serializedVersion: 2
Hash: 5ad585dd02dfb5016c0dad519eab8f49

2
ExportBundles/Asset/userscene 1-bundle.manifest


Assets:
- Assets/Game/Scene/UserScene 1.unity
Dependencies:
- D:/project/MetacityTemplate/ExportBundles/Asset/balloon-bundle
- D:/project/templeteV2/MetacityTemplate 1/ExportBundles/Asset/balloon-bundle

421
Assets/Game/Scene/test 1.unity


%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: 9
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: 3
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 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, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 12
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 0
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 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: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 512
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 256
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 1
m_PVRDenoiserTypeDirect: 1
m_PVRDenoiserTypeIndirect: 1
m_PVRDenoiserTypeAO: 1
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 1
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_LightingSettings: {fileID: 0}
--- !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
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &892193245
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 892193248}
- component: {fileID: 892193247}
- component: {fileID: 892193246}
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 &892193246
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 892193245}
m_Enabled: 1
--- !u!20 &892193247
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 892193245}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
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: 1
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 &892193248
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 892193245}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1666934826
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1666934830}
- component: {fileID: 1666934829}
- component: {fileID: 1666934828}
- component: {fileID: 1666934827}
m_Layer: 0
m_Name: Cube
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!65 &1666934827
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1666934826}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!23 &1666934828
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1666934826}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &1666934829
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1666934826}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!4 &1666934830
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1666934826}
m_LocalRotation: {x: 0.050836716, y: -0.4348938, z: 0.1313284, w: 0.889402}
m_LocalPosition: {x: -1.3, y: -0.4, z: -1.8}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 11.809, y: -50.957, z: 11.156}
--- !u!1 &1742627517
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1742627520}
- component: {fileID: 1742627519}
- component: {fileID: 1742627518}
m_Layer: 0
m_Name: Point Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1742627518
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1742627517}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Version: 1
m_UsePipelineSettings: 1
m_AdditionalLightsShadowResolutionTier: 2
m_LightLayerMask: 1
m_CustomShadowLayers: 0
m_ShadowLayerMask: 1
m_LightCookieSize: {x: 1, y: 1}
m_LightCookieOffset: {x: 0, y: 0}
--- !u!108 &1742627519
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1742627517}
m_Enabled: 1
serializedVersion: 10
m_Type: 2
m_Shape: 0
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: 1
m_Range: 11.503695
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 0
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &1742627520
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1742627517}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.5, y: 0.4, z: -1.5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

7
Assets/Game/Scene/test 1.unity.meta


fileFormatVersion: 2
guid: 3d8896673d434a64bae9a8d2c297a276
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

1001
Assets/Game/Scene/UserScene.unity
文件差异内容过多而无法显示
查看文件

8
Assets/Game/Scene/UserScene.unity.meta


fileFormatVersion: 2
guid: d2809ab9b90eea7419d8d90d4c505d35
timeCreated: 1560250850
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

109
Assets/MetaCity.BundleKit.Editor/MetacityTokenWindow.cs


using System.IO;
using UnityEditor;
using UnityEngine;
using System.Net.Http.Headers;
namespace MetaCity.BundleKit.Editor
{
public class MetacityTokenWindow : EditorWindow
{
[MenuItem("Metacity/AccessTokenWindow")]
public static void OpenTokenWindow()
{
GetWindow<MetacityTokenWindow>();
}
private static bool _isTokenValid = false;
private static string _lastAccessToken = string.Empty;
private readonly GUIStyle _errorStyle = new GUIStyle();
private readonly GUIStyle _passStyle = new GUIStyle();
private void OnEnable()
{
_errorStyle.normal.textColor = Color.red;
_passStyle.normal.textColor = Color.green;
}
private void OnGUI()
{
if (!_isTokenValid || string.IsNullOrEmpty(AccessToken))
{
EditorGUILayout.HelpBox("\n" +
"Get your access token from metacity website.\n" +
"\n"
, MessageType.Warning);
EditorGUILayout.Space(10);
}
EditorGUILayout.LabelField("Access Token :");
EditorStyles.textField.wordWrap = true;
AccessToken = EditorGUILayout.TextArea(AccessToken);
if (!string.IsNullOrEmpty(AccessToken))
{
if (_isTokenValid)
{
EditorGUILayout.LabelField("Valid", _passStyle);
}
else
{
EditorGUILayout.LabelField(new GUIContent("Invalid access token"), _errorStyle);
}
}
else
{
EditorGUILayout.LabelField("Access token can't be null", _errorStyle);
}
Validate();
}
public static string AccessToken
{
get
{
string dir =Constants.TokenConfigPath;
if (string.IsNullOrEmpty(dir) || !Directory.Exists(dir))
return string.Empty;
string path = Path.Combine(dir, "token.txt");
if (!File.Exists(path))
return string.Empty;
return File.ReadAllText(path);
}
set
{
if (value == AccessToken) return;
string dir =Constants.TokenConfigPath;
if (!Directory.Exists(dir))
Directory.CreateDirectory(dir);
string path = Path.Combine(dir, "token.txt");
File.WriteAllText(path, value);
}
}
public static async void Validate()
{
if (!string.IsNullOrEmpty(AccessToken) && AccessToken != _lastAccessToken)
{
MetacityClient.client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AccessToken);
_isTokenValid = await MetacityClient.CheckAccessToken();
if (_isTokenValid)
{
_lastAccessToken = AccessToken;
}
}
}
public static bool IsAccessTokenValid
{
get
{
return _isTokenValid;
}
}
}
}

11
Assets/MetaCity.BundleKit.Editor/MetacityTokenWindow.cs.meta


fileFormatVersion: 2
guid: 1fe31dbf5db5a1f4b95c2b28df88868b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存