From 61f7041fd10f1545991e6fbc66ade10c6835c5a4 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 10 May 2021 21:35:08 +0800 Subject: +misc --- CollectionProj/Assets/Art.meta | 8 + CollectionProj/Assets/BoundViewer.meta | 8 - CollectionProj/Assets/BoundViewer/BoundViewer.cs | 34 -- .../Assets/BoundViewer/BoundViewer.cs.meta | 11 - .../Assets/BoundViewer/BoundViewer_Test.unity | 373 ------------ .../Assets/BoundViewer/BoundViewer_Test.unity.meta | 7 - .../Assets/BoundViewer/Screenshot~/BoundViewer.png | Bin 45727 -> 0 bytes CollectionProj/Assets/Gizmos.meta | 8 + CollectionProj/Assets/Infrastructure.meta | 8 + CollectionProj/Assets/ModelUVViewer.meta | 8 - CollectionProj/Assets/ModelUVViewer/Editor.meta | 8 - .../Assets/ModelUVViewer/Editor/ModelUVViewer.cs | 421 ------------- .../ModelUVViewer/Editor/ModelUVViewer.cs.meta | 11 - .../Assets/ModelUVViewer/Oil_Refinery_09.meta | 8 - .../Assets/ModelUVViewer/Oil_Refinery_09/Cube.fbx | Bin 14300 -> 0 bytes .../ModelUVViewer/Oil_Refinery_09/Cube.fbx.meta | 97 --- .../Assets/ModelUVViewer/Oil_Refinery_09/Cube2.fbx | Bin 15340 -> 0 bytes .../ModelUVViewer/Oil_Refinery_09/Cube2.fbx.meta | 97 --- .../ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx | Bin 15340 -> 0 bytes .../Oil_Refinery_09/Cube2_02.fbx.meta | 97 --- .../ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx | Bin 15340 -> 0 bytes .../Oil_Refinery_09/Cube2_13.fbx.meta | 97 --- .../Assets/ModelUVViewer/Oil_Refinery_09/Cube3.fbx | Bin 15900 -> 0 bytes .../ModelUVViewer/Oil_Refinery_09/Cube3.fbx.meta | 97 --- .../ModelUVViewer/Oil_Refinery_09/Materials.meta | 8 - .../Materials/oil_refinery_09_diff.mat | 34 -- .../Materials/oil_refinery_09_diff.mat.meta | 8 - .../ModelUVViewer/Oil_Refinery_09/Prefabs.meta | 8 - .../Oil_Refinery_09/Prefabs/oil_refinery_09.prefab | 114 ---- .../Prefabs/oil_refinery_09.prefab.meta | 8 - .../ModelUVViewer/Oil_Refinery_09/Textures.meta | 8 - .../Textures/oil_refinery_09_diff.tga | Bin 16777260 -> 0 bytes .../Textures/oil_refinery_09_diff.tga.meta | 88 --- .../Textures/oil_refinery_09_nrm.tga | Bin 12582956 -> 0 bytes .../Textures/oil_refinery_09_nrm.tga.meta | 88 --- .../Textures/oil_refinery_09_spec.tga | Bin 12582956 -> 0 bytes .../Textures/oil_refinery_09_spec.tga.meta | 88 --- .../Oil_Refinery_09/oil_refinery_09.fbx | Bin 580336 -> 0 bytes .../Oil_Refinery_09/oil_refinery_09.fbx.meta | 126 ---- .../ModelUVViewer/Screenshot~/ModelUVView.png | Bin 40039 -> 0 bytes CollectionProj/Assets/Resources.meta | 8 + CollectionProj/Assets/ThirdParty.meta | 8 + CollectionProj/Assets/Tools.meta | 8 + CollectionProj/Assets/Tools/BoundViewer.meta | 8 + .../Assets/Tools/BoundViewer/BoundViewer.cs | 34 ++ .../Assets/Tools/BoundViewer/BoundViewer.cs.meta | 11 + .../Tools/BoundViewer/BoundViewer_Test.unity | 373 ++++++++++++ .../Tools/BoundViewer/BoundViewer_Test.unity.meta | 7 + .../Tools/BoundViewer/Screenshot~/BoundViewer.png | Bin 0 -> 45727 bytes CollectionProj/Assets/Tools/CustomBaking.meta | 8 + .../Assets/Tools/CustomBaking/Editor.meta | 8 + .../Assets/Tools/CustomBaking/Editor/Baker.cs | 13 + .../Assets/Tools/CustomBaking/Editor/Baker.cs.meta | 11 + .../Tools/CustomBaking/Editor/BakingJobBase.cs | 12 + .../CustomBaking/Editor/BakingJobBase.cs.meta | 11 + .../CustomBaking/Editor/CustomBakingEditor.cs | 41 ++ .../CustomBaking/Editor/CustomBakingEditor.cs.meta | 11 + .../Assets/Tools/CustomBaking/Test.unity | 655 +++++++++++++++++++++ .../Assets/Tools/CustomBaking/Test.unity.meta | 7 + .../Tools/CustomBaking/Test_CustomBaking.meta | 8 + .../custombaking_directional_color.png | Bin 0 -> 2982493 bytes .../custombaking_directional_color.png.meta | 92 +++ .../Test_CustomBaking/custombaking_normal.png | Bin 0 -> 2982493 bytes .../Test_CustomBaking/custombaking_normal.png.meta | 92 +++ CollectionProj/Assets/Tools/ModelUVViewer.meta | 8 + .../Assets/Tools/ModelUVViewer/Editor.meta | 8 + .../Tools/ModelUVViewer/Editor/ModelUVViewer.cs | 421 +++++++++++++ .../ModelUVViewer/Editor/ModelUVViewer.cs.meta | 11 + .../Tools/ModelUVViewer/Oil_Refinery_09.meta | 8 + .../Tools/ModelUVViewer/Oil_Refinery_09/Cube.fbx | Bin 0 -> 14300 bytes .../ModelUVViewer/Oil_Refinery_09/Cube.fbx.meta | 97 +++ .../Tools/ModelUVViewer/Oil_Refinery_09/Cube2.fbx | Bin 0 -> 15340 bytes .../ModelUVViewer/Oil_Refinery_09/Cube2.fbx.meta | 97 +++ .../ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx | Bin 0 -> 15340 bytes .../Oil_Refinery_09/Cube2_02.fbx.meta | 97 +++ .../ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx | Bin 0 -> 15340 bytes .../Oil_Refinery_09/Cube2_13.fbx.meta | 97 +++ .../Tools/ModelUVViewer/Oil_Refinery_09/Cube3.fbx | Bin 0 -> 15900 bytes .../ModelUVViewer/Oil_Refinery_09/Cube3.fbx.meta | 97 +++ .../ModelUVViewer/Oil_Refinery_09/Materials.meta | 8 + .../Materials/oil_refinery_09_diff.mat | 34 ++ .../Materials/oil_refinery_09_diff.mat.meta | 8 + .../ModelUVViewer/Oil_Refinery_09/Prefabs.meta | 8 + .../Oil_Refinery_09/Prefabs/oil_refinery_09.prefab | 114 ++++ .../Prefabs/oil_refinery_09.prefab.meta | 8 + .../ModelUVViewer/Oil_Refinery_09/Textures.meta | 8 + .../Textures/oil_refinery_09_diff.tga | Bin 0 -> 16777260 bytes .../Textures/oil_refinery_09_diff.tga.meta | 88 +++ .../Textures/oil_refinery_09_nrm.tga | Bin 0 -> 12582956 bytes .../Textures/oil_refinery_09_nrm.tga.meta | 88 +++ .../Textures/oil_refinery_09_spec.tga | Bin 0 -> 12582956 bytes .../Textures/oil_refinery_09_spec.tga.meta | 88 +++ .../Oil_Refinery_09/oil_refinery_09.fbx | Bin 0 -> 580336 bytes .../Oil_Refinery_09/oil_refinery_09.fbx.meta | 126 ++++ .../ModelUVViewer/Screenshot~/ModelUVView.png | Bin 0 -> 40039 bytes CollectionProj/Assets/Tools/TriangleReOrder.meta | 8 + .../Assets/Tools/TriangleReOrder/OneObject.fbx | Bin 0 -> 16524 bytes .../Tools/TriangleReOrder/OneObject.fbx.meta | 97 +++ .../TriangleReOrder/OneObjectTwoSubmeshes.fbx | Bin 0 -> 18060 bytes .../TriangleReOrder/OneObjectTwoSubmeshes.fbx.meta | 97 +++ .../Assets/Tools/TriangleReOrder/TwoObjects.fbx | Bin 0 -> 17980 bytes .../Tools/TriangleReOrder/TwoObjects.fbx.meta | 97 +++ CollectionProj/Assets/Utilities.meta | 8 + 103 files changed, 3276 insertions(+), 1952 deletions(-) create mode 100644 CollectionProj/Assets/Art.meta delete mode 100644 CollectionProj/Assets/BoundViewer.meta delete mode 100644 CollectionProj/Assets/BoundViewer/BoundViewer.cs delete mode 100644 CollectionProj/Assets/BoundViewer/BoundViewer.cs.meta delete mode 100644 CollectionProj/Assets/BoundViewer/BoundViewer_Test.unity delete mode 100644 CollectionProj/Assets/BoundViewer/BoundViewer_Test.unity.meta delete mode 100644 CollectionProj/Assets/BoundViewer/Screenshot~/BoundViewer.png create mode 100644 CollectionProj/Assets/Gizmos.meta create mode 100644 CollectionProj/Assets/Infrastructure.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Editor.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Editor/ModelUVViewer.cs delete mode 100644 CollectionProj/Assets/ModelUVViewer/Editor/ModelUVViewer.cs.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube.fbx delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube.fbx.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2.fbx delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2.fbx.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube3.fbx delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube3.fbx.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Materials.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Prefabs.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx delete mode 100644 CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx.meta delete mode 100644 CollectionProj/Assets/ModelUVViewer/Screenshot~/ModelUVView.png create mode 100644 CollectionProj/Assets/Resources.meta create mode 100644 CollectionProj/Assets/ThirdParty.meta create mode 100644 CollectionProj/Assets/Tools.meta create mode 100644 CollectionProj/Assets/Tools/BoundViewer.meta create mode 100644 CollectionProj/Assets/Tools/BoundViewer/BoundViewer.cs create mode 100644 CollectionProj/Assets/Tools/BoundViewer/BoundViewer.cs.meta create mode 100644 CollectionProj/Assets/Tools/BoundViewer/BoundViewer_Test.unity create mode 100644 CollectionProj/Assets/Tools/BoundViewer/BoundViewer_Test.unity.meta create mode 100644 CollectionProj/Assets/Tools/BoundViewer/Screenshot~/BoundViewer.png create mode 100644 CollectionProj/Assets/Tools/CustomBaking.meta create mode 100644 CollectionProj/Assets/Tools/CustomBaking/Editor.meta create mode 100644 CollectionProj/Assets/Tools/CustomBaking/Editor/Baker.cs create mode 100644 CollectionProj/Assets/Tools/CustomBaking/Editor/Baker.cs.meta create mode 100644 CollectionProj/Assets/Tools/CustomBaking/Editor/BakingJobBase.cs create mode 100644 CollectionProj/Assets/Tools/CustomBaking/Editor/BakingJobBase.cs.meta create mode 100644 CollectionProj/Assets/Tools/CustomBaking/Editor/CustomBakingEditor.cs create mode 100644 CollectionProj/Assets/Tools/CustomBaking/Editor/CustomBakingEditor.cs.meta create mode 100644 CollectionProj/Assets/Tools/CustomBaking/Test.unity create mode 100644 CollectionProj/Assets/Tools/CustomBaking/Test.unity.meta create mode 100644 CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking.meta create mode 100644 CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_directional_color.png create mode 100644 CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_directional_color.png.meta create mode 100644 CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_normal.png create mode 100644 CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_normal.png.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Editor.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Editor/ModelUVViewer.cs create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Editor/ModelUVViewer.cs.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube.fbx create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube.fbx.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2.fbx create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2.fbx.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube3.fbx create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube3.fbx.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Materials.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Prefabs.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx.meta create mode 100644 CollectionProj/Assets/Tools/ModelUVViewer/Screenshot~/ModelUVView.png create mode 100644 CollectionProj/Assets/Tools/TriangleReOrder.meta create mode 100644 CollectionProj/Assets/Tools/TriangleReOrder/OneObject.fbx create mode 100644 CollectionProj/Assets/Tools/TriangleReOrder/OneObject.fbx.meta create mode 100644 CollectionProj/Assets/Tools/TriangleReOrder/OneObjectTwoSubmeshes.fbx create mode 100644 CollectionProj/Assets/Tools/TriangleReOrder/OneObjectTwoSubmeshes.fbx.meta create mode 100644 CollectionProj/Assets/Tools/TriangleReOrder/TwoObjects.fbx create mode 100644 CollectionProj/Assets/Tools/TriangleReOrder/TwoObjects.fbx.meta create mode 100644 CollectionProj/Assets/Utilities.meta (limited to 'CollectionProj/Assets') diff --git a/CollectionProj/Assets/Art.meta b/CollectionProj/Assets/Art.meta new file mode 100644 index 0000000..1c18cb5 --- /dev/null +++ b/CollectionProj/Assets/Art.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0dadb44d607fd144b8bf244d75519945 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/BoundViewer.meta b/CollectionProj/Assets/BoundViewer.meta deleted file mode 100644 index 0b2f517..0000000 --- a/CollectionProj/Assets/BoundViewer.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a7b3c5b2ae15176449d39af2e2211607 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/BoundViewer/BoundViewer.cs b/CollectionProj/Assets/BoundViewer/BoundViewer.cs deleted file mode 100644 index e883ba8..0000000 --- a/CollectionProj/Assets/BoundViewer/BoundViewer.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class BoundViewer : MonoBehaviour -{ - - private Mesh m_Mesh; - - private void OnEnable() - { - if (m_Mesh != null) - return; - MeshFilter renderer = GetComponentInChildren(); - if(renderer) - { - m_Mesh = renderer.sharedMesh; - } - } - - public void OnDrawGizmos() - { - OnEnable(); - if (m_Mesh != null) - { - Bounds bound = m_Mesh.bounds; - bound.center = Vector3.Scale(bound.center, transform.localScale) + transform.position; - bound.size = Vector3.Scale(bound.size, transform.localScale); - Gizmos.DrawWireCube(bound.center, bound.size); - UnityEditor.Handles.Label(transform.position, bound.size.ToString()); - } - } - -} diff --git a/CollectionProj/Assets/BoundViewer/BoundViewer.cs.meta b/CollectionProj/Assets/BoundViewer/BoundViewer.cs.meta deleted file mode 100644 index 4a13821..0000000 --- a/CollectionProj/Assets/BoundViewer/BoundViewer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: df642a63a3dc3554896b906373599a7b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/BoundViewer/BoundViewer_Test.unity b/CollectionProj/Assets/BoundViewer/BoundViewer_Test.unity deleted file mode 100644 index 77ce938..0000000 --- a/CollectionProj/Assets/BoundViewer/BoundViewer_Test.unity +++ /dev/null @@ -1,373 +0,0 @@ -%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: 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, g: 0, b: 0, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 1 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - 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_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 &577176758 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 577176761} - - component: {fileID: 577176760} - - component: {fileID: 577176759} - 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 &577176759 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 577176758} - m_Enabled: 1 ---- !u!20 &577176760 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 577176758} - 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: 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 &577176761 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 577176758} - 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!1 &672262070 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 672262072} - - component: {fileID: 672262071} - 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 &672262071 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 672262070} - m_Enabled: 1 - serializedVersion: 10 - m_Type: 1 - m_Shape: 0 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_InnerSpotAngle: 21.80208 - 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_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_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &672262072 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 672262070} - 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} ---- !u!1001 &1449717241 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: - - target: {fileID: 100000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} - propertyPath: m_Name - value: oil_refinery_09 - objectReference: {fileID: 0} - - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} - propertyPath: m_LocalPosition.x - value: 26.133648 - objectReference: {fileID: 0} - - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} - propertyPath: m_LocalPosition.y - value: 12.686165 - objectReference: {fileID: 0} - - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} - propertyPath: m_LocalPosition.z - value: 16.838438 - objectReference: {fileID: 0} - - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} - propertyPath: m_LocalRotation.y - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} - propertyPath: m_RootOrder - value: 2 - objectReference: {fileID: 0} - - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} ---- !u!1 &1449717242 stripped -GameObject: - m_CorrespondingSourceObject: {fileID: 100000, guid: 139350fa370c32f418d8eb7bae022427, - type: 3} - m_PrefabInstance: {fileID: 1449717241} - m_PrefabAsset: {fileID: 0} ---- !u!114 &1449717243 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1449717242} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: df642a63a3dc3554896b906373599a7b, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/CollectionProj/Assets/BoundViewer/BoundViewer_Test.unity.meta b/CollectionProj/Assets/BoundViewer/BoundViewer_Test.unity.meta deleted file mode 100644 index da19b75..0000000 --- a/CollectionProj/Assets/BoundViewer/BoundViewer_Test.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: bb3324efa8e9c144181d01ce11e61e2a -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/BoundViewer/Screenshot~/BoundViewer.png b/CollectionProj/Assets/BoundViewer/Screenshot~/BoundViewer.png deleted file mode 100644 index 927f60c..0000000 Binary files a/CollectionProj/Assets/BoundViewer/Screenshot~/BoundViewer.png and /dev/null differ diff --git a/CollectionProj/Assets/Gizmos.meta b/CollectionProj/Assets/Gizmos.meta new file mode 100644 index 0000000..6e67331 --- /dev/null +++ b/CollectionProj/Assets/Gizmos.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e12cdcdfd810c9a4780c740cc3e3dc58 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Infrastructure.meta b/CollectionProj/Assets/Infrastructure.meta new file mode 100644 index 0000000..e581801 --- /dev/null +++ b/CollectionProj/Assets/Infrastructure.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b6469d0629e66c540b669a1b8b71857f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer.meta b/CollectionProj/Assets/ModelUVViewer.meta deleted file mode 100644 index f2ac988..0000000 --- a/CollectionProj/Assets/ModelUVViewer.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 70d9af33df72f6a4da701a0ae2313e24 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Editor.meta b/CollectionProj/Assets/ModelUVViewer/Editor.meta deleted file mode 100644 index 3291e9f..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a0a2833964678d745b75abcd1f64bd44 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Editor/ModelUVViewer.cs b/CollectionProj/Assets/ModelUVViewer/Editor/ModelUVViewer.cs deleted file mode 100644 index 3e95eac..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Editor/ModelUVViewer.cs +++ /dev/null @@ -1,421 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; -using System.IO; - - -namespace UVViwer -{ - internal class PostProcessingMesh : AssetPostprocessor - { - void OnPreprocessModel() - { - if (ModelUVViewer.s_Editor == null) - return; - ModelImporter modelImporter = assetImporter as ModelImporter; - string path = modelImporter.assetPath; - string GUID = AssetDatabase.AssetPathToGUID(path); - if (ModelUVViewer.s_Guid == GUID) - { - ModelUVViewer.ForceRepaint(); - } - } - - void OnPostprocessModel(GameObject go) - { - //return; - Mesh mesh = go.GetComponent().sharedMesh; - if (mesh) - { - Vector2[] uvs = mesh.uv2; - for (int i = 0; i < uvs.Length; ++i) - { - Vector2 uv = uvs[i]; - uv.x = Mathf.Clamp(uv.x, 0, 1); - uv.y = Mathf.Clamp(uv.y, 0, 1); - uvs[i] = uv; - } - mesh.uv2 = uvs; - } - } - - } - - public class ModelUVViewer : EditorWindow - { - [MenuItem("Assets/Model UV Viewer", true)] - static bool TryOpenModelUVViewer() - { - string[] guids = Selection.assetGUIDs; - if (guids == null || guids.Length == 0) - return false; - for (int i = 0; i < guids.Length; ++i) - { - string guid = guids[i]; - string path = AssetDatabase.GUIDToAssetPath(guid); - string extension = Path.GetExtension(path).ToLower(); - if (extension != ".fbx") - return false; - } - return true; - } - - [MenuItem("Assets/Model UV Viewer", false)] - static void OpenModelUVViewer() - { - string[] guids = Selection.assetGUIDs; - s_Mesh.Clear(); - s_MeshToAsset = new Dictionary(); - foreach (string guid in guids) - { - string path = AssetDatabase.GUIDToAssetPath(guid); - Mesh mesh = AssetDatabase.LoadAssetAtPath(path, typeof(Mesh)) as Mesh; - if (mesh != null) - { - s_Mesh.Add(mesh); - s_MeshToAsset.Add(mesh.GetHashCode(), guid); - } - } - -#if UNITY_2020 || UNITY_2021 || UNITY_2019 - if (!HasOpenInstances() || s_Editor == null) -#else - if (s_Editor == null) -#endif - { - s_Editor = GetWindow(); - s_Editor.titleContent = new GUIContent("Model UV Viewer"); - s_Editor.Show(); - } - - s_Editor.Focus(); - s_Selcted = string.Empty; - s_TargetTexture = null; - if (s_Mat == null) - { - s_Mat = new Material(Shader.Find("UI/Default")); - } - if (s_UVMesh == null) - { - s_UVMesh = new Mesh(); - } - s_HashCode = 0; - s_TillingOffset = new Rect(0, 0, 1, 1); - } - - public static ModelUVViewer s_Editor; - static List s_Mesh = new List(); - - static string s_Selcted; - static int s_HashCode; - - public static string s_Guid - { - get - { - if (s_HashCode == 0) - return string.Empty; - string guid; - if (s_MeshToAsset.TryGetValue(s_HashCode, out guid)) - return guid; - return string.Empty; - } - } - - static Texture2D s_TargetTexture; - - static int s_Size = 500; - - static Vector2[] s_UV; - - // 性能太低 - //static Vector2[] s_UV - //{ - // get - // { - // Mesh mesh = GetMeshByHashCode(s_HashCode); - // if (mesh == null) - // return null; - // return GetMeshUV(mesh, s_UVIndex); - // } - //} - - static int s_UVIndex; - - static Material s_Mat; - - static Mesh s_UVMesh; - - static Rect s_TillingOffset; - - static GUIStyle s_SelectStyle; - static GUIStyle s_AlignRightText; - - public static Dictionary s_MeshToAsset = new Dictionary(); - - static IEnumerator s_ReloadUV; - - static bool s_HasWarning - { - get - { - return s_Warning != null && s_Warning != string.Empty && s_Warning.Length > 0; - } - } - static string s_Warning; - - private void OnGUI() - { - if (s_Editor == null) - return; - if (s_Mesh == null || s_Mesh.Count == 0) - return; - - if (s_SelectStyle == null) - { - s_SelectStyle = new GUIStyle(EditorStyles.miniButtonMid); - s_SelectStyle.normal.background = EditorStyles.miniButtonMid.active.background; - s_SelectStyle.normal.scaledBackgrounds = EditorStyles.miniButtonMid.active.scaledBackgrounds; - } - - if(s_AlignRightText == null) - { - s_AlignRightText = new GUIStyle(EditorStyles.label); - s_AlignRightText.alignment = TextAnchor.MiddleRight; - } - - if (Event.current.isScrollWheel) - { - Vector2 delta = Event.current.delta; - float dy = delta.y; - s_Size -= (int)dy * 10; - s_Size = Mathf.Clamp(s_Size, 350, 1000); - this.Repaint(); - } - - int xOff = 10; - int yOff = 10; - EditorGUILayout.Space(); - EditorGUILayout.HelpBox("查看模型的UV", MessageType.Info); - EditorGUILayout.Space(); - if(s_HasWarning) - { - EditorGUILayout.HelpBox(s_Warning, MessageType.Warning); - EditorGUILayout.Space(); - } - yOff = (int)EditorGUILayout.GetControlRect().y; - - for (int i = 0; i < s_Mesh.Count; ++i) - { - Mesh mesh = s_Mesh[i]; - if (mesh == null) - continue; - s_Mesh[i] = ShowMeshItem(mesh, i, new Rect(xOff, yOff, 200, 16)); - yOff += 25; - } - - GUI.Label(new Rect(xOff, yOff, 100, 20), "选择贴图:"); - yOff += 5; - s_TargetTexture = EditorGUI.ObjectField(new Rect(xOff + 100, yOff, 60, 60), s_TargetTexture, typeof(Texture2D), false) as Texture2D; - - Vector2 tilling = new Vector2(s_TillingOffset.width, s_TillingOffset.height); - Vector2 offset = new Vector2(s_TillingOffset.x, s_TillingOffset.y); - tilling = EditorGUI.Vector2Field(new Rect(xOff + 170, yOff - 5, 200, 20), "Tilling", tilling); - offset = EditorGUI.Vector2Field(new Rect(xOff + 170, yOff + 30, 200, 20), "Offset", offset); - s_TillingOffset.x = offset.x; - s_TillingOffset.y = offset.y; - s_TillingOffset.width = tilling.x; - s_TillingOffset.height = tilling.y; - - yOff += 75; - - s_Size = EditorGUI.IntSlider(new Rect(xOff, yOff, 200, 20), s_Size, 350, 1000); - EditorGUI.LabelField(new Rect(xOff + 203, yOff, 50, 20), "texels"); - - yOff += 25; - - int previewYOff = yOff; - - if (s_TargetTexture != null) - GUI.DrawTextureWithTexCoords(new Rect(xOff, yOff, s_Size, s_Size), s_TargetTexture, s_TillingOffset, false); - // EditorGUI.DrawPreviewTexture(new Rect(xOff, yOff, s_Size, s_Size), s_TargetTexture/*, s_TillingOffset, false*/); - else - GUI.DrawTextureWithTexCoords(new Rect(xOff, yOff, s_Size, s_Size), Texture2D.blackTexture, s_TillingOffset, false); - - if (s_Selcted != string.Empty && s_Selcted != "") - { - int hashCode = int.Parse(s_Selcted.Substring(0, s_Selcted.LastIndexOf("_"))); - Mesh mesh = GetMeshByHashCode(hashCode); - if (mesh != null) - { - string uvi = s_Selcted.Substring(s_Selcted.LastIndexOf("_") + 1, s_Selcted.Length - s_Selcted.LastIndexOf("_") - 1); - - GUI.Label(new Rect(xOff + s_Size - 200, yOff - 25, 200, 20), mesh.name + "." + uvi, s_AlignRightText); - - yOff += 25; - - if (s_UV != null && s_UV.Length > 0 && s_Mat != null) - { - - if (s_UVMesh == null) - s_UVMesh = new Mesh(); - if (s_UVMesh.vertices == null || s_UVMesh.vertices.Length == 0) - { - Vector3[] vertices = new Vector3[mesh.vertices.Length]; - for (int i = 0; i < vertices.Length; ++i) - { - Vector2 uv = s_UV[i]; - if ((uv.x > 1 || uv.y > 1 || uv.x < 0 || uv.y < 0) && !s_HasWarning) - s_Warning = "这套UV有超过[0,1]范围的值"; - vertices[i] = new Vector3(uv.x, 1 - uv.y, 0); - } - s_UVMesh.vertices = vertices; - s_UVMesh.triangles = mesh.triangles; - s_UVMesh.UploadMeshData(true); - } - s_Mat.SetPass(0); - s_Mat.SetColor("_Color", Color.yellow); - GL.wireframe = true; - Graphics.DrawMeshNow(s_UVMesh, Matrix4x4.TRS(new Vector3(xOff, previewYOff, 0), Quaternion.identity, new Vector3(s_Size, s_Size, 1))); - GL.wireframe = false; - } - } - } - if (s_ReloadUV != null) - { - if (!s_ReloadUV.MoveNext()) - { - s_ReloadUV = null; - } - } - } - - private Mesh ShowMeshItem(Mesh mesh, int index, Rect rect) - { - Mesh newMesh = EditorGUI.ObjectField(rect, mesh, typeof(Mesh), false) as Mesh; - if (newMesh != mesh) - return newMesh; - - float xOff = rect.x + rect.width + 10; - float yOff = rect.y; - - int hashCode = mesh.GetHashCode(); - - xOff = ShowUVButton(1, hashCode, "uv", mesh.uv, new Rect(xOff, yOff, 50, 16)); - xOff = ShowUVButton(2, hashCode, "uv2", mesh.uv2, new Rect(xOff, yOff, 50, 16)); - xOff = ShowUVButton(3, hashCode, "uv3", mesh.uv3, new Rect(xOff, yOff, 50, 16)); - xOff = ShowUVButton(4, hashCode, "uv4", mesh.uv4, new Rect(xOff, yOff, 50, 16)); -#if UNITY_2020 || UNITY_2021 || UNITY_2019 - xOff = ShowUVButton(5,hashCode, "uv5", mesh.uv5, new Rect(xOff, yOff, 50, 20)); - xOff = ShowUVButton(6,hashCode, "uv6", mesh.uv6, new Rect(xOff, yOff, 50, 20)); - xOff = ShowUVButton(7,hashCode, "uv7", mesh.uv7, new Rect(xOff, yOff, 50, 20)); - xOff = ShowUVButton(8,hashCode, "uv8", mesh.uv8, new Rect(xOff, yOff, 50, 20)); -#endif - - return mesh; - } - - private float ShowUVButton(int index, int hashCode, string name, Vector2[] uv, Rect rect) - { - if (uv == null || uv.Length == 0) - { - rect.x += 50; - return rect.x; - } - - bool isThis = s_Selcted == hashCode + "_" + name; -#if UNITY_2020 || UNITY_2021 || UNITY_2019 - Color c = GUI.color; - if(isThis) GUI.color = Color.gray; - if (GUI.Button(rect, name, EditorStyles.miniButtonMid)) -#else - if (GUI.Button(rect, name, isThis ? s_SelectStyle : EditorStyles.miniButtonMid)) -#endif - { - if (isThis) - { - s_UV = null; - s_UVIndex = 0; - s_Selcted = string.Empty; - s_HashCode = 0; - s_UVMesh = null; - s_Warning = ""; - } - else - { - s_UV = uv; - s_UVIndex = index; - s_HashCode = hashCode; - s_Selcted = hashCode + "_" + name; - s_UVMesh = null; - s_Warning = ""; - } - } -#if UNITY_2020 || UNITY_2021 || UNITY_2019 - GUI.color = c; -#endif - - rect.x += 50; - return rect.x; - } - - static Vector2[] GetMeshUV(Mesh mesh, int i) - { - switch (i) - { - case 1: return mesh.uv; - case 2: return mesh.uv2; - case 3: return mesh.uv3; - case 4: return mesh.uv4; -#if UNITY_2020 || UNITY_2021 || UNITY_2019 - case 5: return mesh.uv5; - case 6: return mesh.uv6; - case 7: return mesh.uv7; - case 8: return mesh.uv8; -#endif - default: - Debug.LogError("InValid uv index"); - return null; - } - - } - - static Mesh GetMeshByHashCode(int hashCode) - { - foreach (var mesh in s_Mesh) - { - if (mesh.GetHashCode() == hashCode) - { - return mesh; - } - } - return null; - } - - public static void ForceRepaint() - { - if (s_Editor != null) - { - s_Editor.Repaint(); - s_ReloadUV = ReloadUVNextFrame(); - s_ReloadUV.MoveNext(); - } - } - - // 需要等到导入mesh之后的下一帧才能得到最新的UV数据 - static IEnumerator ReloadUVNextFrame() - { - yield return null; - Mesh mesh = GetMeshByHashCode(s_HashCode); - if (mesh != null) - { - s_UVMesh = null; - s_UV = GetMeshUV(mesh, s_UVIndex); - s_Warning = ""; - } - } - - } - -} \ No newline at end of file diff --git a/CollectionProj/Assets/ModelUVViewer/Editor/ModelUVViewer.cs.meta b/CollectionProj/Assets/ModelUVViewer/Editor/ModelUVViewer.cs.meta deleted file mode 100644 index f3823e9..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Editor/ModelUVViewer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e4acb38020275944bb75a749ee8eb429 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09.meta deleted file mode 100644 index 0e330df..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: cf4084126ae057341b5667eb7adc826d -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube.fbx b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube.fbx deleted file mode 100644 index a25c921..0000000 Binary files a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube.fbx and /dev/null differ diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube.fbx.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube.fbx.meta deleted file mode 100644 index 7dac44a..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube.fbx.meta +++ /dev/null @@ -1,97 +0,0 @@ -fileFormatVersion: 2 -guid: e844836f25841324dac8c89a76c7aaca -ModelImporter: - serializedVersion: 19301 - internalIDToNameTable: [] - externalObjects: {} - materials: - materialImportMode: 1 - materialName: 0 - materialSearch: 1 - materialLocation: 1 - animations: - legacyGenerateAnimations: 4 - bakeSimulation: 0 - resampleCurves: 1 - optimizeGameObjects: 0 - motionNodeName: - rigImportErrors: - rigImportWarnings: - animationImportErrors: - animationImportWarnings: - animationRetargetingWarnings: - animationDoRetargetingWarnings: 0 - importAnimatedCustomProperties: 0 - importConstraints: 0 - animationCompression: 1 - animationRotationError: 0.5 - animationPositionError: 0.5 - animationScaleError: 0.5 - animationWrapMode: 0 - extraExposedTransformPaths: [] - extraUserProperties: [] - clipAnimations: [] - isReadable: 0 - meshes: - lODScreenPercentages: [] - globalScale: 1 - meshCompression: 0 - addColliders: 0 - useSRGBMaterialColor: 1 - sortHierarchyByName: 1 - importVisibility: 1 - importBlendShapes: 1 - importCameras: 1 - importLights: 1 - fileIdsGeneration: 2 - swapUVChannels: 0 - generateSecondaryUV: 1 - useFileUnits: 1 - keepQuads: 0 - weldVertices: 1 - preserveHierarchy: 0 - skinWeightsMode: 0 - maxBonesPerVertex: 4 - minBoneWeight: 0.001 - meshOptimizationFlags: -1 - indexFormat: 0 - secondaryUVAngleDistortion: 8 - secondaryUVAreaDistortion: 15 - secondaryUVHardAngle: 67 - secondaryUVPackMargin: 14 - useFileScale: 1 - tangentSpace: - normalSmoothAngle: 60 - normalImportMode: 0 - tangentImportMode: 3 - normalCalculationMode: 4 - legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 - blendShapeNormalImportMode: 1 - normalSmoothingSource: 0 - referencedClips: [] - importAnimation: 1 - humanDescription: - serializedVersion: 3 - human: [] - skeleton: [] - armTwist: 0.5 - foreArmTwist: 0.5 - upperLegTwist: 0.5 - legTwist: 0.5 - armStretch: 0.05 - legStretch: 0.05 - feetSpacing: 0 - globalScale: 1 - rootMotionBoneName: - hasTranslationDoF: 0 - hasExtraRoot: 0 - skeletonHasParents: 1 - lastHumanDescriptionAvatarSource: {instanceID: 0} - autoGenerateAvatarMappingIfUnspecified: 1 - animationType: 2 - humanoidOversampling: 1 - avatarSetup: 0 - additionalBone: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2.fbx b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2.fbx deleted file mode 100644 index 8d8dbd5..0000000 Binary files a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2.fbx and /dev/null differ diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2.fbx.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2.fbx.meta deleted file mode 100644 index a3e73ae..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2.fbx.meta +++ /dev/null @@ -1,97 +0,0 @@ -fileFormatVersion: 2 -guid: 329a01ba2216d8f42bf307b7d05a2394 -ModelImporter: - serializedVersion: 19301 - internalIDToNameTable: [] - externalObjects: {} - materials: - materialImportMode: 1 - materialName: 0 - materialSearch: 1 - materialLocation: 1 - animations: - legacyGenerateAnimations: 4 - bakeSimulation: 0 - resampleCurves: 1 - optimizeGameObjects: 0 - motionNodeName: - rigImportErrors: - rigImportWarnings: - animationImportErrors: - animationImportWarnings: - animationRetargetingWarnings: - animationDoRetargetingWarnings: 0 - importAnimatedCustomProperties: 0 - importConstraints: 0 - animationCompression: 1 - animationRotationError: 0.5 - animationPositionError: 0.5 - animationScaleError: 0.5 - animationWrapMode: 0 - extraExposedTransformPaths: [] - extraUserProperties: [] - clipAnimations: [] - isReadable: 0 - meshes: - lODScreenPercentages: [] - globalScale: 1 - meshCompression: 0 - addColliders: 0 - useSRGBMaterialColor: 1 - sortHierarchyByName: 1 - importVisibility: 1 - importBlendShapes: 1 - importCameras: 1 - importLights: 1 - fileIdsGeneration: 2 - swapUVChannels: 0 - generateSecondaryUV: 1 - useFileUnits: 1 - keepQuads: 0 - weldVertices: 1 - preserveHierarchy: 0 - skinWeightsMode: 0 - maxBonesPerVertex: 4 - minBoneWeight: 0.001 - meshOptimizationFlags: -1 - indexFormat: 0 - secondaryUVAngleDistortion: 8 - secondaryUVAreaDistortion: 15.000001 - secondaryUVHardAngle: 88 - secondaryUVPackMargin: 4 - useFileScale: 1 - tangentSpace: - normalSmoothAngle: 60 - normalImportMode: 0 - tangentImportMode: 3 - normalCalculationMode: 4 - legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 - blendShapeNormalImportMode: 1 - normalSmoothingSource: 0 - referencedClips: [] - importAnimation: 1 - humanDescription: - serializedVersion: 3 - human: [] - skeleton: [] - armTwist: 0.5 - foreArmTwist: 0.5 - upperLegTwist: 0.5 - legTwist: 0.5 - armStretch: 0.05 - legStretch: 0.05 - feetSpacing: 0 - globalScale: 1 - rootMotionBoneName: - hasTranslationDoF: 0 - hasExtraRoot: 0 - skeletonHasParents: 1 - lastHumanDescriptionAvatarSource: {instanceID: 0} - autoGenerateAvatarMappingIfUnspecified: 1 - animationType: 2 - humanoidOversampling: 1 - avatarSetup: 0 - additionalBone: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx deleted file mode 100644 index f71a839..0000000 Binary files a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx and /dev/null differ diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx.meta deleted file mode 100644 index 88cc8a3..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx.meta +++ /dev/null @@ -1,97 +0,0 @@ -fileFormatVersion: 2 -guid: fb04d4635683a0848ab3a99029b0cc94 -ModelImporter: - serializedVersion: 19301 - internalIDToNameTable: [] - externalObjects: {} - materials: - materialImportMode: 1 - materialName: 0 - materialSearch: 1 - materialLocation: 1 - animations: - legacyGenerateAnimations: 4 - bakeSimulation: 0 - resampleCurves: 1 - optimizeGameObjects: 0 - motionNodeName: - rigImportErrors: - rigImportWarnings: - animationImportErrors: - animationImportWarnings: - animationRetargetingWarnings: - animationDoRetargetingWarnings: 0 - importAnimatedCustomProperties: 0 - importConstraints: 0 - animationCompression: 1 - animationRotationError: 0.5 - animationPositionError: 0.5 - animationScaleError: 0.5 - animationWrapMode: 0 - extraExposedTransformPaths: [] - extraUserProperties: [] - clipAnimations: [] - isReadable: 0 - meshes: - lODScreenPercentages: [] - globalScale: 1 - meshCompression: 0 - addColliders: 0 - useSRGBMaterialColor: 1 - sortHierarchyByName: 1 - importVisibility: 1 - importBlendShapes: 1 - importCameras: 1 - importLights: 1 - fileIdsGeneration: 2 - swapUVChannels: 0 - generateSecondaryUV: 0 - useFileUnits: 1 - keepQuads: 0 - weldVertices: 1 - preserveHierarchy: 0 - skinWeightsMode: 0 - maxBonesPerVertex: 4 - minBoneWeight: 0.001 - meshOptimizationFlags: -1 - indexFormat: 0 - secondaryUVAngleDistortion: 8 - secondaryUVAreaDistortion: 15.000001 - secondaryUVHardAngle: 88 - secondaryUVPackMargin: 4 - useFileScale: 1 - tangentSpace: - normalSmoothAngle: 60 - normalImportMode: 0 - tangentImportMode: 3 - normalCalculationMode: 4 - legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 - blendShapeNormalImportMode: 1 - normalSmoothingSource: 0 - referencedClips: [] - importAnimation: 1 - humanDescription: - serializedVersion: 3 - human: [] - skeleton: [] - armTwist: 0.5 - foreArmTwist: 0.5 - upperLegTwist: 0.5 - legTwist: 0.5 - armStretch: 0.05 - legStretch: 0.05 - feetSpacing: 0 - globalScale: 1 - rootMotionBoneName: - hasTranslationDoF: 0 - hasExtraRoot: 0 - skeletonHasParents: 1 - lastHumanDescriptionAvatarSource: {instanceID: 0} - autoGenerateAvatarMappingIfUnspecified: 1 - animationType: 2 - humanoidOversampling: 1 - avatarSetup: 0 - additionalBone: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx deleted file mode 100644 index 98b16cb..0000000 Binary files a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx and /dev/null differ diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx.meta deleted file mode 100644 index f7273d1..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx.meta +++ /dev/null @@ -1,97 +0,0 @@ -fileFormatVersion: 2 -guid: a0f366de3bb69e74899ef23b449b5b20 -ModelImporter: - serializedVersion: 19301 - internalIDToNameTable: [] - externalObjects: {} - materials: - materialImportMode: 1 - materialName: 0 - materialSearch: 1 - materialLocation: 1 - animations: - legacyGenerateAnimations: 4 - bakeSimulation: 0 - resampleCurves: 1 - optimizeGameObjects: 0 - motionNodeName: - rigImportErrors: - rigImportWarnings: - animationImportErrors: - animationImportWarnings: - animationRetargetingWarnings: - animationDoRetargetingWarnings: 0 - importAnimatedCustomProperties: 0 - importConstraints: 0 - animationCompression: 1 - animationRotationError: 0.5 - animationPositionError: 0.5 - animationScaleError: 0.5 - animationWrapMode: 0 - extraExposedTransformPaths: [] - extraUserProperties: [] - clipAnimations: [] - isReadable: 0 - meshes: - lODScreenPercentages: [] - globalScale: 1 - meshCompression: 0 - addColliders: 0 - useSRGBMaterialColor: 1 - sortHierarchyByName: 1 - importVisibility: 1 - importBlendShapes: 1 - importCameras: 1 - importLights: 1 - fileIdsGeneration: 2 - swapUVChannels: 0 - generateSecondaryUV: 0 - useFileUnits: 1 - keepQuads: 0 - weldVertices: 1 - preserveHierarchy: 0 - skinWeightsMode: 0 - maxBonesPerVertex: 4 - minBoneWeight: 0.001 - meshOptimizationFlags: -1 - indexFormat: 0 - secondaryUVAngleDistortion: 8 - secondaryUVAreaDistortion: 15.000001 - secondaryUVHardAngle: 88 - secondaryUVPackMargin: 4 - useFileScale: 1 - tangentSpace: - normalSmoothAngle: 60 - normalImportMode: 0 - tangentImportMode: 3 - normalCalculationMode: 4 - legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 - blendShapeNormalImportMode: 1 - normalSmoothingSource: 0 - referencedClips: [] - importAnimation: 1 - humanDescription: - serializedVersion: 3 - human: [] - skeleton: [] - armTwist: 0.5 - foreArmTwist: 0.5 - upperLegTwist: 0.5 - legTwist: 0.5 - armStretch: 0.05 - legStretch: 0.05 - feetSpacing: 0 - globalScale: 1 - rootMotionBoneName: - hasTranslationDoF: 0 - hasExtraRoot: 0 - skeletonHasParents: 1 - lastHumanDescriptionAvatarSource: {instanceID: 0} - autoGenerateAvatarMappingIfUnspecified: 1 - animationType: 2 - humanoidOversampling: 1 - avatarSetup: 0 - additionalBone: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube3.fbx b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube3.fbx deleted file mode 100644 index db58e6e..0000000 Binary files a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube3.fbx and /dev/null differ diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube3.fbx.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube3.fbx.meta deleted file mode 100644 index 1c021f7..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Cube3.fbx.meta +++ /dev/null @@ -1,97 +0,0 @@ -fileFormatVersion: 2 -guid: 6fcff11a7e131804c958d9bd8173f2ed -ModelImporter: - serializedVersion: 19301 - internalIDToNameTable: [] - externalObjects: {} - materials: - materialImportMode: 1 - materialName: 0 - materialSearch: 1 - materialLocation: 1 - animations: - legacyGenerateAnimations: 4 - bakeSimulation: 0 - resampleCurves: 1 - optimizeGameObjects: 0 - motionNodeName: - rigImportErrors: - rigImportWarnings: - animationImportErrors: - animationImportWarnings: - animationRetargetingWarnings: - animationDoRetargetingWarnings: 0 - importAnimatedCustomProperties: 0 - importConstraints: 0 - animationCompression: 1 - animationRotationError: 0.5 - animationPositionError: 0.5 - animationScaleError: 0.5 - animationWrapMode: 0 - extraExposedTransformPaths: [] - extraUserProperties: [] - clipAnimations: [] - isReadable: 0 - meshes: - lODScreenPercentages: [] - globalScale: 1 - meshCompression: 0 - addColliders: 0 - useSRGBMaterialColor: 1 - sortHierarchyByName: 1 - importVisibility: 1 - importBlendShapes: 1 - importCameras: 1 - importLights: 1 - fileIdsGeneration: 2 - swapUVChannels: 0 - generateSecondaryUV: 1 - useFileUnits: 1 - keepQuads: 0 - weldVertices: 1 - preserveHierarchy: 0 - skinWeightsMode: 0 - maxBonesPerVertex: 4 - minBoneWeight: 0.001 - meshOptimizationFlags: -1 - indexFormat: 0 - secondaryUVAngleDistortion: 8 - secondaryUVAreaDistortion: 15 - secondaryUVHardAngle: 50 - secondaryUVPackMargin: 14 - useFileScale: 1 - tangentSpace: - normalSmoothAngle: 60 - normalImportMode: 0 - tangentImportMode: 3 - normalCalculationMode: 4 - legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 - blendShapeNormalImportMode: 1 - normalSmoothingSource: 0 - referencedClips: [] - importAnimation: 1 - humanDescription: - serializedVersion: 3 - human: [] - skeleton: [] - armTwist: 0.5 - foreArmTwist: 0.5 - upperLegTwist: 0.5 - legTwist: 0.5 - armStretch: 0.05 - legStretch: 0.05 - feetSpacing: 0 - globalScale: 1 - rootMotionBoneName: - hasTranslationDoF: 0 - hasExtraRoot: 0 - skeletonHasParents: 1 - lastHumanDescriptionAvatarSource: {instanceID: 0} - autoGenerateAvatarMappingIfUnspecified: 1 - animationType: 2 - humanoidOversampling: 1 - avatarSetup: 0 - additionalBone: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Materials.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Materials.meta deleted file mode 100644 index 0c98c7f..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Materials.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a067855c81d613d4c8c5ba5a37d4e42a -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat deleted file mode 100644 index e2bcc9e..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat +++ /dev/null @@ -1,34 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!21 &2100000 -Material: - serializedVersion: 6 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: oil_refinery_09_diff - m_Shader: {fileID: 4, guid: 0000000000000000f000000000000000, type: 0} - m_ShaderKeywords: - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _BumpMap: - m_Texture: {fileID: 2800000, guid: 6b4cc5c7898088a419e0e7849b296642, type: 3} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MainTex: - m_Texture: {fileID: 2800000, guid: 4dc74c74c3fc3e742973e051645df04e, type: 3} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Floats: - - _Shininess: 0.078125 - m_Colors: - - _Color: {r: 1, g: 1, b: 1, a: 1} - - _SpecColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat.meta deleted file mode 100644 index c31bef9..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 69bb0fd7fafac5940a9d6e5199a0af46 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Prefabs.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Prefabs.meta deleted file mode 100644 index 47c7d76..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Prefabs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: cf0ab6828ff77f34cb94ace8034c1fe0 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab deleted file mode 100644 index 4340ff1..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab +++ /dev/null @@ -1,114 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &100000 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 400000} - - component: {fileID: 3300000} - - component: {fileID: 2300000} - - component: {fileID: 6400000} - - component: {fileID: 9500000} - m_Layer: 0 - m_Name: oil_refinery_09 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &400000 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 100000} - m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -0.054035187, y: -4.2674198e-16, z: -0.040786743} - 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!33 &3300000 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 100000} - m_Mesh: {fileID: 4300002, guid: 139350fa370c32f418d8eb7bae022427, type: 3} ---- !u!23 &2300000 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 100000} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 0 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 69bb0fd7fafac5940a9d6e5199a0af46, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - 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 ---- !u!64 &6400000 -MeshCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 100000} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 3 - m_Convex: 0 - m_CookingOptions: 14 - m_Mesh: {fileID: 4300002, guid: 139350fa370c32f418d8eb7bae022427, type: 3} ---- !u!95 &9500000 -Animator: - serializedVersion: 3 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 100000} - m_Enabled: 1 - m_Avatar: {fileID: 9000000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} - m_Controller: {fileID: 0} - m_CullingMode: 0 - m_UpdateMode: 0 - m_ApplyRootMotion: 1 - m_LinearVelocityBlending: 0 - m_WarningMessage: - m_HasTransformHierarchy: 1 - m_AllowConstantClipSamplingOptimization: 1 - m_KeepAnimatorControllerStateOnDisable: 0 diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab.meta deleted file mode 100644 index 82ee56a..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 6802f619d761cb24daeb8575283fad6d -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures.meta deleted file mode 100644 index 70708dc..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 0854c2a1a768bd64aa43e3bf2a27fb5d -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga deleted file mode 100644 index a25c92e..0000000 Binary files a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga and /dev/null differ diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga.meta deleted file mode 100644 index 852d67f..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 4dc74c74c3fc3e742973e051645df04e -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: -1 - maxTextureSize: 1024 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 1024 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga deleted file mode 100644 index c477bcb..0000000 Binary files a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga and /dev/null differ diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga.meta deleted file mode 100644 index a7aa065..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 6b4cc5c7898088a419e0e7849b296642 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 0 - linearTexture: 1 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 1 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: -1 - maxTextureSize: 1024 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 1 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 1024 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga deleted file mode 100644 index 8d9a6bd..0000000 Binary files a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga and /dev/null differ diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga.meta deleted file mode 100644 index 14c6416..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: f490189485fe4c54c9552a31183d49e1 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: -1 - maxTextureSize: 1024 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 1024 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx deleted file mode 100644 index 5b33078..0000000 Binary files a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx and /dev/null differ diff --git a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx.meta b/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx.meta deleted file mode 100644 index 6a1ad94..0000000 --- a/CollectionProj/Assets/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx.meta +++ /dev/null @@ -1,126 +0,0 @@ -fileFormatVersion: 2 -guid: 139350fa370c32f418d8eb7bae022427 -ModelImporter: - serializedVersion: 19301 - internalIDToNameTable: - - first: - 1: 100000 - second: //RootNode - - first: - 4: 400000 - second: //RootNode - - first: - 23: 2300000 - second: //RootNode - - first: - 33: 3300000 - second: //RootNode - - first: - 43: 4300000 - second: Refinery_part_09 - - first: - 43: 4300002 - second: oil_refinery_09 - - first: - 64: 6400000 - second: //RootNode - - first: - 95: 9500000 - second: //RootNode - externalObjects: - - first: - type: UnityEngine:Material - assembly: UnityEngine.CoreModule - name: oil_refinery_09_mat - second: {fileID: 2100000, guid: 69bb0fd7fafac5940a9d6e5199a0af46, type: 2} - materials: - materialImportMode: 1 - materialName: 0 - materialSearch: 1 - materialLocation: 0 - animations: - legacyGenerateAnimations: 4 - bakeSimulation: 0 - resampleCurves: 1 - optimizeGameObjects: 0 - motionNodeName: - rigImportErrors: - rigImportWarnings: - animationImportErrors: - animationImportWarnings: - animationRetargetingWarnings: - animationDoRetargetingWarnings: 0 - importAnimatedCustomProperties: 0 - importConstraints: 0 - animationCompression: 1 - animationRotationError: 0.5 - animationPositionError: 0.5 - animationScaleError: 0.5 - animationWrapMode: 0 - extraExposedTransformPaths: [] - extraUserProperties: [] - clipAnimations: [] - isReadable: 1 - meshes: - lODScreenPercentages: [] - globalScale: 1 - meshCompression: 0 - addColliders: 1 - useSRGBMaterialColor: 1 - sortHierarchyByName: 1 - importVisibility: 0 - importBlendShapes: 1 - importCameras: 0 - importLights: 0 - fileIdsGeneration: 1 - swapUVChannels: 0 - generateSecondaryUV: 0 - useFileUnits: 1 - keepQuads: 0 - weldVertices: 1 - preserveHierarchy: 0 - skinWeightsMode: 0 - maxBonesPerVertex: 4 - minBoneWeight: 0.001 - meshOptimizationFlags: -1 - indexFormat: 1 - secondaryUVAngleDistortion: 8 - secondaryUVAreaDistortion: 15 - secondaryUVHardAngle: 88 - secondaryUVPackMargin: 39 - useFileScale: 0 - tangentSpace: - normalSmoothAngle: 60 - normalImportMode: 0 - tangentImportMode: 4 - normalCalculationMode: 0 - legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 1 - blendShapeNormalImportMode: 1 - normalSmoothingSource: 0 - referencedClips: [] - importAnimation: 1 - humanDescription: - serializedVersion: 3 - human: [] - skeleton: [] - armTwist: 0.5 - foreArmTwist: 0.5 - upperLegTwist: 0.5 - legTwist: 0.5 - armStretch: 0.05 - legStretch: 0.05 - feetSpacing: 0 - globalScale: 1 - rootMotionBoneName: - hasTranslationDoF: 0 - hasExtraRoot: 0 - skeletonHasParents: 0 - lastHumanDescriptionAvatarSource: {instanceID: 0} - autoGenerateAvatarMappingIfUnspecified: 1 - animationType: 2 - humanoidOversampling: 1 - avatarSetup: 1 - additionalBone: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/CollectionProj/Assets/ModelUVViewer/Screenshot~/ModelUVView.png b/CollectionProj/Assets/ModelUVViewer/Screenshot~/ModelUVView.png deleted file mode 100644 index 5e672ad..0000000 Binary files a/CollectionProj/Assets/ModelUVViewer/Screenshot~/ModelUVView.png and /dev/null differ diff --git a/CollectionProj/Assets/Resources.meta b/CollectionProj/Assets/Resources.meta new file mode 100644 index 0000000..97432ea --- /dev/null +++ b/CollectionProj/Assets/Resources.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7e84d15733e37b841a522915306e1187 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/ThirdParty.meta b/CollectionProj/Assets/ThirdParty.meta new file mode 100644 index 0000000..1a77039 --- /dev/null +++ b/CollectionProj/Assets/ThirdParty.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: be6fdd910a7456e4ab9accf69d955094 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools.meta b/CollectionProj/Assets/Tools.meta new file mode 100644 index 0000000..b9d1d34 --- /dev/null +++ b/CollectionProj/Assets/Tools.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 853bab1297a9b014982b2ede1a0e9f1a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/BoundViewer.meta b/CollectionProj/Assets/Tools/BoundViewer.meta new file mode 100644 index 0000000..0b2f517 --- /dev/null +++ b/CollectionProj/Assets/Tools/BoundViewer.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a7b3c5b2ae15176449d39af2e2211607 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/BoundViewer/BoundViewer.cs b/CollectionProj/Assets/Tools/BoundViewer/BoundViewer.cs new file mode 100644 index 0000000..e883ba8 --- /dev/null +++ b/CollectionProj/Assets/Tools/BoundViewer/BoundViewer.cs @@ -0,0 +1,34 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class BoundViewer : MonoBehaviour +{ + + private Mesh m_Mesh; + + private void OnEnable() + { + if (m_Mesh != null) + return; + MeshFilter renderer = GetComponentInChildren(); + if(renderer) + { + m_Mesh = renderer.sharedMesh; + } + } + + public void OnDrawGizmos() + { + OnEnable(); + if (m_Mesh != null) + { + Bounds bound = m_Mesh.bounds; + bound.center = Vector3.Scale(bound.center, transform.localScale) + transform.position; + bound.size = Vector3.Scale(bound.size, transform.localScale); + Gizmos.DrawWireCube(bound.center, bound.size); + UnityEditor.Handles.Label(transform.position, bound.size.ToString()); + } + } + +} diff --git a/CollectionProj/Assets/Tools/BoundViewer/BoundViewer.cs.meta b/CollectionProj/Assets/Tools/BoundViewer/BoundViewer.cs.meta new file mode 100644 index 0000000..4a13821 --- /dev/null +++ b/CollectionProj/Assets/Tools/BoundViewer/BoundViewer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: df642a63a3dc3554896b906373599a7b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/BoundViewer/BoundViewer_Test.unity b/CollectionProj/Assets/Tools/BoundViewer/BoundViewer_Test.unity new file mode 100644 index 0000000..77ce938 --- /dev/null +++ b/CollectionProj/Assets/Tools/BoundViewer/BoundViewer_Test.unity @@ -0,0 +1,373 @@ +%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: 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, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + 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_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 &577176758 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 577176761} + - component: {fileID: 577176760} + - component: {fileID: 577176759} + 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 &577176759 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 577176758} + m_Enabled: 1 +--- !u!20 &577176760 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 577176758} + 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: 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 &577176761 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 577176758} + 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!1 &672262070 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 672262072} + - component: {fileID: 672262071} + 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 &672262071 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 672262070} + m_Enabled: 1 + serializedVersion: 10 + m_Type: 1 + m_Shape: 0 + m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_InnerSpotAngle: 21.80208 + 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_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_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &672262072 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 672262070} + 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} +--- !u!1001 &1449717241 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 100000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_Name + value: oil_refinery_09 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalPosition.x + value: 26.133648 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalPosition.y + value: 12.686165 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalPosition.z + value: 16.838438 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} +--- !u!1 &1449717242 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 100000, guid: 139350fa370c32f418d8eb7bae022427, + type: 3} + m_PrefabInstance: {fileID: 1449717241} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1449717243 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1449717242} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: df642a63a3dc3554896b906373599a7b, type: 3} + m_Name: + m_EditorClassIdentifier: diff --git a/CollectionProj/Assets/Tools/BoundViewer/BoundViewer_Test.unity.meta b/CollectionProj/Assets/Tools/BoundViewer/BoundViewer_Test.unity.meta new file mode 100644 index 0000000..da19b75 --- /dev/null +++ b/CollectionProj/Assets/Tools/BoundViewer/BoundViewer_Test.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: bb3324efa8e9c144181d01ce11e61e2a +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/BoundViewer/Screenshot~/BoundViewer.png b/CollectionProj/Assets/Tools/BoundViewer/Screenshot~/BoundViewer.png new file mode 100644 index 0000000..927f60c Binary files /dev/null and b/CollectionProj/Assets/Tools/BoundViewer/Screenshot~/BoundViewer.png differ diff --git a/CollectionProj/Assets/Tools/CustomBaking.meta b/CollectionProj/Assets/Tools/CustomBaking.meta new file mode 100644 index 0000000..194bf69 --- /dev/null +++ b/CollectionProj/Assets/Tools/CustomBaking.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a677bd8ebba88034f9d0acf419dd8dd9 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/CustomBaking/Editor.meta b/CollectionProj/Assets/Tools/CustomBaking/Editor.meta new file mode 100644 index 0000000..96feaed --- /dev/null +++ b/CollectionProj/Assets/Tools/CustomBaking/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9193a2a29e6da2e41957a66b2123324b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/CustomBaking/Editor/Baker.cs b/CollectionProj/Assets/Tools/CustomBaking/Editor/Baker.cs new file mode 100644 index 0000000..61a23b4 --- /dev/null +++ b/CollectionProj/Assets/Tools/CustomBaking/Editor/Baker.cs @@ -0,0 +1,13 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using System.Threading; + +namespace CustomBaking +{ + public class Baker + { + Thread m_Thread; + + } +} diff --git a/CollectionProj/Assets/Tools/CustomBaking/Editor/Baker.cs.meta b/CollectionProj/Assets/Tools/CustomBaking/Editor/Baker.cs.meta new file mode 100644 index 0000000..57711da --- /dev/null +++ b/CollectionProj/Assets/Tools/CustomBaking/Editor/Baker.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 335bcffb42af35b49ad644f0e343187d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/CustomBaking/Editor/BakingJobBase.cs b/CollectionProj/Assets/Tools/CustomBaking/Editor/BakingJobBase.cs new file mode 100644 index 0000000..2df8723 --- /dev/null +++ b/CollectionProj/Assets/Tools/CustomBaking/Editor/BakingJobBase.cs @@ -0,0 +1,12 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace CustomBaking +{ + public abstract class BakingJobBase + { + + + } +} diff --git a/CollectionProj/Assets/Tools/CustomBaking/Editor/BakingJobBase.cs.meta b/CollectionProj/Assets/Tools/CustomBaking/Editor/BakingJobBase.cs.meta new file mode 100644 index 0000000..545a840 --- /dev/null +++ b/CollectionProj/Assets/Tools/CustomBaking/Editor/BakingJobBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 68bf3017cba44ac4abf4ccd1b54865ec +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/CustomBaking/Editor/CustomBakingEditor.cs b/CollectionProj/Assets/Tools/CustomBaking/Editor/CustomBakingEditor.cs new file mode 100644 index 0000000..5d9e434 --- /dev/null +++ b/CollectionProj/Assets/Tools/CustomBaking/Editor/CustomBakingEditor.cs @@ -0,0 +1,41 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEditor; + +namespace CustomBaking +{ + + public static class CustomBakingMenu + { + [MenuItem("CustomBaking/Open Window")] + static void OpenCustomBaking() + { + + } + + [MenuItem("CustomBaking/Help")] + static void Help() + { + + } + + [MenuItem("CustomBaking/About")] + static void About() + { + + } + } + + public class CustomBakingEditor : EditorWindow + { + + + public void OnGUI() + { + + } + + } + +} \ No newline at end of file diff --git a/CollectionProj/Assets/Tools/CustomBaking/Editor/CustomBakingEditor.cs.meta b/CollectionProj/Assets/Tools/CustomBaking/Editor/CustomBakingEditor.cs.meta new file mode 100644 index 0000000..1c116d4 --- /dev/null +++ b/CollectionProj/Assets/Tools/CustomBaking/Editor/CustomBakingEditor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b6278f62bac0a1041b2e6f3033afa150 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/CustomBaking/Test.unity b/CollectionProj/Assets/Tools/CustomBaking/Test.unity new file mode 100644 index 0000000..95ef598 --- /dev/null +++ b/CollectionProj/Assets/Tools/CustomBaking/Test.unity @@ -0,0 +1,655 @@ +%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: 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, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + 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_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!1001 &354785121 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: -8679921383154817045, guid: 67812ac0f1ebc8244b97b4e4ce5322a4, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 67812ac0f1ebc8244b97b4e4ce5322a4, + type: 3} + propertyPath: m_LocalPosition.y + value: 2.34 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 67812ac0f1ebc8244b97b4e4ce5322a4, + type: 3} + propertyPath: m_LocalPosition.z + value: 22.36 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 67812ac0f1ebc8244b97b4e4ce5322a4, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 67812ac0f1ebc8244b97b4e4ce5322a4, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 67812ac0f1ebc8244b97b4e4ce5322a4, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 67812ac0f1ebc8244b97b4e4ce5322a4, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 67812ac0f1ebc8244b97b4e4ce5322a4, + type: 3} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 67812ac0f1ebc8244b97b4e4ce5322a4, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 67812ac0f1ebc8244b97b4e4ce5322a4, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 67812ac0f1ebc8244b97b4e4ce5322a4, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 919132149155446097, guid: 67812ac0f1ebc8244b97b4e4ce5322a4, + type: 3} + propertyPath: m_Name + value: untitled2 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 67812ac0f1ebc8244b97b4e4ce5322a4, type: 3} +--- !u!1 &475235411 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 475235414} + - component: {fileID: 475235413} + - component: {fileID: 475235412} + 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 &475235412 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 475235411} + m_Enabled: 1 +--- !u!20 &475235413 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 475235411} + 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: 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 &475235414 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 475235411} + 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 &738508889 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: -8679921383154817045, guid: ffaf8bec095641342af6994d8108a2a2, + type: 3} + propertyPath: m_LocalPosition.x + value: -1.5578161 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ffaf8bec095641342af6994d8108a2a2, + type: 3} + propertyPath: m_LocalPosition.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ffaf8bec095641342af6994d8108a2a2, + type: 3} + propertyPath: m_LocalPosition.z + value: 28.6 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ffaf8bec095641342af6994d8108a2a2, + type: 3} + propertyPath: m_LocalRotation.x + value: -0.7071068 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ffaf8bec095641342af6994d8108a2a2, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ffaf8bec095641342af6994d8108a2a2, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ffaf8bec095641342af6994d8108a2a2, + type: 3} + propertyPath: m_LocalRotation.w + value: 0.7071067 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ffaf8bec095641342af6994d8108a2a2, + type: 3} + propertyPath: m_RootOrder + value: 5 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ffaf8bec095641342af6994d8108a2a2, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ffaf8bec095641342af6994d8108a2a2, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ffaf8bec095641342af6994d8108a2a2, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 919132149155446097, guid: ffaf8bec095641342af6994d8108a2a2, + type: 3} + propertyPath: m_Name + value: untitled3 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: ffaf8bec095641342af6994d8108a2a2, type: 3} +--- !u!1 &1343929424 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1343929428} + - component: {fileID: 1343929427} + - component: {fileID: 1343929426} + - component: {fileID: 1343929425} + m_Layer: 0 + m_Name: Cube + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!65 &1343929425 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1343929424} + 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 &1343929426 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1343929424} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + 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 +--- !u!33 &1343929427 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1343929424} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1343929428 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1343929424} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -35.1, y: 21.16, z: 2.3} + 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 &1579877611 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1579877613} + - component: {fileID: 1579877612} + 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 &1579877612 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1579877611} + m_Enabled: 1 + serializedVersion: 10 + m_Type: 1 + m_Shape: 0 + m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_InnerSpotAngle: 21.80208 + 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_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_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &1579877613 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1579877611} + 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} +--- !u!1001 &1647006043 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: -8679921383154817045, guid: db12279fd5fd73d42ad4c839b7a81e0e, + type: 3} + propertyPath: m_LocalPosition.x + value: 7.02 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: db12279fd5fd73d42ad4c839b7a81e0e, + type: 3} + propertyPath: m_LocalPosition.y + value: 2.15 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: db12279fd5fd73d42ad4c839b7a81e0e, + type: 3} + propertyPath: m_LocalPosition.z + value: 30.34 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: db12279fd5fd73d42ad4c839b7a81e0e, + type: 3} + propertyPath: m_LocalRotation.x + value: -0.7071068 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: db12279fd5fd73d42ad4c839b7a81e0e, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: db12279fd5fd73d42ad4c839b7a81e0e, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: db12279fd5fd73d42ad4c839b7a81e0e, + type: 3} + propertyPath: m_LocalRotation.w + value: 0.7071067 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: db12279fd5fd73d42ad4c839b7a81e0e, + type: 3} + propertyPath: m_RootOrder + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: db12279fd5fd73d42ad4c839b7a81e0e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: db12279fd5fd73d42ad4c839b7a81e0e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: db12279fd5fd73d42ad4c839b7a81e0e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 919132149155446097, guid: db12279fd5fd73d42ad4c839b7a81e0e, + type: 3} + propertyPath: m_Name + value: OneObjectTwoSubmeshes + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: db12279fd5fd73d42ad4c839b7a81e0e, type: 3} +--- !u!1001 &2075574607 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 100000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_Name + value: oil_refinery_09 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 400000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} diff --git a/CollectionProj/Assets/Tools/CustomBaking/Test.unity.meta b/CollectionProj/Assets/Tools/CustomBaking/Test.unity.meta new file mode 100644 index 0000000..d20b317 --- /dev/null +++ b/CollectionProj/Assets/Tools/CustomBaking/Test.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a936531a70053c643b17326f4919efee +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking.meta b/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking.meta new file mode 100644 index 0000000..3ddb051 --- /dev/null +++ b/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1009130d706ca044b89511ea48007852 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_directional_color.png b/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_directional_color.png new file mode 100644 index 0000000..fb1c094 Binary files /dev/null and b/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_directional_color.png differ diff --git a/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_directional_color.png.meta b/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_directional_color.png.meta new file mode 100644 index 0000000..f17bf7a --- /dev/null +++ b/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_directional_color.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 0c25d38f48c88bc419fdbbe21dbae6fb +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: -1 + wrapV: -1 + wrapW: -1 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_normal.png b/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_normal.png new file mode 100644 index 0000000..fb1c094 Binary files /dev/null and b/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_normal.png differ diff --git a/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_normal.png.meta b/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_normal.png.meta new file mode 100644 index 0000000..b390dd8 --- /dev/null +++ b/CollectionProj/Assets/Tools/CustomBaking/Test_CustomBaking/custombaking_normal.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 7d258d5904f9ea74d82f320d0983b9ca +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: -1 + wrapV: -1 + wrapW: -1 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer.meta b/CollectionProj/Assets/Tools/ModelUVViewer.meta new file mode 100644 index 0000000..f2ac988 --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 70d9af33df72f6a4da701a0ae2313e24 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Editor.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Editor.meta new file mode 100644 index 0000000..3291e9f --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a0a2833964678d745b75abcd1f64bd44 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Editor/ModelUVViewer.cs b/CollectionProj/Assets/Tools/ModelUVViewer/Editor/ModelUVViewer.cs new file mode 100644 index 0000000..3e95eac --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Editor/ModelUVViewer.cs @@ -0,0 +1,421 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEditor; +using System.IO; + + +namespace UVViwer +{ + internal class PostProcessingMesh : AssetPostprocessor + { + void OnPreprocessModel() + { + if (ModelUVViewer.s_Editor == null) + return; + ModelImporter modelImporter = assetImporter as ModelImporter; + string path = modelImporter.assetPath; + string GUID = AssetDatabase.AssetPathToGUID(path); + if (ModelUVViewer.s_Guid == GUID) + { + ModelUVViewer.ForceRepaint(); + } + } + + void OnPostprocessModel(GameObject go) + { + //return; + Mesh mesh = go.GetComponent().sharedMesh; + if (mesh) + { + Vector2[] uvs = mesh.uv2; + for (int i = 0; i < uvs.Length; ++i) + { + Vector2 uv = uvs[i]; + uv.x = Mathf.Clamp(uv.x, 0, 1); + uv.y = Mathf.Clamp(uv.y, 0, 1); + uvs[i] = uv; + } + mesh.uv2 = uvs; + } + } + + } + + public class ModelUVViewer : EditorWindow + { + [MenuItem("Assets/Model UV Viewer", true)] + static bool TryOpenModelUVViewer() + { + string[] guids = Selection.assetGUIDs; + if (guids == null || guids.Length == 0) + return false; + for (int i = 0; i < guids.Length; ++i) + { + string guid = guids[i]; + string path = AssetDatabase.GUIDToAssetPath(guid); + string extension = Path.GetExtension(path).ToLower(); + if (extension != ".fbx") + return false; + } + return true; + } + + [MenuItem("Assets/Model UV Viewer", false)] + static void OpenModelUVViewer() + { + string[] guids = Selection.assetGUIDs; + s_Mesh.Clear(); + s_MeshToAsset = new Dictionary(); + foreach (string guid in guids) + { + string path = AssetDatabase.GUIDToAssetPath(guid); + Mesh mesh = AssetDatabase.LoadAssetAtPath(path, typeof(Mesh)) as Mesh; + if (mesh != null) + { + s_Mesh.Add(mesh); + s_MeshToAsset.Add(mesh.GetHashCode(), guid); + } + } + +#if UNITY_2020 || UNITY_2021 || UNITY_2019 + if (!HasOpenInstances() || s_Editor == null) +#else + if (s_Editor == null) +#endif + { + s_Editor = GetWindow(); + s_Editor.titleContent = new GUIContent("Model UV Viewer"); + s_Editor.Show(); + } + + s_Editor.Focus(); + s_Selcted = string.Empty; + s_TargetTexture = null; + if (s_Mat == null) + { + s_Mat = new Material(Shader.Find("UI/Default")); + } + if (s_UVMesh == null) + { + s_UVMesh = new Mesh(); + } + s_HashCode = 0; + s_TillingOffset = new Rect(0, 0, 1, 1); + } + + public static ModelUVViewer s_Editor; + static List s_Mesh = new List(); + + static string s_Selcted; + static int s_HashCode; + + public static string s_Guid + { + get + { + if (s_HashCode == 0) + return string.Empty; + string guid; + if (s_MeshToAsset.TryGetValue(s_HashCode, out guid)) + return guid; + return string.Empty; + } + } + + static Texture2D s_TargetTexture; + + static int s_Size = 500; + + static Vector2[] s_UV; + + // 性能太低 + //static Vector2[] s_UV + //{ + // get + // { + // Mesh mesh = GetMeshByHashCode(s_HashCode); + // if (mesh == null) + // return null; + // return GetMeshUV(mesh, s_UVIndex); + // } + //} + + static int s_UVIndex; + + static Material s_Mat; + + static Mesh s_UVMesh; + + static Rect s_TillingOffset; + + static GUIStyle s_SelectStyle; + static GUIStyle s_AlignRightText; + + public static Dictionary s_MeshToAsset = new Dictionary(); + + static IEnumerator s_ReloadUV; + + static bool s_HasWarning + { + get + { + return s_Warning != null && s_Warning != string.Empty && s_Warning.Length > 0; + } + } + static string s_Warning; + + private void OnGUI() + { + if (s_Editor == null) + return; + if (s_Mesh == null || s_Mesh.Count == 0) + return; + + if (s_SelectStyle == null) + { + s_SelectStyle = new GUIStyle(EditorStyles.miniButtonMid); + s_SelectStyle.normal.background = EditorStyles.miniButtonMid.active.background; + s_SelectStyle.normal.scaledBackgrounds = EditorStyles.miniButtonMid.active.scaledBackgrounds; + } + + if(s_AlignRightText == null) + { + s_AlignRightText = new GUIStyle(EditorStyles.label); + s_AlignRightText.alignment = TextAnchor.MiddleRight; + } + + if (Event.current.isScrollWheel) + { + Vector2 delta = Event.current.delta; + float dy = delta.y; + s_Size -= (int)dy * 10; + s_Size = Mathf.Clamp(s_Size, 350, 1000); + this.Repaint(); + } + + int xOff = 10; + int yOff = 10; + EditorGUILayout.Space(); + EditorGUILayout.HelpBox("查看模型的UV", MessageType.Info); + EditorGUILayout.Space(); + if(s_HasWarning) + { + EditorGUILayout.HelpBox(s_Warning, MessageType.Warning); + EditorGUILayout.Space(); + } + yOff = (int)EditorGUILayout.GetControlRect().y; + + for (int i = 0; i < s_Mesh.Count; ++i) + { + Mesh mesh = s_Mesh[i]; + if (mesh == null) + continue; + s_Mesh[i] = ShowMeshItem(mesh, i, new Rect(xOff, yOff, 200, 16)); + yOff += 25; + } + + GUI.Label(new Rect(xOff, yOff, 100, 20), "选择贴图:"); + yOff += 5; + s_TargetTexture = EditorGUI.ObjectField(new Rect(xOff + 100, yOff, 60, 60), s_TargetTexture, typeof(Texture2D), false) as Texture2D; + + Vector2 tilling = new Vector2(s_TillingOffset.width, s_TillingOffset.height); + Vector2 offset = new Vector2(s_TillingOffset.x, s_TillingOffset.y); + tilling = EditorGUI.Vector2Field(new Rect(xOff + 170, yOff - 5, 200, 20), "Tilling", tilling); + offset = EditorGUI.Vector2Field(new Rect(xOff + 170, yOff + 30, 200, 20), "Offset", offset); + s_TillingOffset.x = offset.x; + s_TillingOffset.y = offset.y; + s_TillingOffset.width = tilling.x; + s_TillingOffset.height = tilling.y; + + yOff += 75; + + s_Size = EditorGUI.IntSlider(new Rect(xOff, yOff, 200, 20), s_Size, 350, 1000); + EditorGUI.LabelField(new Rect(xOff + 203, yOff, 50, 20), "texels"); + + yOff += 25; + + int previewYOff = yOff; + + if (s_TargetTexture != null) + GUI.DrawTextureWithTexCoords(new Rect(xOff, yOff, s_Size, s_Size), s_TargetTexture, s_TillingOffset, false); + // EditorGUI.DrawPreviewTexture(new Rect(xOff, yOff, s_Size, s_Size), s_TargetTexture/*, s_TillingOffset, false*/); + else + GUI.DrawTextureWithTexCoords(new Rect(xOff, yOff, s_Size, s_Size), Texture2D.blackTexture, s_TillingOffset, false); + + if (s_Selcted != string.Empty && s_Selcted != "") + { + int hashCode = int.Parse(s_Selcted.Substring(0, s_Selcted.LastIndexOf("_"))); + Mesh mesh = GetMeshByHashCode(hashCode); + if (mesh != null) + { + string uvi = s_Selcted.Substring(s_Selcted.LastIndexOf("_") + 1, s_Selcted.Length - s_Selcted.LastIndexOf("_") - 1); + + GUI.Label(new Rect(xOff + s_Size - 200, yOff - 25, 200, 20), mesh.name + "." + uvi, s_AlignRightText); + + yOff += 25; + + if (s_UV != null && s_UV.Length > 0 && s_Mat != null) + { + + if (s_UVMesh == null) + s_UVMesh = new Mesh(); + if (s_UVMesh.vertices == null || s_UVMesh.vertices.Length == 0) + { + Vector3[] vertices = new Vector3[mesh.vertices.Length]; + for (int i = 0; i < vertices.Length; ++i) + { + Vector2 uv = s_UV[i]; + if ((uv.x > 1 || uv.y > 1 || uv.x < 0 || uv.y < 0) && !s_HasWarning) + s_Warning = "这套UV有超过[0,1]范围的值"; + vertices[i] = new Vector3(uv.x, 1 - uv.y, 0); + } + s_UVMesh.vertices = vertices; + s_UVMesh.triangles = mesh.triangles; + s_UVMesh.UploadMeshData(true); + } + s_Mat.SetPass(0); + s_Mat.SetColor("_Color", Color.yellow); + GL.wireframe = true; + Graphics.DrawMeshNow(s_UVMesh, Matrix4x4.TRS(new Vector3(xOff, previewYOff, 0), Quaternion.identity, new Vector3(s_Size, s_Size, 1))); + GL.wireframe = false; + } + } + } + if (s_ReloadUV != null) + { + if (!s_ReloadUV.MoveNext()) + { + s_ReloadUV = null; + } + } + } + + private Mesh ShowMeshItem(Mesh mesh, int index, Rect rect) + { + Mesh newMesh = EditorGUI.ObjectField(rect, mesh, typeof(Mesh), false) as Mesh; + if (newMesh != mesh) + return newMesh; + + float xOff = rect.x + rect.width + 10; + float yOff = rect.y; + + int hashCode = mesh.GetHashCode(); + + xOff = ShowUVButton(1, hashCode, "uv", mesh.uv, new Rect(xOff, yOff, 50, 16)); + xOff = ShowUVButton(2, hashCode, "uv2", mesh.uv2, new Rect(xOff, yOff, 50, 16)); + xOff = ShowUVButton(3, hashCode, "uv3", mesh.uv3, new Rect(xOff, yOff, 50, 16)); + xOff = ShowUVButton(4, hashCode, "uv4", mesh.uv4, new Rect(xOff, yOff, 50, 16)); +#if UNITY_2020 || UNITY_2021 || UNITY_2019 + xOff = ShowUVButton(5,hashCode, "uv5", mesh.uv5, new Rect(xOff, yOff, 50, 20)); + xOff = ShowUVButton(6,hashCode, "uv6", mesh.uv6, new Rect(xOff, yOff, 50, 20)); + xOff = ShowUVButton(7,hashCode, "uv7", mesh.uv7, new Rect(xOff, yOff, 50, 20)); + xOff = ShowUVButton(8,hashCode, "uv8", mesh.uv8, new Rect(xOff, yOff, 50, 20)); +#endif + + return mesh; + } + + private float ShowUVButton(int index, int hashCode, string name, Vector2[] uv, Rect rect) + { + if (uv == null || uv.Length == 0) + { + rect.x += 50; + return rect.x; + } + + bool isThis = s_Selcted == hashCode + "_" + name; +#if UNITY_2020 || UNITY_2021 || UNITY_2019 + Color c = GUI.color; + if(isThis) GUI.color = Color.gray; + if (GUI.Button(rect, name, EditorStyles.miniButtonMid)) +#else + if (GUI.Button(rect, name, isThis ? s_SelectStyle : EditorStyles.miniButtonMid)) +#endif + { + if (isThis) + { + s_UV = null; + s_UVIndex = 0; + s_Selcted = string.Empty; + s_HashCode = 0; + s_UVMesh = null; + s_Warning = ""; + } + else + { + s_UV = uv; + s_UVIndex = index; + s_HashCode = hashCode; + s_Selcted = hashCode + "_" + name; + s_UVMesh = null; + s_Warning = ""; + } + } +#if UNITY_2020 || UNITY_2021 || UNITY_2019 + GUI.color = c; +#endif + + rect.x += 50; + return rect.x; + } + + static Vector2[] GetMeshUV(Mesh mesh, int i) + { + switch (i) + { + case 1: return mesh.uv; + case 2: return mesh.uv2; + case 3: return mesh.uv3; + case 4: return mesh.uv4; +#if UNITY_2020 || UNITY_2021 || UNITY_2019 + case 5: return mesh.uv5; + case 6: return mesh.uv6; + case 7: return mesh.uv7; + case 8: return mesh.uv8; +#endif + default: + Debug.LogError("InValid uv index"); + return null; + } + + } + + static Mesh GetMeshByHashCode(int hashCode) + { + foreach (var mesh in s_Mesh) + { + if (mesh.GetHashCode() == hashCode) + { + return mesh; + } + } + return null; + } + + public static void ForceRepaint() + { + if (s_Editor != null) + { + s_Editor.Repaint(); + s_ReloadUV = ReloadUVNextFrame(); + s_ReloadUV.MoveNext(); + } + } + + // 需要等到导入mesh之后的下一帧才能得到最新的UV数据 + static IEnumerator ReloadUVNextFrame() + { + yield return null; + Mesh mesh = GetMeshByHashCode(s_HashCode); + if (mesh != null) + { + s_UVMesh = null; + s_UV = GetMeshUV(mesh, s_UVIndex); + s_Warning = ""; + } + } + + } + +} \ No newline at end of file diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Editor/ModelUVViewer.cs.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Editor/ModelUVViewer.cs.meta new file mode 100644 index 0000000..f3823e9 --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Editor/ModelUVViewer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e4acb38020275944bb75a749ee8eb429 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09.meta new file mode 100644 index 0000000..0e330df --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cf4084126ae057341b5667eb7adc826d +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube.fbx b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube.fbx new file mode 100644 index 0000000..a25c921 Binary files /dev/null and b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube.fbx differ diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube.fbx.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube.fbx.meta new file mode 100644 index 0000000..7dac44a --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube.fbx.meta @@ -0,0 +1,97 @@ +fileFormatVersion: 2 +guid: e844836f25841324dac8c89a76c7aaca +ModelImporter: + serializedVersion: 19301 + internalIDToNameTable: [] + externalObjects: {} + materials: + materialImportMode: 1 + materialName: 0 + materialSearch: 1 + materialLocation: 1 + animations: + legacyGenerateAnimations: 4 + bakeSimulation: 0 + resampleCurves: 1 + optimizeGameObjects: 0 + motionNodeName: + rigImportErrors: + rigImportWarnings: + animationImportErrors: + animationImportWarnings: + animationRetargetingWarnings: + animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 + animationCompression: 1 + animationRotationError: 0.5 + animationPositionError: 0.5 + animationScaleError: 0.5 + animationWrapMode: 0 + extraExposedTransformPaths: [] + extraUserProperties: [] + clipAnimations: [] + isReadable: 0 + meshes: + lODScreenPercentages: [] + globalScale: 1 + meshCompression: 0 + addColliders: 0 + useSRGBMaterialColor: 1 + sortHierarchyByName: 1 + importVisibility: 1 + importBlendShapes: 1 + importCameras: 1 + importLights: 1 + fileIdsGeneration: 2 + swapUVChannels: 0 + generateSecondaryUV: 1 + useFileUnits: 1 + keepQuads: 0 + weldVertices: 1 + preserveHierarchy: 0 + skinWeightsMode: 0 + maxBonesPerVertex: 4 + minBoneWeight: 0.001 + meshOptimizationFlags: -1 + indexFormat: 0 + secondaryUVAngleDistortion: 8 + secondaryUVAreaDistortion: 15 + secondaryUVHardAngle: 67 + secondaryUVPackMargin: 14 + useFileScale: 1 + tangentSpace: + normalSmoothAngle: 60 + normalImportMode: 0 + tangentImportMode: 3 + normalCalculationMode: 4 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 + blendShapeNormalImportMode: 1 + normalSmoothingSource: 0 + referencedClips: [] + importAnimation: 1 + humanDescription: + serializedVersion: 3 + human: [] + skeleton: [] + armTwist: 0.5 + foreArmTwist: 0.5 + upperLegTwist: 0.5 + legTwist: 0.5 + armStretch: 0.05 + legStretch: 0.05 + feetSpacing: 0 + globalScale: 1 + rootMotionBoneName: + hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 1 + lastHumanDescriptionAvatarSource: {instanceID: 0} + autoGenerateAvatarMappingIfUnspecified: 1 + animationType: 2 + humanoidOversampling: 1 + avatarSetup: 0 + additionalBone: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2.fbx b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2.fbx new file mode 100644 index 0000000..8d8dbd5 Binary files /dev/null and b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2.fbx differ diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2.fbx.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2.fbx.meta new file mode 100644 index 0000000..a3e73ae --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2.fbx.meta @@ -0,0 +1,97 @@ +fileFormatVersion: 2 +guid: 329a01ba2216d8f42bf307b7d05a2394 +ModelImporter: + serializedVersion: 19301 + internalIDToNameTable: [] + externalObjects: {} + materials: + materialImportMode: 1 + materialName: 0 + materialSearch: 1 + materialLocation: 1 + animations: + legacyGenerateAnimations: 4 + bakeSimulation: 0 + resampleCurves: 1 + optimizeGameObjects: 0 + motionNodeName: + rigImportErrors: + rigImportWarnings: + animationImportErrors: + animationImportWarnings: + animationRetargetingWarnings: + animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 + animationCompression: 1 + animationRotationError: 0.5 + animationPositionError: 0.5 + animationScaleError: 0.5 + animationWrapMode: 0 + extraExposedTransformPaths: [] + extraUserProperties: [] + clipAnimations: [] + isReadable: 0 + meshes: + lODScreenPercentages: [] + globalScale: 1 + meshCompression: 0 + addColliders: 0 + useSRGBMaterialColor: 1 + sortHierarchyByName: 1 + importVisibility: 1 + importBlendShapes: 1 + importCameras: 1 + importLights: 1 + fileIdsGeneration: 2 + swapUVChannels: 0 + generateSecondaryUV: 1 + useFileUnits: 1 + keepQuads: 0 + weldVertices: 1 + preserveHierarchy: 0 + skinWeightsMode: 0 + maxBonesPerVertex: 4 + minBoneWeight: 0.001 + meshOptimizationFlags: -1 + indexFormat: 0 + secondaryUVAngleDistortion: 8 + secondaryUVAreaDistortion: 15.000001 + secondaryUVHardAngle: 88 + secondaryUVPackMargin: 4 + useFileScale: 1 + tangentSpace: + normalSmoothAngle: 60 + normalImportMode: 0 + tangentImportMode: 3 + normalCalculationMode: 4 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 + blendShapeNormalImportMode: 1 + normalSmoothingSource: 0 + referencedClips: [] + importAnimation: 1 + humanDescription: + serializedVersion: 3 + human: [] + skeleton: [] + armTwist: 0.5 + foreArmTwist: 0.5 + upperLegTwist: 0.5 + legTwist: 0.5 + armStretch: 0.05 + legStretch: 0.05 + feetSpacing: 0 + globalScale: 1 + rootMotionBoneName: + hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 1 + lastHumanDescriptionAvatarSource: {instanceID: 0} + autoGenerateAvatarMappingIfUnspecified: 1 + animationType: 2 + humanoidOversampling: 1 + avatarSetup: 0 + additionalBone: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx new file mode 100644 index 0000000..f71a839 Binary files /dev/null and b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx differ diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx.meta new file mode 100644 index 0000000..88cc8a3 --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_02.fbx.meta @@ -0,0 +1,97 @@ +fileFormatVersion: 2 +guid: fb04d4635683a0848ab3a99029b0cc94 +ModelImporter: + serializedVersion: 19301 + internalIDToNameTable: [] + externalObjects: {} + materials: + materialImportMode: 1 + materialName: 0 + materialSearch: 1 + materialLocation: 1 + animations: + legacyGenerateAnimations: 4 + bakeSimulation: 0 + resampleCurves: 1 + optimizeGameObjects: 0 + motionNodeName: + rigImportErrors: + rigImportWarnings: + animationImportErrors: + animationImportWarnings: + animationRetargetingWarnings: + animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 + animationCompression: 1 + animationRotationError: 0.5 + animationPositionError: 0.5 + animationScaleError: 0.5 + animationWrapMode: 0 + extraExposedTransformPaths: [] + extraUserProperties: [] + clipAnimations: [] + isReadable: 0 + meshes: + lODScreenPercentages: [] + globalScale: 1 + meshCompression: 0 + addColliders: 0 + useSRGBMaterialColor: 1 + sortHierarchyByName: 1 + importVisibility: 1 + importBlendShapes: 1 + importCameras: 1 + importLights: 1 + fileIdsGeneration: 2 + swapUVChannels: 0 + generateSecondaryUV: 0 + useFileUnits: 1 + keepQuads: 0 + weldVertices: 1 + preserveHierarchy: 0 + skinWeightsMode: 0 + maxBonesPerVertex: 4 + minBoneWeight: 0.001 + meshOptimizationFlags: -1 + indexFormat: 0 + secondaryUVAngleDistortion: 8 + secondaryUVAreaDistortion: 15.000001 + secondaryUVHardAngle: 88 + secondaryUVPackMargin: 4 + useFileScale: 1 + tangentSpace: + normalSmoothAngle: 60 + normalImportMode: 0 + tangentImportMode: 3 + normalCalculationMode: 4 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 + blendShapeNormalImportMode: 1 + normalSmoothingSource: 0 + referencedClips: [] + importAnimation: 1 + humanDescription: + serializedVersion: 3 + human: [] + skeleton: [] + armTwist: 0.5 + foreArmTwist: 0.5 + upperLegTwist: 0.5 + legTwist: 0.5 + armStretch: 0.05 + legStretch: 0.05 + feetSpacing: 0 + globalScale: 1 + rootMotionBoneName: + hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 1 + lastHumanDescriptionAvatarSource: {instanceID: 0} + autoGenerateAvatarMappingIfUnspecified: 1 + animationType: 2 + humanoidOversampling: 1 + avatarSetup: 0 + additionalBone: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx new file mode 100644 index 0000000..98b16cb Binary files /dev/null and b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx differ diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx.meta new file mode 100644 index 0000000..f7273d1 --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube2_13.fbx.meta @@ -0,0 +1,97 @@ +fileFormatVersion: 2 +guid: a0f366de3bb69e74899ef23b449b5b20 +ModelImporter: + serializedVersion: 19301 + internalIDToNameTable: [] + externalObjects: {} + materials: + materialImportMode: 1 + materialName: 0 + materialSearch: 1 + materialLocation: 1 + animations: + legacyGenerateAnimations: 4 + bakeSimulation: 0 + resampleCurves: 1 + optimizeGameObjects: 0 + motionNodeName: + rigImportErrors: + rigImportWarnings: + animationImportErrors: + animationImportWarnings: + animationRetargetingWarnings: + animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 + animationCompression: 1 + animationRotationError: 0.5 + animationPositionError: 0.5 + animationScaleError: 0.5 + animationWrapMode: 0 + extraExposedTransformPaths: [] + extraUserProperties: [] + clipAnimations: [] + isReadable: 0 + meshes: + lODScreenPercentages: [] + globalScale: 1 + meshCompression: 0 + addColliders: 0 + useSRGBMaterialColor: 1 + sortHierarchyByName: 1 + importVisibility: 1 + importBlendShapes: 1 + importCameras: 1 + importLights: 1 + fileIdsGeneration: 2 + swapUVChannels: 0 + generateSecondaryUV: 0 + useFileUnits: 1 + keepQuads: 0 + weldVertices: 1 + preserveHierarchy: 0 + skinWeightsMode: 0 + maxBonesPerVertex: 4 + minBoneWeight: 0.001 + meshOptimizationFlags: -1 + indexFormat: 0 + secondaryUVAngleDistortion: 8 + secondaryUVAreaDistortion: 15.000001 + secondaryUVHardAngle: 88 + secondaryUVPackMargin: 4 + useFileScale: 1 + tangentSpace: + normalSmoothAngle: 60 + normalImportMode: 0 + tangentImportMode: 3 + normalCalculationMode: 4 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 + blendShapeNormalImportMode: 1 + normalSmoothingSource: 0 + referencedClips: [] + importAnimation: 1 + humanDescription: + serializedVersion: 3 + human: [] + skeleton: [] + armTwist: 0.5 + foreArmTwist: 0.5 + upperLegTwist: 0.5 + legTwist: 0.5 + armStretch: 0.05 + legStretch: 0.05 + feetSpacing: 0 + globalScale: 1 + rootMotionBoneName: + hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 1 + lastHumanDescriptionAvatarSource: {instanceID: 0} + autoGenerateAvatarMappingIfUnspecified: 1 + animationType: 2 + humanoidOversampling: 1 + avatarSetup: 0 + additionalBone: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube3.fbx b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube3.fbx new file mode 100644 index 0000000..db58e6e Binary files /dev/null and b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube3.fbx differ diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube3.fbx.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube3.fbx.meta new file mode 100644 index 0000000..1c021f7 --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Cube3.fbx.meta @@ -0,0 +1,97 @@ +fileFormatVersion: 2 +guid: 6fcff11a7e131804c958d9bd8173f2ed +ModelImporter: + serializedVersion: 19301 + internalIDToNameTable: [] + externalObjects: {} + materials: + materialImportMode: 1 + materialName: 0 + materialSearch: 1 + materialLocation: 1 + animations: + legacyGenerateAnimations: 4 + bakeSimulation: 0 + resampleCurves: 1 + optimizeGameObjects: 0 + motionNodeName: + rigImportErrors: + rigImportWarnings: + animationImportErrors: + animationImportWarnings: + animationRetargetingWarnings: + animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 + animationCompression: 1 + animationRotationError: 0.5 + animationPositionError: 0.5 + animationScaleError: 0.5 + animationWrapMode: 0 + extraExposedTransformPaths: [] + extraUserProperties: [] + clipAnimations: [] + isReadable: 0 + meshes: + lODScreenPercentages: [] + globalScale: 1 + meshCompression: 0 + addColliders: 0 + useSRGBMaterialColor: 1 + sortHierarchyByName: 1 + importVisibility: 1 + importBlendShapes: 1 + importCameras: 1 + importLights: 1 + fileIdsGeneration: 2 + swapUVChannels: 0 + generateSecondaryUV: 1 + useFileUnits: 1 + keepQuads: 0 + weldVertices: 1 + preserveHierarchy: 0 + skinWeightsMode: 0 + maxBonesPerVertex: 4 + minBoneWeight: 0.001 + meshOptimizationFlags: -1 + indexFormat: 0 + secondaryUVAngleDistortion: 8 + secondaryUVAreaDistortion: 15 + secondaryUVHardAngle: 50 + secondaryUVPackMargin: 14 + useFileScale: 1 + tangentSpace: + normalSmoothAngle: 60 + normalImportMode: 0 + tangentImportMode: 3 + normalCalculationMode: 4 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 + blendShapeNormalImportMode: 1 + normalSmoothingSource: 0 + referencedClips: [] + importAnimation: 1 + humanDescription: + serializedVersion: 3 + human: [] + skeleton: [] + armTwist: 0.5 + foreArmTwist: 0.5 + upperLegTwist: 0.5 + legTwist: 0.5 + armStretch: 0.05 + legStretch: 0.05 + feetSpacing: 0 + globalScale: 1 + rootMotionBoneName: + hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 1 + lastHumanDescriptionAvatarSource: {instanceID: 0} + autoGenerateAvatarMappingIfUnspecified: 1 + animationType: 2 + humanoidOversampling: 1 + avatarSetup: 0 + additionalBone: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Materials.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Materials.meta new file mode 100644 index 0000000..0c98c7f --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Materials.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a067855c81d613d4c8c5ba5a37d4e42a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat new file mode 100644 index 0000000..e2bcc9e --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat @@ -0,0 +1,34 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: oil_refinery_09_diff + m_Shader: {fileID: 4, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 2800000, guid: 6b4cc5c7898088a419e0e7849b296642, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 2800000, guid: 4dc74c74c3fc3e742973e051645df04e, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _Shininess: 0.078125 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _SpecColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat.meta new file mode 100644 index 0000000..c31bef9 --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Materials/oil_refinery_09_diff.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 69bb0fd7fafac5940a9d6e5199a0af46 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Prefabs.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Prefabs.meta new file mode 100644 index 0000000..47c7d76 --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Prefabs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cf0ab6828ff77f34cb94ace8034c1fe0 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab new file mode 100644 index 0000000..4340ff1 --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab @@ -0,0 +1,114 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &100000 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 400000} + - component: {fileID: 3300000} + - component: {fileID: 2300000} + - component: {fileID: 6400000} + - component: {fileID: 9500000} + m_Layer: 0 + m_Name: oil_refinery_09 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &400000 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 100000} + m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.054035187, y: -4.2674198e-16, z: -0.040786743} + 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!33 &3300000 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 100000} + m_Mesh: {fileID: 4300002, guid: 139350fa370c32f418d8eb7bae022427, type: 3} +--- !u!23 &2300000 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 100000} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 69bb0fd7fafac5940a9d6e5199a0af46, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + 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 +--- !u!64 &6400000 +MeshCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 100000} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Convex: 0 + m_CookingOptions: 14 + m_Mesh: {fileID: 4300002, guid: 139350fa370c32f418d8eb7bae022427, type: 3} +--- !u!95 &9500000 +Animator: + serializedVersion: 3 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 100000} + m_Enabled: 1 + m_Avatar: {fileID: 9000000, guid: 139350fa370c32f418d8eb7bae022427, type: 3} + m_Controller: {fileID: 0} + m_CullingMode: 0 + m_UpdateMode: 0 + m_ApplyRootMotion: 1 + m_LinearVelocityBlending: 0 + m_WarningMessage: + m_HasTransformHierarchy: 1 + m_AllowConstantClipSamplingOptimization: 1 + m_KeepAnimatorControllerStateOnDisable: 0 diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab.meta new file mode 100644 index 0000000..82ee56a --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Prefabs/oil_refinery_09.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6802f619d761cb24daeb8575283fad6d +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures.meta new file mode 100644 index 0000000..70708dc --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0854c2a1a768bd64aa43e3bf2a27fb5d +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga new file mode 100644 index 0000000..a25c92e Binary files /dev/null and b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga differ diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga.meta new file mode 100644 index 0000000..852d67f --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_diff.tga.meta @@ -0,0 +1,88 @@ +fileFormatVersion: 2 +guid: 4dc74c74c3fc3e742973e051645df04e +TextureImporter: + fileIDToRecycleName: {} + externalObjects: {} + serializedVersion: 9 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 1024 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: -1 + wrapV: -1 + wrapW: -1 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 2 + buildTarget: DefaultTexturePlatform + maxTextureSize: 1024 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + vertices: [] + indices: + edges: [] + weights: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga new file mode 100644 index 0000000..c477bcb Binary files /dev/null and b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga differ diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga.meta new file mode 100644 index 0000000..a7aa065 --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_nrm.tga.meta @@ -0,0 +1,88 @@ +fileFormatVersion: 2 +guid: 6b4cc5c7898088a419e0e7849b296642 +TextureImporter: + fileIDToRecycleName: {} + externalObjects: {} + serializedVersion: 9 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 0 + linearTexture: 1 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 1 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 1024 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: -1 + wrapV: -1 + wrapW: -1 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 1 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 2 + buildTarget: DefaultTexturePlatform + maxTextureSize: 1024 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + vertices: [] + indices: + edges: [] + weights: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga new file mode 100644 index 0000000..8d9a6bd Binary files /dev/null and b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga differ diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga.meta new file mode 100644 index 0000000..14c6416 --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/Textures/oil_refinery_09_spec.tga.meta @@ -0,0 +1,88 @@ +fileFormatVersion: 2 +guid: f490189485fe4c54c9552a31183d49e1 +TextureImporter: + fileIDToRecycleName: {} + externalObjects: {} + serializedVersion: 9 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 1024 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: -1 + wrapV: -1 + wrapW: -1 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 2 + buildTarget: DefaultTexturePlatform + maxTextureSize: 1024 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + vertices: [] + indices: + edges: [] + weights: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx new file mode 100644 index 0000000..5b33078 Binary files /dev/null and b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx differ diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx.meta b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx.meta new file mode 100644 index 0000000..6a1ad94 --- /dev/null +++ b/CollectionProj/Assets/Tools/ModelUVViewer/Oil_Refinery_09/oil_refinery_09.fbx.meta @@ -0,0 +1,126 @@ +fileFormatVersion: 2 +guid: 139350fa370c32f418d8eb7bae022427 +ModelImporter: + serializedVersion: 19301 + internalIDToNameTable: + - first: + 1: 100000 + second: //RootNode + - first: + 4: 400000 + second: //RootNode + - first: + 23: 2300000 + second: //RootNode + - first: + 33: 3300000 + second: //RootNode + - first: + 43: 4300000 + second: Refinery_part_09 + - first: + 43: 4300002 + second: oil_refinery_09 + - first: + 64: 6400000 + second: //RootNode + - first: + 95: 9500000 + second: //RootNode + externalObjects: + - first: + type: UnityEngine:Material + assembly: UnityEngine.CoreModule + name: oil_refinery_09_mat + second: {fileID: 2100000, guid: 69bb0fd7fafac5940a9d6e5199a0af46, type: 2} + materials: + materialImportMode: 1 + materialName: 0 + materialSearch: 1 + materialLocation: 0 + animations: + legacyGenerateAnimations: 4 + bakeSimulation: 0 + resampleCurves: 1 + optimizeGameObjects: 0 + motionNodeName: + rigImportErrors: + rigImportWarnings: + animationImportErrors: + animationImportWarnings: + animationRetargetingWarnings: + animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 + animationCompression: 1 + animationRotationError: 0.5 + animationPositionError: 0.5 + animationScaleError: 0.5 + animationWrapMode: 0 + extraExposedTransformPaths: [] + extraUserProperties: [] + clipAnimations: [] + isReadable: 1 + meshes: + lODScreenPercentages: [] + globalScale: 1 + meshCompression: 0 + addColliders: 1 + useSRGBMaterialColor: 1 + sortHierarchyByName: 1 + importVisibility: 0 + importBlendShapes: 1 + importCameras: 0 + importLights: 0 + fileIdsGeneration: 1 + swapUVChannels: 0 + generateSecondaryUV: 0 + useFileUnits: 1 + keepQuads: 0 + weldVertices: 1 + preserveHierarchy: 0 + skinWeightsMode: 0 + maxBonesPerVertex: 4 + minBoneWeight: 0.001 + meshOptimizationFlags: -1 + indexFormat: 1 + secondaryUVAngleDistortion: 8 + secondaryUVAreaDistortion: 15 + secondaryUVHardAngle: 88 + secondaryUVPackMargin: 39 + useFileScale: 0 + tangentSpace: + normalSmoothAngle: 60 + normalImportMode: 0 + tangentImportMode: 4 + normalCalculationMode: 0 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 1 + blendShapeNormalImportMode: 1 + normalSmoothingSource: 0 + referencedClips: [] + importAnimation: 1 + humanDescription: + serializedVersion: 3 + human: [] + skeleton: [] + armTwist: 0.5 + foreArmTwist: 0.5 + upperLegTwist: 0.5 + legTwist: 0.5 + armStretch: 0.05 + legStretch: 0.05 + feetSpacing: 0 + globalScale: 1 + rootMotionBoneName: + hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 0 + lastHumanDescriptionAvatarSource: {instanceID: 0} + autoGenerateAvatarMappingIfUnspecified: 1 + animationType: 2 + humanoidOversampling: 1 + avatarSetup: 1 + additionalBone: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/ModelUVViewer/Screenshot~/ModelUVView.png b/CollectionProj/Assets/Tools/ModelUVViewer/Screenshot~/ModelUVView.png new file mode 100644 index 0000000..5e672ad Binary files /dev/null and b/CollectionProj/Assets/Tools/ModelUVViewer/Screenshot~/ModelUVView.png differ diff --git a/CollectionProj/Assets/Tools/TriangleReOrder.meta b/CollectionProj/Assets/Tools/TriangleReOrder.meta new file mode 100644 index 0000000..8598cf9 --- /dev/null +++ b/CollectionProj/Assets/Tools/TriangleReOrder.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a4085aa861e415745a718e3a70d4dd66 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/TriangleReOrder/OneObject.fbx b/CollectionProj/Assets/Tools/TriangleReOrder/OneObject.fbx new file mode 100644 index 0000000..f7f07aa Binary files /dev/null and b/CollectionProj/Assets/Tools/TriangleReOrder/OneObject.fbx differ diff --git a/CollectionProj/Assets/Tools/TriangleReOrder/OneObject.fbx.meta b/CollectionProj/Assets/Tools/TriangleReOrder/OneObject.fbx.meta new file mode 100644 index 0000000..b91c828 --- /dev/null +++ b/CollectionProj/Assets/Tools/TriangleReOrder/OneObject.fbx.meta @@ -0,0 +1,97 @@ +fileFormatVersion: 2 +guid: ffaf8bec095641342af6994d8108a2a2 +ModelImporter: + serializedVersion: 19301 + internalIDToNameTable: [] + externalObjects: {} + materials: + materialImportMode: 1 + materialName: 0 + materialSearch: 1 + materialLocation: 1 + animations: + legacyGenerateAnimations: 4 + bakeSimulation: 0 + resampleCurves: 1 + optimizeGameObjects: 0 + motionNodeName: + rigImportErrors: + rigImportWarnings: + animationImportErrors: + animationImportWarnings: + animationRetargetingWarnings: + animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 + animationCompression: 1 + animationRotationError: 0.5 + animationPositionError: 0.5 + animationScaleError: 0.5 + animationWrapMode: 0 + extraExposedTransformPaths: [] + extraUserProperties: [] + clipAnimations: [] + isReadable: 0 + meshes: + lODScreenPercentages: [] + globalScale: 1 + meshCompression: 0 + addColliders: 0 + useSRGBMaterialColor: 1 + sortHierarchyByName: 1 + importVisibility: 1 + importBlendShapes: 1 + importCameras: 1 + importLights: 1 + fileIdsGeneration: 2 + swapUVChannels: 0 + generateSecondaryUV: 0 + useFileUnits: 1 + keepQuads: 0 + weldVertices: 1 + preserveHierarchy: 0 + skinWeightsMode: 0 + maxBonesPerVertex: 4 + minBoneWeight: 0.001 + meshOptimizationFlags: -1 + indexFormat: 0 + secondaryUVAngleDistortion: 8 + secondaryUVAreaDistortion: 15.000001 + secondaryUVHardAngle: 88 + secondaryUVPackMargin: 4 + useFileScale: 1 + tangentSpace: + normalSmoothAngle: 60 + normalImportMode: 0 + tangentImportMode: 3 + normalCalculationMode: 4 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 + blendShapeNormalImportMode: 1 + normalSmoothingSource: 0 + referencedClips: [] + importAnimation: 1 + humanDescription: + serializedVersion: 3 + human: [] + skeleton: [] + armTwist: 0.5 + foreArmTwist: 0.5 + upperLegTwist: 0.5 + legTwist: 0.5 + armStretch: 0.05 + legStretch: 0.05 + feetSpacing: 0 + globalScale: 1 + rootMotionBoneName: + hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 1 + lastHumanDescriptionAvatarSource: {instanceID: 0} + autoGenerateAvatarMappingIfUnspecified: 1 + animationType: 2 + humanoidOversampling: 1 + avatarSetup: 0 + additionalBone: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/TriangleReOrder/OneObjectTwoSubmeshes.fbx b/CollectionProj/Assets/Tools/TriangleReOrder/OneObjectTwoSubmeshes.fbx new file mode 100644 index 0000000..b0ce778 Binary files /dev/null and b/CollectionProj/Assets/Tools/TriangleReOrder/OneObjectTwoSubmeshes.fbx differ diff --git a/CollectionProj/Assets/Tools/TriangleReOrder/OneObjectTwoSubmeshes.fbx.meta b/CollectionProj/Assets/Tools/TriangleReOrder/OneObjectTwoSubmeshes.fbx.meta new file mode 100644 index 0000000..14a95f6 --- /dev/null +++ b/CollectionProj/Assets/Tools/TriangleReOrder/OneObjectTwoSubmeshes.fbx.meta @@ -0,0 +1,97 @@ +fileFormatVersion: 2 +guid: db12279fd5fd73d42ad4c839b7a81e0e +ModelImporter: + serializedVersion: 19301 + internalIDToNameTable: [] + externalObjects: {} + materials: + materialImportMode: 1 + materialName: 0 + materialSearch: 1 + materialLocation: 1 + animations: + legacyGenerateAnimations: 4 + bakeSimulation: 0 + resampleCurves: 1 + optimizeGameObjects: 0 + motionNodeName: + rigImportErrors: + rigImportWarnings: + animationImportErrors: + animationImportWarnings: + animationRetargetingWarnings: + animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 + animationCompression: 1 + animationRotationError: 0.5 + animationPositionError: 0.5 + animationScaleError: 0.5 + animationWrapMode: 0 + extraExposedTransformPaths: [] + extraUserProperties: [] + clipAnimations: [] + isReadable: 0 + meshes: + lODScreenPercentages: [] + globalScale: 1 + meshCompression: 0 + addColliders: 0 + useSRGBMaterialColor: 1 + sortHierarchyByName: 1 + importVisibility: 1 + importBlendShapes: 1 + importCameras: 1 + importLights: 1 + fileIdsGeneration: 2 + swapUVChannels: 0 + generateSecondaryUV: 0 + useFileUnits: 1 + keepQuads: 0 + weldVertices: 1 + preserveHierarchy: 0 + skinWeightsMode: 0 + maxBonesPerVertex: 4 + minBoneWeight: 0.001 + meshOptimizationFlags: -1 + indexFormat: 0 + secondaryUVAngleDistortion: 8 + secondaryUVAreaDistortion: 15.000001 + secondaryUVHardAngle: 88 + secondaryUVPackMargin: 4 + useFileScale: 1 + tangentSpace: + normalSmoothAngle: 60 + normalImportMode: 0 + tangentImportMode: 3 + normalCalculationMode: 4 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 + blendShapeNormalImportMode: 1 + normalSmoothingSource: 0 + referencedClips: [] + importAnimation: 1 + humanDescription: + serializedVersion: 3 + human: [] + skeleton: [] + armTwist: 0.5 + foreArmTwist: 0.5 + upperLegTwist: 0.5 + legTwist: 0.5 + armStretch: 0.05 + legStretch: 0.05 + feetSpacing: 0 + globalScale: 1 + rootMotionBoneName: + hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 1 + lastHumanDescriptionAvatarSource: {instanceID: 0} + autoGenerateAvatarMappingIfUnspecified: 1 + animationType: 2 + humanoidOversampling: 1 + avatarSetup: 0 + additionalBone: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Tools/TriangleReOrder/TwoObjects.fbx b/CollectionProj/Assets/Tools/TriangleReOrder/TwoObjects.fbx new file mode 100644 index 0000000..6783e3e Binary files /dev/null and b/CollectionProj/Assets/Tools/TriangleReOrder/TwoObjects.fbx differ diff --git a/CollectionProj/Assets/Tools/TriangleReOrder/TwoObjects.fbx.meta b/CollectionProj/Assets/Tools/TriangleReOrder/TwoObjects.fbx.meta new file mode 100644 index 0000000..31ae2a0 --- /dev/null +++ b/CollectionProj/Assets/Tools/TriangleReOrder/TwoObjects.fbx.meta @@ -0,0 +1,97 @@ +fileFormatVersion: 2 +guid: 67812ac0f1ebc8244b97b4e4ce5322a4 +ModelImporter: + serializedVersion: 19301 + internalIDToNameTable: [] + externalObjects: {} + materials: + materialImportMode: 1 + materialName: 0 + materialSearch: 1 + materialLocation: 1 + animations: + legacyGenerateAnimations: 4 + bakeSimulation: 0 + resampleCurves: 1 + optimizeGameObjects: 0 + motionNodeName: + rigImportErrors: + rigImportWarnings: + animationImportErrors: + animationImportWarnings: + animationRetargetingWarnings: + animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 + animationCompression: 1 + animationRotationError: 0.5 + animationPositionError: 0.5 + animationScaleError: 0.5 + animationWrapMode: 0 + extraExposedTransformPaths: [] + extraUserProperties: [] + clipAnimations: [] + isReadable: 0 + meshes: + lODScreenPercentages: [] + globalScale: 1 + meshCompression: 0 + addColliders: 0 + useSRGBMaterialColor: 1 + sortHierarchyByName: 1 + importVisibility: 1 + importBlendShapes: 1 + importCameras: 1 + importLights: 1 + fileIdsGeneration: 2 + swapUVChannels: 0 + generateSecondaryUV: 0 + useFileUnits: 1 + keepQuads: 0 + weldVertices: 1 + preserveHierarchy: 0 + skinWeightsMode: 0 + maxBonesPerVertex: 4 + minBoneWeight: 0.001 + meshOptimizationFlags: -1 + indexFormat: 0 + secondaryUVAngleDistortion: 8 + secondaryUVAreaDistortion: 15.000001 + secondaryUVHardAngle: 88 + secondaryUVPackMargin: 4 + useFileScale: 1 + tangentSpace: + normalSmoothAngle: 60 + normalImportMode: 0 + tangentImportMode: 3 + normalCalculationMode: 4 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 + blendShapeNormalImportMode: 1 + normalSmoothingSource: 0 + referencedClips: [] + importAnimation: 1 + humanDescription: + serializedVersion: 3 + human: [] + skeleton: [] + armTwist: 0.5 + foreArmTwist: 0.5 + upperLegTwist: 0.5 + legTwist: 0.5 + armStretch: 0.05 + legStretch: 0.05 + feetSpacing: 0 + globalScale: 1 + rootMotionBoneName: + hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 1 + lastHumanDescriptionAvatarSource: {instanceID: 0} + autoGenerateAvatarMappingIfUnspecified: 1 + animationType: 2 + humanoidOversampling: 1 + avatarSetup: 0 + additionalBone: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/CollectionProj/Assets/Utilities.meta b/CollectionProj/Assets/Utilities.meta new file mode 100644 index 0000000..0728fd3 --- /dev/null +++ b/CollectionProj/Assets/Utilities.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8778d376498e9714d9851bef8102d348 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: -- cgit v1.1-26-g67d0