├── .editorconfig ├── .github └── workflows │ ├── commitlint.yml │ ├── nightly-build.yml │ └── workflow.yml ├── .gitignore ├── .husky └── commit-msg ├── .nvmrc ├── .oyster.json ├── .releaserc ├── .travis.yml ├── Assets ├── Examples.meta ├── Examples │ ├── Scenes.meta │ ├── Scenes │ │ ├── EmptyScene 1.unity │ │ ├── EmptyScene 1.unity.meta │ │ ├── EmptyScene.unity │ │ ├── EmptyScene.unity.meta │ │ ├── IdConflictA.unity │ │ ├── IdConflictA.unity.meta │ │ ├── IdConflictB.unity │ │ ├── IdConflictB.unity.meta │ │ ├── IdConflictBSettings.lighting │ │ └── IdConflictBSettings.lighting.meta │ ├── TestPrefabWithNestedId.prefab │ ├── TestPrefabWithNestedId.prefab.meta │ ├── Tests.meta │ ├── Tests │ │ ├── Editor.meta │ │ └── Editor │ │ │ ├── ExampleVerifyIdTest.cs │ │ │ └── ExampleVerifyIdTest.cs.meta │ ├── UniqueId.prefab │ └── UniqueId.prefab.meta ├── com.fluid.unique-id.meta └── com.fluid.unique-id │ ├── CHANGELOG.md │ ├── CHANGELOG.md.meta │ ├── Documentation~ │ └── com.fluid.unique-id.md │ ├── Editor.meta │ ├── Editor │ ├── UniqueId.meta │ ├── UniqueId │ │ ├── UniqueIdEditor.cs │ │ ├── UniqueIdEditor.cs.meta │ │ ├── UniqueIdEditorEvents.cs │ │ └── UniqueIdEditorEvents.cs.meta │ ├── UniqueIdRepairs.meta │ ├── UniqueIdRepairs │ │ ├── AssetPath.cs │ │ ├── AssetPath.cs.meta │ │ ├── Components.meta │ │ ├── Components │ │ │ ├── Atoms.meta │ │ │ ├── Atoms │ │ │ │ ├── Buttons.meta │ │ │ │ └── Buttons │ │ │ │ │ ├── Button.cs │ │ │ │ │ ├── Button.cs.meta │ │ │ │ │ ├── Button.uss │ │ │ │ │ ├── Button.uss.meta │ │ │ │ │ ├── Button.uxml │ │ │ │ │ └── Button.uxml.meta │ │ │ ├── ComponentBase.cs │ │ │ ├── ComponentBase.cs.meta │ │ │ ├── Molecules.meta │ │ │ ├── Molecules │ │ │ │ ├── UniqueIdError.meta │ │ │ │ └── UniqueIdError │ │ │ │ │ ├── UniqueIdError.cs │ │ │ │ │ ├── UniqueIdError.cs.meta │ │ │ │ │ ├── UniqueIdError.uss │ │ │ │ │ ├── UniqueIdError.uss.meta │ │ │ │ │ ├── UniqueIdError.uxml │ │ │ │ │ └── UniqueIdError.uxml.meta │ │ │ ├── Organisms.meta │ │ │ ├── Organisms │ │ │ │ ├── SceneSearch.meta │ │ │ │ └── SceneSearch │ │ │ │ │ ├── SceneSearch.cs │ │ │ │ │ ├── SceneSearch.cs.meta │ │ │ │ │ ├── SceneSearch.uss │ │ │ │ │ ├── SceneSearch.uss.meta │ │ │ │ │ ├── SceneSearch.uxml │ │ │ │ │ └── SceneSearch.uxml.meta │ │ │ ├── Pages.meta │ │ │ └── Pages │ │ │ │ ├── Window.meta │ │ │ │ └── Window │ │ │ │ ├── PageWindow.cs │ │ │ │ ├── PageWindow.cs.meta │ │ │ │ ├── PageWindow.uss │ │ │ │ ├── PageWindow.uss.meta │ │ │ │ ├── PageWindow.uxml │ │ │ │ └── PageWindow.uxml.meta │ │ ├── UniqueIdRepairWindow.cs │ │ └── UniqueIdRepairWindow.cs.meta │ ├── UniqueIdReports.meta │ ├── UniqueIdReports │ │ ├── UniqueIdReporter.cs │ │ └── UniqueIdReporter.cs.meta │ ├── com.fluid.unique-id.Editor.asmdef │ └── com.fluid.unique-id.Editor.asmdef.meta │ ├── LICENSE.md │ ├── LICENSE.md.meta │ ├── README.md │ ├── README.md.meta │ ├── Runtime.meta │ ├── Runtime │ ├── IUniqueId.cs │ ├── IUniqueId.cs.meta │ ├── UniqueId.cs │ ├── UniqueId.cs.meta │ ├── com.fluid.unique-id.asmdef │ └── com.fluid.unique-id.asmdef.meta │ ├── Tests.meta │ ├── Tests │ ├── Editor.meta │ └── Editor │ │ ├── SceneGenerator.cs │ │ ├── SceneGenerator.cs.meta │ │ ├── UniqueIdRepairWindowTest.cs │ │ ├── UniqueIdRepairWindowTest.cs.meta │ │ ├── UniqueIdReportTest.cs │ │ ├── UniqueIdReportTest.cs.meta │ │ ├── com.fluid.unique-id.Editor.Tests.asmdef │ │ └── com.fluid.unique-id.Editor.Tests.asmdef.meta │ ├── package.json │ └── package.json.meta ├── CHANGELOG.md ├── LICENSE.md ├── Packages ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset └── XRSettings.asset ├── README.md ├── UserSettings └── EditorUserSettings.asset ├── build.js ├── commitlint.config.js ├── images ├── banner.png ├── repair window.png └── unique-id-component.png ├── package-lock.json ├── package.json └── publish-nightly.sh /.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 4 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | 15 | [manifest.json] 16 | indent_size = 2 17 | -------------------------------------------------------------------------------- /.github/workflows/commitlint.yml: -------------------------------------------------------------------------------- 1 | name: Lint Commit Messages 2 | on: [pull_request] 3 | 4 | jobs: 5 | commitlint: 6 | runs-on: ubuntu-latest 7 | steps: 8 | - uses: actions/checkout@v2 9 | with: 10 | fetch-depth: 0 11 | - uses: wagoid/commitlint-github-action@v3 12 | -------------------------------------------------------------------------------- /.github/workflows/nightly-build.yml: -------------------------------------------------------------------------------- 1 | name: Nightly Build 2 | on: 3 | push: 4 | branches: 5 | - develop 6 | jobs: 7 | deployNightly: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - uses: actions/checkout@v2 11 | - uses: actions/setup-node@v2 12 | with: 13 | node-version: '14' 14 | - run: npm install 15 | - run: npm run build 16 | - name: Deploy nightly branch 17 | run: sh ./publish-nightly.sh 18 | env: 19 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 20 | -------------------------------------------------------------------------------- /.github/workflows/workflow.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | on: push 3 | jobs: 4 | test: 5 | runs-on: ubuntu-latest 6 | steps: 7 | - uses: actions/checkout@v2 8 | - uses: actions/setup-node@v2 9 | with: 10 | node-version: '14' 11 | - run: npm install 12 | - run: npm run build 13 | - name: Release 14 | env: 15 | NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 16 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 17 | run: npm run semantic-release 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | Assets/AssetStoreTools* 7 | 8 | # Visual Studio cache directory 9 | /.vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | 26 | # Unity3D generated meta files 27 | *.pidb.meta 28 | *.pdb.meta 29 | 30 | # Unity3D Generated File On Crash Reports 31 | sysinfo.txt 32 | 33 | # Builds 34 | *.apk 35 | *.unitypackage 36 | /Logs/Packages-Update.log 37 | Logs/ 38 | CodeCoverage/ 39 | 40 | # Node.js 41 | node_modules 42 | dist 43 | dist.zip 44 | 45 | # Project Specific 46 | UIElementsSchema 47 | -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx --no-install commitlint --edit 5 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 14.16.0 2 | -------------------------------------------------------------------------------- /.oyster.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A micro-framework for managing unique IDs across scenes", 3 | "displayName": "Fluid Unique ID", 4 | "keywords": [ 5 | "unique id", 6 | "unity", 7 | "guid" 8 | ], 9 | "oysterVersion": "2.1.0", 10 | "packageName": "com.fluid.unique-id", 11 | "packageScope": "com.fluid", 12 | "unityVersion": "", 13 | "author": { 14 | "name": "Ash Blue", 15 | "email": "ash@clevercrowgames.com", 16 | "url": "https://twitter.com/ashbluewd" 17 | }, 18 | "repo": { 19 | "gitUrl": "https://github.com/ashblue/fluid-unique-id", 20 | "gitUrlNoHttp": "github.com/ashblue/fluid-unique-id" 21 | } 22 | } -------------------------------------------------------------------------------- /.releaserc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "@semantic-release/commit-analyzer", 4 | "@semantic-release/release-notes-generator", 5 | "@semantic-release/changelog", 6 | [ 7 | "@semantic-release/npm", 8 | { 9 | "npmPublish": false 10 | } 11 | ], 12 | [ 13 | "@semantic-release/exec", 14 | { 15 | "publishCmd": "npm run build" 16 | } 17 | ], 18 | [ 19 | "@semantic-release/npm", 20 | { 21 | "pkgRoot": "Assets/com.fluid.unique-id" 22 | } 23 | ], 24 | [ 25 | "@semantic-release/git", 26 | { 27 | "assets": [ 28 | "CHANGELOG.md", 29 | "package.json", 30 | "package-lock.json", 31 | "npm-shrinkwrap.json", 32 | "Assets/**/*" 33 | ] 34 | } 35 | ], 36 | "@semantic-release/github" 37 | ] 38 | } 39 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "node" 4 | install: 5 | - npm install 6 | script: 7 | - commitlint-travis 8 | - npm run build 9 | - npm run semantic-release 10 | deploy: 11 | - provider: script 12 | skip_cleanup: true 13 | script: bash publish-nightly.sh 14 | on: 15 | branch: develop 16 | -------------------------------------------------------------------------------- /Assets/Examples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 053a7592f28b54f50aecd69ce29da479 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Examples/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a042efabe9180d40bd17bf3e0ddbca0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Examples/Scenes/EmptyScene 1.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 12 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_LightingSettings: {fileID: 0} 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | maxJobWorkers: 0 122 | preserveTilesOutsideBounds: 0 123 | debug: 124 | m_Flags: 0 125 | m_NavMeshData: {fileID: 0} 126 | --- !u!1 &515546823 127 | GameObject: 128 | m_ObjectHideFlags: 0 129 | m_CorrespondingSourceObject: {fileID: 0} 130 | m_PrefabInstance: {fileID: 0} 131 | m_PrefabAsset: {fileID: 0} 132 | serializedVersion: 6 133 | m_Component: 134 | - component: {fileID: 515546826} 135 | - component: {fileID: 515546825} 136 | - component: {fileID: 515546824} 137 | m_Layer: 0 138 | m_Name: Main Camera 139 | m_TagString: MainCamera 140 | m_Icon: {fileID: 0} 141 | m_NavMeshLayer: 0 142 | m_StaticEditorFlags: 0 143 | m_IsActive: 1 144 | --- !u!81 &515546824 145 | AudioListener: 146 | m_ObjectHideFlags: 0 147 | m_CorrespondingSourceObject: {fileID: 0} 148 | m_PrefabInstance: {fileID: 0} 149 | m_PrefabAsset: {fileID: 0} 150 | m_GameObject: {fileID: 515546823} 151 | m_Enabled: 1 152 | --- !u!20 &515546825 153 | Camera: 154 | m_ObjectHideFlags: 0 155 | m_CorrespondingSourceObject: {fileID: 0} 156 | m_PrefabInstance: {fileID: 0} 157 | m_PrefabAsset: {fileID: 0} 158 | m_GameObject: {fileID: 515546823} 159 | m_Enabled: 1 160 | serializedVersion: 2 161 | m_ClearFlags: 1 162 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 163 | m_projectionMatrixMode: 1 164 | m_GateFitMode: 2 165 | m_FOVAxisMode: 0 166 | m_SensorSize: {x: 36, y: 24} 167 | m_LensShift: {x: 0, y: 0} 168 | m_FocalLength: 50 169 | m_NormalizedViewPortRect: 170 | serializedVersion: 2 171 | x: 0 172 | y: 0 173 | width: 1 174 | height: 1 175 | near clip plane: 0.3 176 | far clip plane: 1000 177 | field of view: 60 178 | orthographic: 0 179 | orthographic size: 5 180 | m_Depth: -1 181 | m_CullingMask: 182 | serializedVersion: 2 183 | m_Bits: 4294967295 184 | m_RenderingPath: -1 185 | m_TargetTexture: {fileID: 0} 186 | m_TargetDisplay: 0 187 | m_TargetEye: 3 188 | m_HDR: 1 189 | m_AllowMSAA: 1 190 | m_AllowDynamicResolution: 0 191 | m_ForceIntoRT: 0 192 | m_OcclusionCulling: 1 193 | m_StereoConvergence: 10 194 | m_StereoSeparation: 0.022 195 | --- !u!4 &515546826 196 | Transform: 197 | m_ObjectHideFlags: 0 198 | m_CorrespondingSourceObject: {fileID: 0} 199 | m_PrefabInstance: {fileID: 0} 200 | m_PrefabAsset: {fileID: 0} 201 | m_GameObject: {fileID: 515546823} 202 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 203 | m_LocalPosition: {x: 0, y: 1, z: -10} 204 | m_LocalScale: {x: 1, y: 1, z: 1} 205 | m_Children: [] 206 | m_Father: {fileID: 0} 207 | m_RootOrder: 0 208 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 209 | --- !u!1 &746282325 210 | GameObject: 211 | m_ObjectHideFlags: 0 212 | m_CorrespondingSourceObject: {fileID: 0} 213 | m_PrefabInstance: {fileID: 0} 214 | m_PrefabAsset: {fileID: 0} 215 | serializedVersion: 6 216 | m_Component: 217 | - component: {fileID: 746282327} 218 | - component: {fileID: 746282326} 219 | m_Layer: 0 220 | m_Name: Directional Light 221 | m_TagString: Untagged 222 | m_Icon: {fileID: 0} 223 | m_NavMeshLayer: 0 224 | m_StaticEditorFlags: 0 225 | m_IsActive: 1 226 | --- !u!108 &746282326 227 | Light: 228 | m_ObjectHideFlags: 0 229 | m_CorrespondingSourceObject: {fileID: 0} 230 | m_PrefabInstance: {fileID: 0} 231 | m_PrefabAsset: {fileID: 0} 232 | m_GameObject: {fileID: 746282325} 233 | m_Enabled: 1 234 | serializedVersion: 10 235 | m_Type: 1 236 | m_Shape: 0 237 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 238 | m_Intensity: 1 239 | m_Range: 10 240 | m_SpotAngle: 30 241 | m_InnerSpotAngle: 21.80208 242 | m_CookieSize: 10 243 | m_Shadows: 244 | m_Type: 2 245 | m_Resolution: -1 246 | m_CustomResolution: -1 247 | m_Strength: 1 248 | m_Bias: 0.05 249 | m_NormalBias: 0.4 250 | m_NearPlane: 0.2 251 | m_CullingMatrixOverride: 252 | e00: 1 253 | e01: 0 254 | e02: 0 255 | e03: 0 256 | e10: 0 257 | e11: 1 258 | e12: 0 259 | e13: 0 260 | e20: 0 261 | e21: 0 262 | e22: 1 263 | e23: 0 264 | e30: 0 265 | e31: 0 266 | e32: 0 267 | e33: 1 268 | m_UseCullingMatrixOverride: 0 269 | m_Cookie: {fileID: 0} 270 | m_DrawHalo: 0 271 | m_Flare: {fileID: 0} 272 | m_RenderMode: 0 273 | m_CullingMask: 274 | serializedVersion: 2 275 | m_Bits: 4294967295 276 | m_RenderingLayerMask: 1 277 | m_Lightmapping: 4 278 | m_LightShadowCasterMode: 0 279 | m_AreaSize: {x: 1, y: 1} 280 | m_BounceIntensity: 1 281 | m_ColorTemperature: 6570 282 | m_UseColorTemperature: 0 283 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 284 | m_UseBoundingSphereOverride: 0 285 | m_UseViewFrustumForShadowCasterCull: 1 286 | m_ShadowRadius: 0 287 | m_ShadowAngle: 0 288 | --- !u!4 &746282327 289 | Transform: 290 | m_ObjectHideFlags: 0 291 | m_CorrespondingSourceObject: {fileID: 0} 292 | m_PrefabInstance: {fileID: 0} 293 | m_PrefabAsset: {fileID: 0} 294 | m_GameObject: {fileID: 746282325} 295 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 296 | m_LocalPosition: {x: 0, y: 3, z: 0} 297 | m_LocalScale: {x: 1, y: 1, z: 1} 298 | m_Children: [] 299 | m_Father: {fileID: 0} 300 | m_RootOrder: 1 301 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 302 | --- !u!1001 &2071590225 303 | PrefabInstance: 304 | m_ObjectHideFlags: 0 305 | serializedVersion: 2 306 | m_Modification: 307 | m_TransformParent: {fileID: 0} 308 | m_Modifications: 309 | - target: {fileID: 5090260310457406982, guid: aca84a60cf788494e9ef69168d39c98e, 310 | type: 3} 311 | propertyPath: _id 312 | value: 413e2202-eb7c-40d6-9f99-fc4430541a48 313 | objectReference: {fileID: 0} 314 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 315 | type: 3} 316 | propertyPath: m_RootOrder 317 | value: 2 318 | objectReference: {fileID: 0} 319 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 320 | type: 3} 321 | propertyPath: m_LocalPosition.x 322 | value: 0 323 | objectReference: {fileID: 0} 324 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 325 | type: 3} 326 | propertyPath: m_LocalPosition.y 327 | value: 0 328 | objectReference: {fileID: 0} 329 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 330 | type: 3} 331 | propertyPath: m_LocalPosition.z 332 | value: 0 333 | objectReference: {fileID: 0} 334 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 335 | type: 3} 336 | propertyPath: m_LocalRotation.w 337 | value: 1 338 | objectReference: {fileID: 0} 339 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 340 | type: 3} 341 | propertyPath: m_LocalRotation.x 342 | value: 0 343 | objectReference: {fileID: 0} 344 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 345 | type: 3} 346 | propertyPath: m_LocalRotation.y 347 | value: 0 348 | objectReference: {fileID: 0} 349 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 350 | type: 3} 351 | propertyPath: m_LocalRotation.z 352 | value: 0 353 | objectReference: {fileID: 0} 354 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 355 | type: 3} 356 | propertyPath: m_LocalEulerAnglesHint.x 357 | value: 0 358 | objectReference: {fileID: 0} 359 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 360 | type: 3} 361 | propertyPath: m_LocalEulerAnglesHint.y 362 | value: 0 363 | objectReference: {fileID: 0} 364 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 365 | type: 3} 366 | propertyPath: m_LocalEulerAnglesHint.z 367 | value: 0 368 | objectReference: {fileID: 0} 369 | - target: {fileID: 5090260310457407001, guid: aca84a60cf788494e9ef69168d39c98e, 370 | type: 3} 371 | propertyPath: m_Name 372 | value: UniqueId 373 | objectReference: {fileID: 0} 374 | m_RemovedComponents: [] 375 | m_SourcePrefab: {fileID: 100100000, guid: aca84a60cf788494e9ef69168d39c98e, type: 3} 376 | --- !u!1001 &5434366987946727473 377 | PrefabInstance: 378 | m_ObjectHideFlags: 0 379 | serializedVersion: 2 380 | m_Modification: 381 | m_TransformParent: {fileID: 0} 382 | m_Modifications: 383 | - target: {fileID: 3213615138362123785, guid: 314be6b36380bf248baf75e2aca72521, 384 | type: 3} 385 | propertyPath: _id 386 | value: 627d5099-4fd6-4e67-8b76-bf3b9384335d 387 | objectReference: {fileID: 0} 388 | - target: {fileID: 5378599273528800465, guid: 314be6b36380bf248baf75e2aca72521, 389 | type: 3} 390 | propertyPath: m_Name 391 | value: TestPrefab 392 | objectReference: {fileID: 0} 393 | - target: {fileID: 8555174756624659057, guid: 314be6b36380bf248baf75e2aca72521, 394 | type: 3} 395 | propertyPath: m_RootOrder 396 | value: 3 397 | objectReference: {fileID: 0} 398 | - target: {fileID: 8555174756624659057, guid: 314be6b36380bf248baf75e2aca72521, 399 | type: 3} 400 | propertyPath: m_LocalPosition.x 401 | value: 0 402 | objectReference: {fileID: 0} 403 | - target: {fileID: 8555174756624659057, guid: 314be6b36380bf248baf75e2aca72521, 404 | type: 3} 405 | propertyPath: m_LocalPosition.y 406 | value: 0 407 | objectReference: {fileID: 0} 408 | - target: {fileID: 8555174756624659057, guid: 314be6b36380bf248baf75e2aca72521, 409 | type: 3} 410 | propertyPath: m_LocalPosition.z 411 | value: 0 412 | objectReference: {fileID: 0} 413 | - target: {fileID: 8555174756624659057, guid: 314be6b36380bf248baf75e2aca72521, 414 | type: 3} 415 | propertyPath: m_LocalRotation.w 416 | value: 1 417 | objectReference: {fileID: 0} 418 | - target: {fileID: 8555174756624659057, guid: 314be6b36380bf248baf75e2aca72521, 419 | type: 3} 420 | propertyPath: m_LocalRotation.x 421 | value: 0 422 | objectReference: {fileID: 0} 423 | - target: {fileID: 8555174756624659057, guid: 314be6b36380bf248baf75e2aca72521, 424 | type: 3} 425 | propertyPath: m_LocalRotation.y 426 | value: 0 427 | objectReference: {fileID: 0} 428 | - target: {fileID: 8555174756624659057, guid: 314be6b36380bf248baf75e2aca72521, 429 | type: 3} 430 | propertyPath: m_LocalRotation.z 431 | value: 0 432 | objectReference: {fileID: 0} 433 | - target: {fileID: 8555174756624659057, guid: 314be6b36380bf248baf75e2aca72521, 434 | type: 3} 435 | propertyPath: m_LocalEulerAnglesHint.x 436 | value: 0 437 | objectReference: {fileID: 0} 438 | - target: {fileID: 8555174756624659057, guid: 314be6b36380bf248baf75e2aca72521, 439 | type: 3} 440 | propertyPath: m_LocalEulerAnglesHint.y 441 | value: 0 442 | objectReference: {fileID: 0} 443 | - target: {fileID: 8555174756624659057, guid: 314be6b36380bf248baf75e2aca72521, 444 | type: 3} 445 | propertyPath: m_LocalEulerAnglesHint.z 446 | value: 0 447 | objectReference: {fileID: 0} 448 | m_RemovedComponents: [] 449 | m_SourcePrefab: {fileID: 100100000, guid: 314be6b36380bf248baf75e2aca72521, type: 3} 450 | -------------------------------------------------------------------------------- /Assets/Examples/Scenes/EmptyScene 1.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c34f3930931b1924994ea8f79fa8e7f6 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Examples/Scenes/EmptyScene.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_UseShadowmask: 1 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | debug: 122 | m_Flags: 0 123 | m_NavMeshData: {fileID: 0} 124 | --- !u!1 &515546823 125 | GameObject: 126 | m_ObjectHideFlags: 0 127 | m_CorrespondingSourceObject: {fileID: 0} 128 | m_PrefabInstance: {fileID: 0} 129 | m_PrefabAsset: {fileID: 0} 130 | serializedVersion: 6 131 | m_Component: 132 | - component: {fileID: 515546826} 133 | - component: {fileID: 515546825} 134 | - component: {fileID: 515546824} 135 | m_Layer: 0 136 | m_Name: Main Camera 137 | m_TagString: MainCamera 138 | m_Icon: {fileID: 0} 139 | m_NavMeshLayer: 0 140 | m_StaticEditorFlags: 0 141 | m_IsActive: 1 142 | --- !u!81 &515546824 143 | AudioListener: 144 | m_ObjectHideFlags: 0 145 | m_CorrespondingSourceObject: {fileID: 0} 146 | m_PrefabInstance: {fileID: 0} 147 | m_PrefabAsset: {fileID: 0} 148 | m_GameObject: {fileID: 515546823} 149 | m_Enabled: 1 150 | --- !u!20 &515546825 151 | Camera: 152 | m_ObjectHideFlags: 0 153 | m_CorrespondingSourceObject: {fileID: 0} 154 | m_PrefabInstance: {fileID: 0} 155 | m_PrefabAsset: {fileID: 0} 156 | m_GameObject: {fileID: 515546823} 157 | m_Enabled: 1 158 | serializedVersion: 2 159 | m_ClearFlags: 1 160 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 161 | m_projectionMatrixMode: 1 162 | m_GateFitMode: 2 163 | m_FOVAxisMode: 0 164 | m_SensorSize: {x: 36, y: 24} 165 | m_LensShift: {x: 0, y: 0} 166 | m_FocalLength: 50 167 | m_NormalizedViewPortRect: 168 | serializedVersion: 2 169 | x: 0 170 | y: 0 171 | width: 1 172 | height: 1 173 | near clip plane: 0.3 174 | far clip plane: 1000 175 | field of view: 60 176 | orthographic: 0 177 | orthographic size: 5 178 | m_Depth: -1 179 | m_CullingMask: 180 | serializedVersion: 2 181 | m_Bits: 4294967295 182 | m_RenderingPath: -1 183 | m_TargetTexture: {fileID: 0} 184 | m_TargetDisplay: 0 185 | m_TargetEye: 3 186 | m_HDR: 1 187 | m_AllowMSAA: 1 188 | m_AllowDynamicResolution: 0 189 | m_ForceIntoRT: 0 190 | m_OcclusionCulling: 1 191 | m_StereoConvergence: 10 192 | m_StereoSeparation: 0.022 193 | --- !u!4 &515546826 194 | Transform: 195 | m_ObjectHideFlags: 0 196 | m_CorrespondingSourceObject: {fileID: 0} 197 | m_PrefabInstance: {fileID: 0} 198 | m_PrefabAsset: {fileID: 0} 199 | m_GameObject: {fileID: 515546823} 200 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 201 | m_LocalPosition: {x: 0, y: 1, z: -10} 202 | m_LocalScale: {x: 1, y: 1, z: 1} 203 | m_Children: [] 204 | m_Father: {fileID: 0} 205 | m_RootOrder: 0 206 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 207 | --- !u!1 &746282325 208 | GameObject: 209 | m_ObjectHideFlags: 0 210 | m_CorrespondingSourceObject: {fileID: 0} 211 | m_PrefabInstance: {fileID: 0} 212 | m_PrefabAsset: {fileID: 0} 213 | serializedVersion: 6 214 | m_Component: 215 | - component: {fileID: 746282327} 216 | - component: {fileID: 746282326} 217 | m_Layer: 0 218 | m_Name: Directional Light 219 | m_TagString: Untagged 220 | m_Icon: {fileID: 0} 221 | m_NavMeshLayer: 0 222 | m_StaticEditorFlags: 0 223 | m_IsActive: 1 224 | --- !u!108 &746282326 225 | Light: 226 | m_ObjectHideFlags: 0 227 | m_CorrespondingSourceObject: {fileID: 0} 228 | m_PrefabInstance: {fileID: 0} 229 | m_PrefabAsset: {fileID: 0} 230 | m_GameObject: {fileID: 746282325} 231 | m_Enabled: 1 232 | serializedVersion: 10 233 | m_Type: 1 234 | m_Shape: 0 235 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 236 | m_Intensity: 1 237 | m_Range: 10 238 | m_SpotAngle: 30 239 | m_InnerSpotAngle: 21.80208 240 | m_CookieSize: 10 241 | m_Shadows: 242 | m_Type: 2 243 | m_Resolution: -1 244 | m_CustomResolution: -1 245 | m_Strength: 1 246 | m_Bias: 0.05 247 | m_NormalBias: 0.4 248 | m_NearPlane: 0.2 249 | m_CullingMatrixOverride: 250 | e00: 1 251 | e01: 0 252 | e02: 0 253 | e03: 0 254 | e10: 0 255 | e11: 1 256 | e12: 0 257 | e13: 0 258 | e20: 0 259 | e21: 0 260 | e22: 1 261 | e23: 0 262 | e30: 0 263 | e31: 0 264 | e32: 0 265 | e33: 1 266 | m_UseCullingMatrixOverride: 0 267 | m_Cookie: {fileID: 0} 268 | m_DrawHalo: 0 269 | m_Flare: {fileID: 0} 270 | m_RenderMode: 0 271 | m_CullingMask: 272 | serializedVersion: 2 273 | m_Bits: 4294967295 274 | m_RenderingLayerMask: 1 275 | m_Lightmapping: 4 276 | m_LightShadowCasterMode: 0 277 | m_AreaSize: {x: 1, y: 1} 278 | m_BounceIntensity: 1 279 | m_ColorTemperature: 6570 280 | m_UseColorTemperature: 0 281 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 282 | m_UseBoundingSphereOverride: 0 283 | m_ShadowRadius: 0 284 | m_ShadowAngle: 0 285 | --- !u!4 &746282327 286 | Transform: 287 | m_ObjectHideFlags: 0 288 | m_CorrespondingSourceObject: {fileID: 0} 289 | m_PrefabInstance: {fileID: 0} 290 | m_PrefabAsset: {fileID: 0} 291 | m_GameObject: {fileID: 746282325} 292 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 293 | m_LocalPosition: {x: 0, y: 3, z: 0} 294 | m_LocalScale: {x: 1, y: 1, z: 1} 295 | m_Children: [] 296 | m_Father: {fileID: 0} 297 | m_RootOrder: 1 298 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 299 | -------------------------------------------------------------------------------- /Assets/Examples/Scenes/EmptyScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 359f89fa987174348b8dd9df7affea26 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Examples/Scenes/IdConflictA.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa2b89022e1bf344da2e8b63880cd4df 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Examples/Scenes/IdConflictB.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 705507994} 41 | m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 12 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_LightingSettings: {fileID: 4890085278179872738, guid: 834bcf43ae68cd246b3db31819bea4b5, 102 | type: 2} 103 | --- !u!196 &4 104 | NavMeshSettings: 105 | serializedVersion: 2 106 | m_ObjectHideFlags: 0 107 | m_BuildSettings: 108 | serializedVersion: 2 109 | agentTypeID: 0 110 | agentRadius: 0.5 111 | agentHeight: 2 112 | agentSlope: 45 113 | agentClimb: 0.4 114 | ledgeDropHeight: 0 115 | maxJumpAcrossDistance: 0 116 | minRegionArea: 2 117 | manualCellSize: 0 118 | cellSize: 0.16666667 119 | manualTileSize: 0 120 | tileSize: 256 121 | accuratePlacement: 0 122 | maxJobWorkers: 0 123 | preserveTilesOutsideBounds: 0 124 | debug: 125 | m_Flags: 0 126 | m_NavMeshData: {fileID: 0} 127 | --- !u!1001 &426970853 128 | PrefabInstance: 129 | m_ObjectHideFlags: 0 130 | serializedVersion: 2 131 | m_Modification: 132 | m_TransformParent: {fileID: 0} 133 | m_Modifications: 134 | - target: {fileID: 5090260310457406982, guid: aca84a60cf788494e9ef69168d39c98e, 135 | type: 3} 136 | propertyPath: _id 137 | value: 6923327e-efd2-4297-b059-f0b91fc54f42 138 | objectReference: {fileID: 0} 139 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 140 | type: 3} 141 | propertyPath: m_RootOrder 142 | value: 6 143 | objectReference: {fileID: 0} 144 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 145 | type: 3} 146 | propertyPath: m_LocalPosition.x 147 | value: 0 148 | objectReference: {fileID: 0} 149 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 150 | type: 3} 151 | propertyPath: m_LocalPosition.y 152 | value: 0 153 | objectReference: {fileID: 0} 154 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 155 | type: 3} 156 | propertyPath: m_LocalPosition.z 157 | value: 0 158 | objectReference: {fileID: 0} 159 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 160 | type: 3} 161 | propertyPath: m_LocalRotation.w 162 | value: 1 163 | objectReference: {fileID: 0} 164 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 165 | type: 3} 166 | propertyPath: m_LocalRotation.x 167 | value: 0 168 | objectReference: {fileID: 0} 169 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 170 | type: 3} 171 | propertyPath: m_LocalRotation.y 172 | value: 0 173 | objectReference: {fileID: 0} 174 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 175 | type: 3} 176 | propertyPath: m_LocalRotation.z 177 | value: 0 178 | objectReference: {fileID: 0} 179 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 180 | type: 3} 181 | propertyPath: m_LocalEulerAnglesHint.x 182 | value: 0 183 | objectReference: {fileID: 0} 184 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 185 | type: 3} 186 | propertyPath: m_LocalEulerAnglesHint.y 187 | value: 0 188 | objectReference: {fileID: 0} 189 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 190 | type: 3} 191 | propertyPath: m_LocalEulerAnglesHint.z 192 | value: 0 193 | objectReference: {fileID: 0} 194 | - target: {fileID: 5090260310457407001, guid: aca84a60cf788494e9ef69168d39c98e, 195 | type: 3} 196 | propertyPath: m_Name 197 | value: UniqueId (4) 198 | objectReference: {fileID: 0} 199 | m_RemovedComponents: [] 200 | m_SourcePrefab: {fileID: 100100000, guid: aca84a60cf788494e9ef69168d39c98e, type: 3} 201 | --- !u!1 &705507993 202 | GameObject: 203 | m_ObjectHideFlags: 0 204 | m_CorrespondingSourceObject: {fileID: 0} 205 | m_PrefabInstance: {fileID: 0} 206 | m_PrefabAsset: {fileID: 0} 207 | serializedVersion: 6 208 | m_Component: 209 | - component: {fileID: 705507995} 210 | - component: {fileID: 705507994} 211 | m_Layer: 0 212 | m_Name: Directional Light 213 | m_TagString: Untagged 214 | m_Icon: {fileID: 0} 215 | m_NavMeshLayer: 0 216 | m_StaticEditorFlags: 0 217 | m_IsActive: 1 218 | --- !u!108 &705507994 219 | Light: 220 | m_ObjectHideFlags: 0 221 | m_CorrespondingSourceObject: {fileID: 0} 222 | m_PrefabInstance: {fileID: 0} 223 | m_PrefabAsset: {fileID: 0} 224 | m_GameObject: {fileID: 705507993} 225 | m_Enabled: 1 226 | serializedVersion: 10 227 | m_Type: 1 228 | m_Shape: 0 229 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 230 | m_Intensity: 1 231 | m_Range: 10 232 | m_SpotAngle: 30 233 | m_InnerSpotAngle: 21.80208 234 | m_CookieSize: 10 235 | m_Shadows: 236 | m_Type: 2 237 | m_Resolution: -1 238 | m_CustomResolution: -1 239 | m_Strength: 1 240 | m_Bias: 0.05 241 | m_NormalBias: 0.4 242 | m_NearPlane: 0.2 243 | m_CullingMatrixOverride: 244 | e00: 1 245 | e01: 0 246 | e02: 0 247 | e03: 0 248 | e10: 0 249 | e11: 1 250 | e12: 0 251 | e13: 0 252 | e20: 0 253 | e21: 0 254 | e22: 1 255 | e23: 0 256 | e30: 0 257 | e31: 0 258 | e32: 0 259 | e33: 1 260 | m_UseCullingMatrixOverride: 0 261 | m_Cookie: {fileID: 0} 262 | m_DrawHalo: 0 263 | m_Flare: {fileID: 0} 264 | m_RenderMode: 0 265 | m_CullingMask: 266 | serializedVersion: 2 267 | m_Bits: 4294967295 268 | m_RenderingLayerMask: 1 269 | m_Lightmapping: 1 270 | m_LightShadowCasterMode: 0 271 | m_AreaSize: {x: 1, y: 1} 272 | m_BounceIntensity: 1 273 | m_ColorTemperature: 6570 274 | m_UseColorTemperature: 0 275 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 276 | m_UseBoundingSphereOverride: 0 277 | m_UseViewFrustumForShadowCasterCull: 1 278 | m_ShadowRadius: 0 279 | m_ShadowAngle: 0 280 | --- !u!4 &705507995 281 | Transform: 282 | m_ObjectHideFlags: 0 283 | m_CorrespondingSourceObject: {fileID: 0} 284 | m_PrefabInstance: {fileID: 0} 285 | m_PrefabAsset: {fileID: 0} 286 | m_GameObject: {fileID: 705507993} 287 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 288 | m_LocalPosition: {x: 0, y: 3, z: 0} 289 | m_LocalScale: {x: 1, y: 1, z: 1} 290 | m_Children: [] 291 | m_Father: {fileID: 0} 292 | m_RootOrder: 1 293 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 294 | --- !u!1001 &769966224 295 | PrefabInstance: 296 | m_ObjectHideFlags: 0 297 | serializedVersion: 2 298 | m_Modification: 299 | m_TransformParent: {fileID: 0} 300 | m_Modifications: 301 | - target: {fileID: 5090260310457406982, guid: aca84a60cf788494e9ef69168d39c98e, 302 | type: 3} 303 | propertyPath: _id 304 | value: 3788e793-3a28-4832-a2dd-dab5a780d2c6 305 | objectReference: {fileID: 0} 306 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 307 | type: 3} 308 | propertyPath: m_RootOrder 309 | value: 3 310 | objectReference: {fileID: 0} 311 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 312 | type: 3} 313 | propertyPath: m_LocalPosition.x 314 | value: 0 315 | objectReference: {fileID: 0} 316 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 317 | type: 3} 318 | propertyPath: m_LocalPosition.y 319 | value: 0 320 | objectReference: {fileID: 0} 321 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 322 | type: 3} 323 | propertyPath: m_LocalPosition.z 324 | value: 0 325 | objectReference: {fileID: 0} 326 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 327 | type: 3} 328 | propertyPath: m_LocalRotation.w 329 | value: 1 330 | objectReference: {fileID: 0} 331 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 332 | type: 3} 333 | propertyPath: m_LocalRotation.x 334 | value: 0 335 | objectReference: {fileID: 0} 336 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 337 | type: 3} 338 | propertyPath: m_LocalRotation.y 339 | value: 0 340 | objectReference: {fileID: 0} 341 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 342 | type: 3} 343 | propertyPath: m_LocalRotation.z 344 | value: 0 345 | objectReference: {fileID: 0} 346 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 347 | type: 3} 348 | propertyPath: m_LocalEulerAnglesHint.x 349 | value: 0 350 | objectReference: {fileID: 0} 351 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 352 | type: 3} 353 | propertyPath: m_LocalEulerAnglesHint.y 354 | value: 0 355 | objectReference: {fileID: 0} 356 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 357 | type: 3} 358 | propertyPath: m_LocalEulerAnglesHint.z 359 | value: 0 360 | objectReference: {fileID: 0} 361 | - target: {fileID: 5090260310457407001, guid: aca84a60cf788494e9ef69168d39c98e, 362 | type: 3} 363 | propertyPath: m_Name 364 | value: UniqueId (1) 365 | objectReference: {fileID: 0} 366 | m_RemovedComponents: [] 367 | m_SourcePrefab: {fileID: 100100000, guid: aca84a60cf788494e9ef69168d39c98e, type: 3} 368 | --- !u!1 &963194225 369 | GameObject: 370 | m_ObjectHideFlags: 0 371 | m_CorrespondingSourceObject: {fileID: 0} 372 | m_PrefabInstance: {fileID: 0} 373 | m_PrefabAsset: {fileID: 0} 374 | serializedVersion: 6 375 | m_Component: 376 | - component: {fileID: 963194228} 377 | - component: {fileID: 963194227} 378 | - component: {fileID: 963194226} 379 | m_Layer: 0 380 | m_Name: Main Camera 381 | m_TagString: MainCamera 382 | m_Icon: {fileID: 0} 383 | m_NavMeshLayer: 0 384 | m_StaticEditorFlags: 0 385 | m_IsActive: 1 386 | --- !u!81 &963194226 387 | AudioListener: 388 | m_ObjectHideFlags: 0 389 | m_CorrespondingSourceObject: {fileID: 0} 390 | m_PrefabInstance: {fileID: 0} 391 | m_PrefabAsset: {fileID: 0} 392 | m_GameObject: {fileID: 963194225} 393 | m_Enabled: 1 394 | --- !u!20 &963194227 395 | Camera: 396 | m_ObjectHideFlags: 0 397 | m_CorrespondingSourceObject: {fileID: 0} 398 | m_PrefabInstance: {fileID: 0} 399 | m_PrefabAsset: {fileID: 0} 400 | m_GameObject: {fileID: 963194225} 401 | m_Enabled: 1 402 | serializedVersion: 2 403 | m_ClearFlags: 1 404 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 405 | m_projectionMatrixMode: 1 406 | m_GateFitMode: 2 407 | m_FOVAxisMode: 0 408 | m_SensorSize: {x: 36, y: 24} 409 | m_LensShift: {x: 0, y: 0} 410 | m_FocalLength: 50 411 | m_NormalizedViewPortRect: 412 | serializedVersion: 2 413 | x: 0 414 | y: 0 415 | width: 1 416 | height: 1 417 | near clip plane: 0.3 418 | far clip plane: 1000 419 | field of view: 60 420 | orthographic: 0 421 | orthographic size: 5 422 | m_Depth: -1 423 | m_CullingMask: 424 | serializedVersion: 2 425 | m_Bits: 4294967295 426 | m_RenderingPath: -1 427 | m_TargetTexture: {fileID: 0} 428 | m_TargetDisplay: 0 429 | m_TargetEye: 3 430 | m_HDR: 1 431 | m_AllowMSAA: 1 432 | m_AllowDynamicResolution: 0 433 | m_ForceIntoRT: 0 434 | m_OcclusionCulling: 1 435 | m_StereoConvergence: 10 436 | m_StereoSeparation: 0.022 437 | --- !u!4 &963194228 438 | Transform: 439 | m_ObjectHideFlags: 0 440 | m_CorrespondingSourceObject: {fileID: 0} 441 | m_PrefabInstance: {fileID: 0} 442 | m_PrefabAsset: {fileID: 0} 443 | m_GameObject: {fileID: 963194225} 444 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 445 | m_LocalPosition: {x: 0, y: 1, z: -10} 446 | m_LocalScale: {x: 1, y: 1, z: 1} 447 | m_Children: [] 448 | m_Father: {fileID: 0} 449 | m_RootOrder: 0 450 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 451 | --- !u!1001 &1001993434 452 | PrefabInstance: 453 | m_ObjectHideFlags: 0 454 | serializedVersion: 2 455 | m_Modification: 456 | m_TransformParent: {fileID: 0} 457 | m_Modifications: 458 | - target: {fileID: 5090260310457406982, guid: aca84a60cf788494e9ef69168d39c98e, 459 | type: 3} 460 | propertyPath: _id 461 | value: de8807b1-da2d-474f-a743-56428c808b54 462 | objectReference: {fileID: 0} 463 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 464 | type: 3} 465 | propertyPath: m_RootOrder 466 | value: 5 467 | objectReference: {fileID: 0} 468 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 469 | type: 3} 470 | propertyPath: m_LocalPosition.x 471 | value: 0 472 | objectReference: {fileID: 0} 473 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 474 | type: 3} 475 | propertyPath: m_LocalPosition.y 476 | value: 0 477 | objectReference: {fileID: 0} 478 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 479 | type: 3} 480 | propertyPath: m_LocalPosition.z 481 | value: 0 482 | objectReference: {fileID: 0} 483 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 484 | type: 3} 485 | propertyPath: m_LocalRotation.w 486 | value: 1 487 | objectReference: {fileID: 0} 488 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 489 | type: 3} 490 | propertyPath: m_LocalRotation.x 491 | value: 0 492 | objectReference: {fileID: 0} 493 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 494 | type: 3} 495 | propertyPath: m_LocalRotation.y 496 | value: 0 497 | objectReference: {fileID: 0} 498 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 499 | type: 3} 500 | propertyPath: m_LocalRotation.z 501 | value: 0 502 | objectReference: {fileID: 0} 503 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 504 | type: 3} 505 | propertyPath: m_LocalEulerAnglesHint.x 506 | value: 0 507 | objectReference: {fileID: 0} 508 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 509 | type: 3} 510 | propertyPath: m_LocalEulerAnglesHint.y 511 | value: 0 512 | objectReference: {fileID: 0} 513 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 514 | type: 3} 515 | propertyPath: m_LocalEulerAnglesHint.z 516 | value: 0 517 | objectReference: {fileID: 0} 518 | - target: {fileID: 5090260310457407001, guid: aca84a60cf788494e9ef69168d39c98e, 519 | type: 3} 520 | propertyPath: m_Name 521 | value: UniqueId (3) 522 | objectReference: {fileID: 0} 523 | m_RemovedComponents: [] 524 | m_SourcePrefab: {fileID: 100100000, guid: aca84a60cf788494e9ef69168d39c98e, type: 3} 525 | --- !u!1001 &1952273053 526 | PrefabInstance: 527 | m_ObjectHideFlags: 0 528 | serializedVersion: 2 529 | m_Modification: 530 | m_TransformParent: {fileID: 0} 531 | m_Modifications: 532 | - target: {fileID: 5090260310457406982, guid: aca84a60cf788494e9ef69168d39c98e, 533 | type: 3} 534 | propertyPath: _id 535 | value: 56f6182b-9709-4ee6-afc9-501f3f02193e 536 | objectReference: {fileID: 0} 537 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 538 | type: 3} 539 | propertyPath: m_RootOrder 540 | value: 4 541 | objectReference: {fileID: 0} 542 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 543 | type: 3} 544 | propertyPath: m_LocalPosition.x 545 | value: 0 546 | objectReference: {fileID: 0} 547 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 548 | type: 3} 549 | propertyPath: m_LocalPosition.y 550 | value: 0 551 | objectReference: {fileID: 0} 552 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 553 | type: 3} 554 | propertyPath: m_LocalPosition.z 555 | value: 0 556 | objectReference: {fileID: 0} 557 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 558 | type: 3} 559 | propertyPath: m_LocalRotation.w 560 | value: 1 561 | objectReference: {fileID: 0} 562 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 563 | type: 3} 564 | propertyPath: m_LocalRotation.x 565 | value: 0 566 | objectReference: {fileID: 0} 567 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 568 | type: 3} 569 | propertyPath: m_LocalRotation.y 570 | value: 0 571 | objectReference: {fileID: 0} 572 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 573 | type: 3} 574 | propertyPath: m_LocalRotation.z 575 | value: 0 576 | objectReference: {fileID: 0} 577 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 578 | type: 3} 579 | propertyPath: m_LocalEulerAnglesHint.x 580 | value: 0 581 | objectReference: {fileID: 0} 582 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 583 | type: 3} 584 | propertyPath: m_LocalEulerAnglesHint.y 585 | value: 0 586 | objectReference: {fileID: 0} 587 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 588 | type: 3} 589 | propertyPath: m_LocalEulerAnglesHint.z 590 | value: 0 591 | objectReference: {fileID: 0} 592 | - target: {fileID: 5090260310457407001, guid: aca84a60cf788494e9ef69168d39c98e, 593 | type: 3} 594 | propertyPath: m_Name 595 | value: UniqueId (2) 596 | objectReference: {fileID: 0} 597 | m_RemovedComponents: [] 598 | m_SourcePrefab: {fileID: 100100000, guid: aca84a60cf788494e9ef69168d39c98e, type: 3} 599 | --- !u!1001 &5090260309372126422 600 | PrefabInstance: 601 | m_ObjectHideFlags: 0 602 | serializedVersion: 2 603 | m_Modification: 604 | m_TransformParent: {fileID: 0} 605 | m_Modifications: 606 | - target: {fileID: 5090260310457406982, guid: aca84a60cf788494e9ef69168d39c98e, 607 | type: 3} 608 | propertyPath: _id 609 | value: 56f6182b-9709-4ee6-afc9-501f3f02193e 610 | objectReference: {fileID: 0} 611 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 612 | type: 3} 613 | propertyPath: m_RootOrder 614 | value: 2 615 | objectReference: {fileID: 0} 616 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 617 | type: 3} 618 | propertyPath: m_LocalPosition.x 619 | value: 0 620 | objectReference: {fileID: 0} 621 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 622 | type: 3} 623 | propertyPath: m_LocalPosition.y 624 | value: 0 625 | objectReference: {fileID: 0} 626 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 627 | type: 3} 628 | propertyPath: m_LocalPosition.z 629 | value: 0 630 | objectReference: {fileID: 0} 631 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 632 | type: 3} 633 | propertyPath: m_LocalRotation.w 634 | value: 1 635 | objectReference: {fileID: 0} 636 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 637 | type: 3} 638 | propertyPath: m_LocalRotation.x 639 | value: 0 640 | objectReference: {fileID: 0} 641 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 642 | type: 3} 643 | propertyPath: m_LocalRotation.y 644 | value: 0 645 | objectReference: {fileID: 0} 646 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 647 | type: 3} 648 | propertyPath: m_LocalRotation.z 649 | value: 0 650 | objectReference: {fileID: 0} 651 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 652 | type: 3} 653 | propertyPath: m_LocalEulerAnglesHint.x 654 | value: 0 655 | objectReference: {fileID: 0} 656 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 657 | type: 3} 658 | propertyPath: m_LocalEulerAnglesHint.y 659 | value: 0 660 | objectReference: {fileID: 0} 661 | - target: {fileID: 5090260310457406983, guid: aca84a60cf788494e9ef69168d39c98e, 662 | type: 3} 663 | propertyPath: m_LocalEulerAnglesHint.z 664 | value: 0 665 | objectReference: {fileID: 0} 666 | - target: {fileID: 5090260310457407001, guid: aca84a60cf788494e9ef69168d39c98e, 667 | type: 3} 668 | propertyPath: m_Name 669 | value: UniqueId 670 | objectReference: {fileID: 0} 671 | m_RemovedComponents: [] 672 | m_SourcePrefab: {fileID: 100100000, guid: aca84a60cf788494e9ef69168d39c98e, type: 3} 673 | -------------------------------------------------------------------------------- /Assets/Examples/Scenes/IdConflictB.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a0390f9e85891b4192e4231eb04c612 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Examples/Scenes/IdConflictBSettings.lighting: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!850595691 &4890085278179872738 4 | LightingSettings: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: IdConflictBSettings 10 | serializedVersion: 3 11 | m_GIWorkflowMode: 1 12 | m_EnableBakedLightmaps: 1 13 | m_EnableRealtimeLightmaps: 0 14 | m_RealtimeEnvironmentLighting: 1 15 | m_BounceScale: 1 16 | m_AlbedoBoost: 1 17 | m_IndirectOutputScale: 1 18 | m_UsingShadowmask: 1 19 | m_BakeBackend: 1 20 | m_LightmapMaxSize: 1024 21 | m_BakeResolution: 40 22 | m_Padding: 2 23 | m_TextureCompression: 1 24 | m_AO: 0 25 | m_AOMaxDistance: 1 26 | m_CompAOExponent: 1 27 | m_CompAOExponentDirect: 0 28 | m_ExtractAO: 0 29 | m_MixedBakeMode: 2 30 | m_LightmapsBakeMode: 1 31 | m_FilterMode: 1 32 | m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} 33 | m_ExportTrainingData: 0 34 | m_TrainingDataDestination: TrainingData 35 | m_RealtimeResolution: 2 36 | m_ForceWhiteAlbedo: 0 37 | m_ForceUpdates: 0 38 | m_FinalGather: 0 39 | m_FinalGatherRayCount: 256 40 | m_FinalGatherFiltering: 1 41 | m_PVRCulling: 1 42 | m_PVRSampling: 1 43 | m_PVRDirectSampleCount: 32 44 | m_PVRSampleCount: 500 45 | m_PVREnvironmentSampleCount: 500 46 | m_PVREnvironmentReferencePointCount: 2048 47 | m_LightProbeSampleCountMultiplier: 4 48 | m_PVRBounces: 2 49 | m_PVRMinBounces: 2 50 | m_PVREnvironmentMIS: 0 51 | m_PVRFilteringMode: 2 52 | m_PVRDenoiserTypeDirect: 0 53 | m_PVRDenoiserTypeIndirect: 0 54 | m_PVRDenoiserTypeAO: 0 55 | m_PVRFilterTypeDirect: 0 56 | m_PVRFilterTypeIndirect: 0 57 | m_PVRFilterTypeAO: 0 58 | m_PVRFilteringGaussRadiusDirect: 1 59 | m_PVRFilteringGaussRadiusIndirect: 5 60 | m_PVRFilteringGaussRadiusAO: 2 61 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 62 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 63 | m_PVRFilteringAtrousPositionSigmaAO: 1 64 | -------------------------------------------------------------------------------- /Assets/Examples/Scenes/IdConflictBSettings.lighting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 834bcf43ae68cd246b3db31819bea4b5 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 4890085278179872738 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Examples/TestPrefabWithNestedId.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &5045194516245098675 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 3918831443513428276} 12 | - component: {fileID: 3213615138362123785} 13 | m_Layer: 0 14 | m_Name: NestedId 15 | m_TagString: Untagged 16 | m_Icon: {fileID: 0} 17 | m_NavMeshLayer: 0 18 | m_StaticEditorFlags: 0 19 | m_IsActive: 1 20 | --- !u!4 &3918831443513428276 21 | Transform: 22 | m_ObjectHideFlags: 0 23 | m_CorrespondingSourceObject: {fileID: 0} 24 | m_PrefabInstance: {fileID: 0} 25 | m_PrefabAsset: {fileID: 0} 26 | m_GameObject: {fileID: 5045194516245098675} 27 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 28 | m_LocalPosition: {x: 0, y: 0, z: 0} 29 | m_LocalScale: {x: 1, y: 1, z: 1} 30 | m_Children: [] 31 | m_Father: {fileID: 8555174756624659057} 32 | m_RootOrder: 0 33 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 34 | --- !u!114 &3213615138362123785 35 | MonoBehaviour: 36 | m_ObjectHideFlags: 0 37 | m_CorrespondingSourceObject: {fileID: 0} 38 | m_PrefabInstance: {fileID: 0} 39 | m_PrefabAsset: {fileID: 0} 40 | m_GameObject: {fileID: 5045194516245098675} 41 | m_Enabled: 1 42 | m_EditorHideFlags: 0 43 | m_Script: {fileID: 11500000, guid: 4d1796f3dc38e334ca54f2b0a067111d, type: 3} 44 | m_Name: 45 | m_EditorClassIdentifier: 46 | _id: 47 | --- !u!1 &5378599273528800465 48 | GameObject: 49 | m_ObjectHideFlags: 0 50 | m_CorrespondingSourceObject: {fileID: 0} 51 | m_PrefabInstance: {fileID: 0} 52 | m_PrefabAsset: {fileID: 0} 53 | serializedVersion: 6 54 | m_Component: 55 | - component: {fileID: 8555174756624659057} 56 | m_Layer: 0 57 | m_Name: TestPrefabWithNestedId 58 | m_TagString: Untagged 59 | m_Icon: {fileID: 0} 60 | m_NavMeshLayer: 0 61 | m_StaticEditorFlags: 0 62 | m_IsActive: 1 63 | --- !u!4 &8555174756624659057 64 | Transform: 65 | m_ObjectHideFlags: 0 66 | m_CorrespondingSourceObject: {fileID: 0} 67 | m_PrefabInstance: {fileID: 0} 68 | m_PrefabAsset: {fileID: 0} 69 | m_GameObject: {fileID: 5378599273528800465} 70 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 71 | m_LocalPosition: {x: 0, y: 0, z: 0} 72 | m_LocalScale: {x: 1, y: 1, z: 1} 73 | m_Children: 74 | - {fileID: 3918831443513428276} 75 | m_Father: {fileID: 0} 76 | m_RootOrder: 0 77 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 78 | -------------------------------------------------------------------------------- /Assets/Examples/TestPrefabWithNestedId.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 314be6b36380bf248baf75e2aca72521 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Examples/Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2d4037c43c37c849ac3c531dfe7f431 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Examples/Tests/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c639cf3e09884e059d147c6626b04ac3 3 | timeCreated: 1584824442 -------------------------------------------------------------------------------- /Assets/Examples/Tests/Editor/ExampleVerifyIdTest.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace CleverCrow.Fluid.UniqueIds.Examples { 4 | public class ExampleVerifyIdTest { 5 | [Test] 6 | public void It_should_detect_invalid_IDs_in_the_project () { 7 | var reporter = new UniqueIdReporter("Assets/Examples"); 8 | var report = reporter.GetReport(); 9 | 10 | // Use this instead to enforce unique project IDs on your project, set to not error here for sanity reasons 11 | // Assert.AreEqual(0, report.ErrorCount); 12 | Assert.AreNotEqual(0, report.ErrorCount); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Assets/Examples/Tests/Editor/ExampleVerifyIdTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba77f088f2c83264b8d9baaa73b51a31 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Examples/UniqueId.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &5090260310457407001 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 5090260310457406983} 12 | - component: {fileID: 5090260310457406982} 13 | m_Layer: 0 14 | m_Name: UniqueId 15 | m_TagString: Untagged 16 | m_Icon: {fileID: 0} 17 | m_NavMeshLayer: 0 18 | m_StaticEditorFlags: 0 19 | m_IsActive: 1 20 | --- !u!4 &5090260310457406983 21 | Transform: 22 | m_ObjectHideFlags: 0 23 | m_CorrespondingSourceObject: {fileID: 0} 24 | m_PrefabInstance: {fileID: 0} 25 | m_PrefabAsset: {fileID: 0} 26 | m_GameObject: {fileID: 5090260310457407001} 27 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 28 | m_LocalPosition: {x: 0, y: 0, z: 0} 29 | m_LocalScale: {x: 1, y: 1, z: 1} 30 | m_Children: [] 31 | m_Father: {fileID: 0} 32 | m_RootOrder: 0 33 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 34 | --- !u!114 &5090260310457406982 35 | MonoBehaviour: 36 | m_ObjectHideFlags: 0 37 | m_CorrespondingSourceObject: {fileID: 0} 38 | m_PrefabInstance: {fileID: 0} 39 | m_PrefabAsset: {fileID: 0} 40 | m_GameObject: {fileID: 5090260310457407001} 41 | m_Enabled: 1 42 | m_EditorHideFlags: 0 43 | m_Script: {fileID: 11500000, guid: 4d1796f3dc38e334ca54f2b0a067111d, type: 3} 44 | m_Name: 45 | m_EditorClassIdentifier: 46 | _id: 47 | -------------------------------------------------------------------------------- /Assets/Examples/UniqueId.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aca84a60cf788494e9ef69168d39c98e 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6babb4e27df4a914b94f43853bd2233d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | Replaced when project is built from commit logs via Semantic Release. 2 | -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/CHANGELOG.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67ab068586d84524b823e0506b96d4e6 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Documentation~/com.fluid.unique-id.md: -------------------------------------------------------------------------------- 1 | Documentation beyond README.md goes here. 2 | -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fcbecb7b63354a54286eb9198b95baa1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueId.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48cb528cd8124ced92fa330e1e6a223f 3 | timeCreated: 1584154344 -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueId/UniqueIdEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEditor; 3 | using UnityEditor.Experimental.SceneManagement; 4 | using UnityEngine; 5 | 6 | namespace CleverCrow.Fluid.UniqueIds { 7 | [CustomEditor(typeof(UniqueId), true)] 8 | public class UniqueIdEditor : Editor { 9 | bool IsPrefabInstance => PrefabUtility.GetPrefabInstanceStatus(target) != PrefabInstanceStatus.NotAPrefab; 10 | private bool IsPrefabStage => PrefabStageUtility.GetCurrentPrefabStage() != null; 11 | bool IsPrefab => PrefabUtility.GetPrefabAssetType(target) != PrefabAssetType.NotAPrefab && !IsPrefabInstance || IsPrefabStage; 12 | 13 | public override void OnInspectorGUI () { 14 | base.OnInspectorGUI(); 15 | 16 | var idProp = serializedObject.FindProperty("_id"); 17 | var id = idProp.stringValue; 18 | 19 | GUI.enabled = false; 20 | EditorGUILayout.TextField("id", id); 21 | GUI.enabled = true; 22 | 23 | if (!IsPrefab) { 24 | EditForm(idProp); 25 | } 26 | 27 | if (IsPrefab) { 28 | if (!string.IsNullOrEmpty(id)) { 29 | idProp.stringValue = null; 30 | serializedObject.ApplyModifiedProperties(); 31 | } 32 | } 33 | } 34 | 35 | private void EditForm (SerializedProperty idProp) { 36 | if (string.IsNullOrEmpty(idProp.stringValue)) { 37 | idProp.stringValue = GetGUID(); 38 | serializedObject.ApplyModifiedProperties(); 39 | } 40 | 41 | if (GUILayout.Button("Copy ID")) { 42 | var textEditor = new TextEditor {text = idProp.stringValue}; 43 | textEditor.SelectAll(); 44 | textEditor.Copy(); 45 | } 46 | 47 | if (GUILayout.Button("Randomize ID") 48 | && EditorUtility.DisplayDialog("Randomize ID", "Are you sure, this can break existing save data", "Randomize", 49 | "Cancel")) { 50 | idProp.stringValue = GetGUID(); 51 | serializedObject.ApplyModifiedProperties(); 52 | } 53 | } 54 | 55 | private static string GetGUID () { 56 | return Guid.NewGuid().ToString(); 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueId/UniqueIdEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9597451dd8d08eb4c8c5d0b8264eaaa3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueId/UniqueIdEditorEvents.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | 4 | namespace CleverCrow.Fluid.UniqueIds { 5 | public class UniqueIdEditorEvents { 6 | [InitializeOnLoad] 7 | class UniqueIdPrefabApplyCallback { 8 | static UniqueIdPrefabApplyCallback () { 9 | PrefabUtility.prefabInstanceUpdated += OnPrefabInstanceUpdate; 10 | } 11 | 12 | static void OnPrefabInstanceUpdate (GameObject instance) { 13 | var id = instance.GetComponent(); 14 | if (id == null) return; 15 | 16 | var prefabParent = PrefabUtility.GetCorrespondingObjectFromSource(instance); 17 | if (prefabParent == null) return; 18 | 19 | var parentId = prefabParent.GetComponent(); 20 | if (parentId == null) return; 21 | 22 | var idSerializedObject = new SerializedObject(id); 23 | var idProp = idSerializedObject.FindProperty("_id"); 24 | 25 | var parentIdSerializedObject = new SerializedObject(parentId); 26 | var parentIdProp = parentIdSerializedObject.FindProperty("_id"); 27 | 28 | if (idProp.stringValue == parentIdProp.stringValue) { 29 | var prevId = idProp.stringValue; 30 | parentIdProp.stringValue = null; 31 | parentIdSerializedObject.ApplyModifiedProperties(); 32 | 33 | idProp.stringValue = prevId; 34 | idSerializedObject.ApplyModifiedProperties(); 35 | } 36 | } 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueId/UniqueIdEditorEvents.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dcf993e38dcf42b5af6fff2304148144 3 | timeCreated: 1584067740 -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueIdRepairs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 74371831b6ea45d4a92fb5e47fe30960 3 | timeCreated: 1584154411 -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueIdRepairs/AssetPath.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | 4 | namespace CleverCrow.Fluid.UniqueIds.UniqueIdRepairs { 5 | /// 6 | /// Determine if this is a package of the Unity Editor since Unity has no API to determine this 7 | /// 8 | public static class AssetPath { 9 | private const string PATH_PROJECT = "Assets/com.fluid.unique-id"; 10 | private const string PATH_PACKAGE = "Packages/com.fluid.unique-id"; 11 | 12 | private static string _basePath; 13 | 14 | public static string BasePath { 15 | get { 16 | if (_basePath != null) return _basePath; 17 | 18 | if (AssetDatabase.IsValidFolder(PATH_PACKAGE)) { 19 | _basePath = "Packages/"; 20 | return _basePath; 21 | } 22 | 23 | if (AssetDatabase.IsValidFolder(PATH_PROJECT)) { 24 | _basePath = "Assets/"; 25 | return _basePath; 26 | } 27 | 28 | Debug.LogError("Asset root could not be found"); 29 | 30 | return null; 31 | } 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueIdRepairs/AssetPath.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa4f84a669ae48e39f15f771b3107a3d 3 | timeCreated: 1584836330 -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueIdRepairs/Components.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: adbd88eb10854e4f8212f63c39855350 3 | timeCreated: 1584155897 -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueIdRepairs/Components/Atoms.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b3bb5068166c49a4979755400b7994ee 3 | timeCreated: 1584227870 -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueIdRepairs/Components/Atoms/Buttons.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 883807769bce4cbbb19b84aa48726a0e 3 | timeCreated: 1584228136 -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueIdRepairs/Components/Atoms/Buttons/Button.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine.UIElements; 3 | 4 | namespace CleverCrow.Fluid.UniqueIds.UniqueIdRepairs { 5 | public class Button : ComponentBase { 6 | public Button (VisualElement container, string text, Action callback) : base(container) { 7 | var el = container.Query(null, "a-button").First(); 8 | el.text = text; 9 | el.clicked += callback; 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueIdRepairs/Components/Atoms/Buttons/Button.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a79a868f101745cf82892025a993039a 3 | timeCreated: 1584228158 -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueIdRepairs/Components/Atoms/Buttons/Button.uss: -------------------------------------------------------------------------------- 1 | .a-button { 2 | margin: 0; 3 | } 4 | -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueIdRepairs/Components/Atoms/Buttons/Button.uss.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1198d16a025d4604bab13caf949e33b8 3 | timeCreated: 1584228944 -------------------------------------------------------------------------------- /Assets/com.fluid.unique-id/Editor/UniqueIdRepairs/Components/Atoms/Buttons/Button.uxml: -------------------------------------------------------------------------------- 1 | 2 | 3 |