├── .gitattributes ├── .gitignore ├── Assets ├── 28 Days Later.ttf ├── 28 Days Later.ttf.meta ├── Cube.prefab ├── Cube.prefab.meta ├── LittleHelperConfig.asset ├── LittleHelperConfig.asset.meta ├── Scenes.meta ├── Scenes │ ├── SampleScene.unity │ └── SampleScene.unity.meta ├── ULH.meta ├── ULH │ ├── Editor.meta │ ├── Editor │ │ ├── ComponentWatcher.cs │ │ ├── ComponentWatcher.cs.meta │ │ ├── EditorDrawString.cs │ │ ├── EditorDrawString.cs.meta │ │ ├── FeatureSet.cs │ │ ├── FeatureSet.cs.meta │ │ ├── Features.meta │ │ ├── Features │ │ │ ├── EditorHUD.cs │ │ │ ├── EditorHUD.cs.meta │ │ │ ├── MoveComponent.cs │ │ │ ├── MoveComponent.cs.meta │ │ │ ├── Multiselect.cs │ │ │ ├── Multiselect.cs.meta │ │ │ ├── ObjectHotkey.cs │ │ │ ├── ObjectHotkey.cs.meta │ │ │ ├── PasteHexColor.cs │ │ │ ├── PasteHexColor.cs.meta │ │ │ ├── PastePropertiesExt.cs │ │ │ ├── PastePropertiesExt.cs.meta │ │ │ ├── ScriptTemplate.cs │ │ │ └── ScriptTemplate.cs.meta │ │ ├── LastPropertyData.cs │ │ ├── LastPropertyData.cs.meta │ │ ├── LittleHelperConfig.cs │ │ ├── LittleHelperConfig.cs.meta │ │ ├── UITextUtility.cs │ │ ├── UITextUtility.cs.meta │ │ ├── Util.meta │ │ └── Util │ │ │ ├── SelectionExt.cs │ │ │ └── SelectionExt.cs.meta │ ├── ObjectHotkeySetup.cs │ └── ObjectHotkeySetup.cs.meta ├── icomoon.ttf ├── icomoon.ttf.meta ├── orange juice 2.0.ttf └── orange juice 2.0.ttf.meta ├── Logs └── Packages-Update.log ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset └── XRSettings.asset ├── README.md ├── gif ├── autofit.gif ├── drag.gif ├── keep_selection.gif ├── move_to_top.gif ├── quickselect.gif ├── sticktoground.gif ├── textdata.gif └── ui_arrow.gif ├── img ├── config.png ├── ruler.png └── sizeview.png └── video ├── autofit.mp4 ├── keep_selection.mp4 ├── move_to_top.mp4 └── ui_arrow.mp4 /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | /Assets/AssetStoreTools* 7 | 8 | # Visual Studio 2015 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 | 27 | # Unity3D generated meta files 28 | *.pidb.meta 29 | 30 | # Unity3D Generated File On Crash Reports 31 | sysinfo.txt 32 | 33 | # Builds 34 | *.apk 35 | *.unitypackage 36 | 37 | # ========================= 38 | # Operating System Files 39 | # ========================= 40 | 41 | # Windows 42 | # ========================= 43 | 44 | # Windows thumbnail cache files 45 | Thumbs.db 46 | ehthumbs.db 47 | ehthumbs_vista.db 48 | 49 | # Folder config file 50 | Desktop.ini 51 | 52 | # Recycle Bin used on file shares 53 | $RECYCLE.BIN/ 54 | 55 | # Windows Installer files 56 | *.cab 57 | *.msi 58 | *.msm 59 | *.msp 60 | 61 | # Windows shortcuts 62 | *.lnk 63 | -------------------------------------------------------------------------------- /Assets/28 Days Later.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/Assets/28 Days Later.ttf -------------------------------------------------------------------------------- /Assets/28 Days Later.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e1d26ca7c0a3cb4aafb9ddd08ed6d3f 3 | TrueTypeFontImporter: 4 | externalObjects: {} 5 | serializedVersion: 4 6 | fontSize: 16 7 | forceTextureCase: -2 8 | characterSpacing: 0 9 | characterPadding: 1 10 | includeFontData: 1 11 | fontName: 28 Days Later 12 | fontNames: 13 | - 28 Days Later 14 | fallbackFontReferences: [] 15 | customCharacters: 16 | fontRenderingMode: 0 17 | ascentCalculationMode: 1 18 | useLegacyBoundsCalculation: 0 19 | shouldRoundAdvanceValue: 1 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /Assets/Cube.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &8530425578595131857 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: 4089777665601537865} 12 | - component: {fileID: 3405410021562601807} 13 | - component: {fileID: 1136262081494627625} 14 | - component: {fileID: 8599613159410864151} 15 | m_Layer: 0 16 | m_Name: Cube 17 | m_TagString: Untagged 18 | m_Icon: {fileID: 0} 19 | m_NavMeshLayer: 0 20 | m_StaticEditorFlags: 0 21 | m_IsActive: 1 22 | --- !u!4 &4089777665601537865 23 | Transform: 24 | m_ObjectHideFlags: 0 25 | m_CorrespondingSourceObject: {fileID: 0} 26 | m_PrefabInstance: {fileID: 0} 27 | m_PrefabAsset: {fileID: 0} 28 | m_GameObject: {fileID: 8530425578595131857} 29 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 30 | m_LocalPosition: {x: 293.20755, y: 227.0251, z: -434.624} 31 | m_LocalScale: {x: 1, y: 1, z: 1} 32 | m_Children: [] 33 | m_Father: {fileID: 0} 34 | m_RootOrder: 0 35 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 36 | --- !u!33 &3405410021562601807 37 | MeshFilter: 38 | m_ObjectHideFlags: 0 39 | m_CorrespondingSourceObject: {fileID: 0} 40 | m_PrefabInstance: {fileID: 0} 41 | m_PrefabAsset: {fileID: 0} 42 | m_GameObject: {fileID: 8530425578595131857} 43 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 44 | --- !u!23 &1136262081494627625 45 | MeshRenderer: 46 | m_ObjectHideFlags: 0 47 | m_CorrespondingSourceObject: {fileID: 0} 48 | m_PrefabInstance: {fileID: 0} 49 | m_PrefabAsset: {fileID: 0} 50 | m_GameObject: {fileID: 8530425578595131857} 51 | m_Enabled: 1 52 | m_CastShadows: 1 53 | m_ReceiveShadows: 1 54 | m_DynamicOccludee: 1 55 | m_MotionVectors: 1 56 | m_LightProbeUsage: 1 57 | m_ReflectionProbeUsage: 1 58 | m_RenderingLayerMask: 1 59 | m_RendererPriority: 0 60 | m_Materials: 61 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 62 | m_StaticBatchInfo: 63 | firstSubMesh: 0 64 | subMeshCount: 0 65 | m_StaticBatchRoot: {fileID: 0} 66 | m_ProbeAnchor: {fileID: 0} 67 | m_LightProbeVolumeOverride: {fileID: 0} 68 | m_ScaleInLightmap: 1 69 | m_ReceiveGI: 1 70 | m_PreserveUVs: 0 71 | m_IgnoreNormalsForChartDetection: 0 72 | m_ImportantGI: 0 73 | m_StitchLightmapSeams: 1 74 | m_SelectedEditorRenderState: 3 75 | m_MinimumChartSize: 4 76 | m_AutoUVMaxDistance: 0.5 77 | m_AutoUVMaxAngle: 89 78 | m_LightmapParameters: {fileID: 0} 79 | m_SortingLayerID: 0 80 | m_SortingLayer: 0 81 | m_SortingOrder: 0 82 | --- !u!65 &8599613159410864151 83 | BoxCollider: 84 | m_ObjectHideFlags: 0 85 | m_CorrespondingSourceObject: {fileID: 0} 86 | m_PrefabInstance: {fileID: 0} 87 | m_PrefabAsset: {fileID: 0} 88 | m_GameObject: {fileID: 8530425578595131857} 89 | m_Material: {fileID: 0} 90 | m_IsTrigger: 0 91 | m_Enabled: 1 92 | serializedVersion: 2 93 | m_Size: {x: 1, y: 1, z: 1} 94 | m_Center: {x: 0, y: 0, z: 0} 95 | -------------------------------------------------------------------------------- /Assets/Cube.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c84262f501b38c41a2924e4f78b10d1 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/LittleHelperConfig.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 717d56d885398e845a3198bbe5d4cd64, type: 3} 13 | m_Name: LittleHelperConfig 14 | m_EditorClassIdentifier: 15 | featureSet: 16 | KeepSelectionOnInspector: 0 17 | RestoreInspectorOnDrag: 0 18 | UI_HUD: 0 19 | UI_CopyTextData: 0 20 | UI_CopyTextOutlines: 0 21 | UI_CopyTextShadows: 0 22 | UI_AutoFitSizeText: 0 23 | UI_DisableRaycastForText: 0 24 | UI_BatchModifyForText: 0 25 | UI_KeepZPosition0: 0 26 | UI_MoveByArrows: 0 27 | UI_AutoFitSizeImage: 0 28 | RemoveAudioListener: 0 29 | -------------------------------------------------------------------------------- /Assets/LittleHelperConfig.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac68c6aba6d076043a53072a930d0454 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6c19ba5c6234164f91cbdaad2c5c460 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SampleScene.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: 11 47 | m_GIWorkflowMode: 0 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: 1 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_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &468684181 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 468684182} 132 | - component: {fileID: 468684184} 133 | - component: {fileID: 468684183} 134 | m_Layer: 5 135 | m_Name: Text 136 | m_TagString: Untagged 137 | m_Icon: {fileID: 0} 138 | m_NavMeshLayer: 0 139 | m_StaticEditorFlags: 0 140 | m_IsActive: 1 141 | --- !u!224 &468684182 142 | RectTransform: 143 | m_ObjectHideFlags: 0 144 | m_CorrespondingSourceObject: {fileID: 0} 145 | m_PrefabInstance: {fileID: 0} 146 | m_PrefabAsset: {fileID: 0} 147 | m_GameObject: {fileID: 468684181} 148 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 149 | m_LocalPosition: {x: 0, y: 0, z: 0} 150 | m_LocalScale: {x: 1, y: 1, z: 1} 151 | m_Children: [] 152 | m_Father: {fileID: 792428651} 153 | m_RootOrder: 1 154 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 155 | m_AnchorMin: {x: 0.5, y: 0.5} 156 | m_AnchorMax: {x: 0.5, y: 0.5} 157 | m_AnchoredPosition: {x: -306.8, y: -83.630005} 158 | m_SizeDelta: {x: 380, y: 100} 159 | m_Pivot: {x: 0.5, y: 0.5} 160 | --- !u!114 &468684183 161 | MonoBehaviour: 162 | m_ObjectHideFlags: 0 163 | m_CorrespondingSourceObject: {fileID: 0} 164 | m_PrefabInstance: {fileID: 0} 165 | m_PrefabAsset: {fileID: 0} 166 | m_GameObject: {fileID: 468684181} 167 | m_Enabled: 1 168 | m_EditorHideFlags: 0 169 | m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} 170 | m_Name: 171 | m_EditorClassIdentifier: 172 | m_Material: {fileID: 0} 173 | m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} 174 | m_RaycastTarget: 1 175 | m_OnCullStateChanged: 176 | m_PersistentCalls: 177 | m_Calls: [] 178 | m_FontData: 179 | m_Font: {fileID: 12800000, guid: ac175e57f1c1f9f4cb55d37747644558, type: 3} 180 | m_FontSize: 100 181 | m_FontStyle: 0 182 | m_BestFit: 0 183 | m_MinSize: 1 184 | m_MaxSize: 300 185 | m_Alignment: 1 186 | m_AlignByGeometry: 0 187 | m_RichText: 1 188 | m_HorizontalOverflow: 0 189 | m_VerticalOverflow: 0 190 | m_LineSpacing: 1 191 | m_Text: asdfasdf 192 | --- !u!222 &468684184 193 | CanvasRenderer: 194 | m_ObjectHideFlags: 0 195 | m_CorrespondingSourceObject: {fileID: 0} 196 | m_PrefabInstance: {fileID: 0} 197 | m_PrefabAsset: {fileID: 0} 198 | m_GameObject: {fileID: 468684181} 199 | m_CullTransparentMesh: 0 200 | --- !u!1 &705507993 201 | GameObject: 202 | m_ObjectHideFlags: 0 203 | m_CorrespondingSourceObject: {fileID: 0} 204 | m_PrefabInstance: {fileID: 0} 205 | m_PrefabAsset: {fileID: 0} 206 | serializedVersion: 6 207 | m_Component: 208 | - component: {fileID: 705507995} 209 | - component: {fileID: 705507994} 210 | m_Layer: 0 211 | m_Name: Directional Light 212 | m_TagString: Untagged 213 | m_Icon: {fileID: 0} 214 | m_NavMeshLayer: 0 215 | m_StaticEditorFlags: 0 216 | m_IsActive: 1 217 | --- !u!108 &705507994 218 | Light: 219 | m_ObjectHideFlags: 0 220 | m_CorrespondingSourceObject: {fileID: 0} 221 | m_PrefabInstance: {fileID: 0} 222 | m_PrefabAsset: {fileID: 0} 223 | m_GameObject: {fileID: 705507993} 224 | m_Enabled: 1 225 | serializedVersion: 9 226 | m_Type: 1 227 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 228 | m_Intensity: 1 229 | m_Range: 10 230 | m_SpotAngle: 30 231 | m_InnerSpotAngle: 21.80208 232 | m_CookieSize: 10 233 | m_Shadows: 234 | m_Type: 2 235 | m_Resolution: -1 236 | m_CustomResolution: -1 237 | m_Strength: 1 238 | m_Bias: 0.05 239 | m_NormalBias: 0.4 240 | m_NearPlane: 0.2 241 | m_CullingMatrixOverride: 242 | e00: 1 243 | e01: 0 244 | e02: 0 245 | e03: 0 246 | e10: 0 247 | e11: 1 248 | e12: 0 249 | e13: 0 250 | e20: 0 251 | e21: 0 252 | e22: 1 253 | e23: 0 254 | e30: 0 255 | e31: 0 256 | e32: 0 257 | e33: 1 258 | m_UseCullingMatrixOverride: 0 259 | m_Cookie: {fileID: 0} 260 | m_DrawHalo: 0 261 | m_Flare: {fileID: 0} 262 | m_RenderMode: 0 263 | m_CullingMask: 264 | serializedVersion: 2 265 | m_Bits: 4294967295 266 | m_RenderingLayerMask: 1 267 | m_Lightmapping: 1 268 | m_LightShadowCasterMode: 0 269 | m_AreaSize: {x: 1, y: 1} 270 | m_BounceIntensity: 1 271 | m_ColorTemperature: 6570 272 | m_UseColorTemperature: 0 273 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 274 | m_UseBoundingSphereOverride: 0 275 | m_ShadowRadius: 0 276 | m_ShadowAngle: 0 277 | --- !u!4 &705507995 278 | Transform: 279 | m_ObjectHideFlags: 0 280 | m_CorrespondingSourceObject: {fileID: 0} 281 | m_PrefabInstance: {fileID: 0} 282 | m_PrefabAsset: {fileID: 0} 283 | m_GameObject: {fileID: 705507993} 284 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 285 | m_LocalPosition: {x: 0, y: 3, z: 0} 286 | m_LocalScale: {x: 1, y: 1, z: 1} 287 | m_Children: [] 288 | m_Father: {fileID: 0} 289 | m_RootOrder: 0 290 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 291 | --- !u!1 &792428647 292 | GameObject: 293 | m_ObjectHideFlags: 0 294 | m_CorrespondingSourceObject: {fileID: 0} 295 | m_PrefabInstance: {fileID: 0} 296 | m_PrefabAsset: {fileID: 0} 297 | serializedVersion: 6 298 | m_Component: 299 | - component: {fileID: 792428651} 300 | - component: {fileID: 792428650} 301 | - component: {fileID: 792428649} 302 | - component: {fileID: 792428648} 303 | m_Layer: 5 304 | m_Name: Canvas 305 | m_TagString: Untagged 306 | m_Icon: {fileID: 0} 307 | m_NavMeshLayer: 0 308 | m_StaticEditorFlags: 0 309 | m_IsActive: 1 310 | --- !u!114 &792428648 311 | MonoBehaviour: 312 | m_ObjectHideFlags: 0 313 | m_CorrespondingSourceObject: {fileID: 0} 314 | m_PrefabInstance: {fileID: 0} 315 | m_PrefabAsset: {fileID: 0} 316 | m_GameObject: {fileID: 792428647} 317 | m_Enabled: 1 318 | m_EditorHideFlags: 0 319 | m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} 320 | m_Name: 321 | m_EditorClassIdentifier: 322 | m_IgnoreReversedGraphics: 1 323 | m_BlockingObjects: 0 324 | m_BlockingMask: 325 | serializedVersion: 2 326 | m_Bits: 4294967295 327 | --- !u!114 &792428649 328 | MonoBehaviour: 329 | m_ObjectHideFlags: 0 330 | m_CorrespondingSourceObject: {fileID: 0} 331 | m_PrefabInstance: {fileID: 0} 332 | m_PrefabAsset: {fileID: 0} 333 | m_GameObject: {fileID: 792428647} 334 | m_Enabled: 1 335 | m_EditorHideFlags: 0 336 | m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} 337 | m_Name: 338 | m_EditorClassIdentifier: 339 | m_UiScaleMode: 0 340 | m_ReferencePixelsPerUnit: 100 341 | m_ScaleFactor: 1 342 | m_ReferenceResolution: {x: 800, y: 600} 343 | m_ScreenMatchMode: 0 344 | m_MatchWidthOrHeight: 0 345 | m_PhysicalUnit: 3 346 | m_FallbackScreenDPI: 96 347 | m_DefaultSpriteDPI: 96 348 | m_DynamicPixelsPerUnit: 1 349 | --- !u!223 &792428650 350 | Canvas: 351 | m_ObjectHideFlags: 0 352 | m_CorrespondingSourceObject: {fileID: 0} 353 | m_PrefabInstance: {fileID: 0} 354 | m_PrefabAsset: {fileID: 0} 355 | m_GameObject: {fileID: 792428647} 356 | m_Enabled: 1 357 | serializedVersion: 3 358 | m_RenderMode: 0 359 | m_Camera: {fileID: 0} 360 | m_PlaneDistance: 100 361 | m_PixelPerfect: 0 362 | m_ReceivesEvents: 1 363 | m_OverrideSorting: 0 364 | m_OverridePixelPerfect: 0 365 | m_SortingBucketNormalizedSize: 0 366 | m_AdditionalShaderChannelsFlag: 0 367 | m_SortingLayerID: 0 368 | m_SortingOrder: 0 369 | m_TargetDisplay: 0 370 | --- !u!224 &792428651 371 | RectTransform: 372 | m_ObjectHideFlags: 0 373 | m_CorrespondingSourceObject: {fileID: 0} 374 | m_PrefabInstance: {fileID: 0} 375 | m_PrefabAsset: {fileID: 0} 376 | m_GameObject: {fileID: 792428647} 377 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 378 | m_LocalPosition: {x: 0, y: 0, z: 0} 379 | m_LocalScale: {x: 0, y: 0, z: 0} 380 | m_Children: 381 | - {fileID: 1619176378} 382 | - {fileID: 468684182} 383 | - {fileID: 1813762131} 384 | - {fileID: 931057375} 385 | m_Father: {fileID: 0} 386 | m_RootOrder: 3 387 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 388 | m_AnchorMin: {x: 0, y: 0} 389 | m_AnchorMax: {x: 0, y: 0} 390 | m_AnchoredPosition: {x: 0, y: 0} 391 | m_SizeDelta: {x: 0, y: 0} 392 | m_Pivot: {x: 0, y: 0} 393 | --- !u!1 &931057374 394 | GameObject: 395 | m_ObjectHideFlags: 0 396 | m_CorrespondingSourceObject: {fileID: 0} 397 | m_PrefabInstance: {fileID: 0} 398 | m_PrefabAsset: {fileID: 0} 399 | serializedVersion: 6 400 | m_Component: 401 | - component: {fileID: 931057375} 402 | - component: {fileID: 931057377} 403 | - component: {fileID: 931057376} 404 | m_Layer: 5 405 | m_Name: Text (3) 406 | m_TagString: Untagged 407 | m_Icon: {fileID: 0} 408 | m_NavMeshLayer: 0 409 | m_StaticEditorFlags: 0 410 | m_IsActive: 1 411 | --- !u!224 &931057375 412 | RectTransform: 413 | m_ObjectHideFlags: 0 414 | m_CorrespondingSourceObject: {fileID: 0} 415 | m_PrefabInstance: {fileID: 0} 416 | m_PrefabAsset: {fileID: 0} 417 | m_GameObject: {fileID: 931057374} 418 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 419 | m_LocalPosition: {x: 0, y: 0, z: 0} 420 | m_LocalScale: {x: 1, y: 1, z: 1} 421 | m_Children: [] 422 | m_Father: {fileID: 792428651} 423 | m_RootOrder: 3 424 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 425 | m_AnchorMin: {x: 0.5, y: 0.5} 426 | m_AnchorMax: {x: 0.5, y: 0.5} 427 | m_AnchoredPosition: {x: 105, y: 113} 428 | m_SizeDelta: {x: 56, y: 50} 429 | m_Pivot: {x: 0.5, y: 0.5} 430 | --- !u!114 &931057376 431 | MonoBehaviour: 432 | m_ObjectHideFlags: 0 433 | m_CorrespondingSourceObject: {fileID: 0} 434 | m_PrefabInstance: {fileID: 0} 435 | m_PrefabAsset: {fileID: 0} 436 | m_GameObject: {fileID: 931057374} 437 | m_Enabled: 1 438 | m_EditorHideFlags: 0 439 | m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} 440 | m_Name: 441 | m_EditorClassIdentifier: 442 | m_Material: {fileID: 0} 443 | m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} 444 | m_RaycastTarget: 1 445 | m_OnCullStateChanged: 446 | m_PersistentCalls: 447 | m_Calls: [] 448 | m_FontData: 449 | m_Font: {fileID: 12800000, guid: ac175e57f1c1f9f4cb55d37747644558, type: 3} 450 | m_FontSize: 50 451 | m_FontStyle: 0 452 | m_BestFit: 0 453 | m_MinSize: 1 454 | m_MaxSize: 300 455 | m_Alignment: 1 456 | m_AlignByGeometry: 0 457 | m_RichText: 1 458 | m_HorizontalOverflow: 0 459 | m_VerticalOverflow: 0 460 | m_LineSpacing: 1 461 | m_Text: aa 462 | --- !u!222 &931057377 463 | CanvasRenderer: 464 | m_ObjectHideFlags: 0 465 | m_CorrespondingSourceObject: {fileID: 0} 466 | m_PrefabInstance: {fileID: 0} 467 | m_PrefabAsset: {fileID: 0} 468 | m_GameObject: {fileID: 931057374} 469 | m_CullTransparentMesh: 0 470 | --- !u!1 &963194225 471 | GameObject: 472 | m_ObjectHideFlags: 0 473 | m_CorrespondingSourceObject: {fileID: 0} 474 | m_PrefabInstance: {fileID: 0} 475 | m_PrefabAsset: {fileID: 0} 476 | serializedVersion: 6 477 | m_Component: 478 | - component: {fileID: 963194228} 479 | - component: {fileID: 963194227} 480 | - component: {fileID: 963194226} 481 | m_Layer: 0 482 | m_Name: Main Camera 483 | m_TagString: MainCamera 484 | m_Icon: {fileID: 0} 485 | m_NavMeshLayer: 0 486 | m_StaticEditorFlags: 0 487 | m_IsActive: 1 488 | --- !u!81 &963194226 489 | AudioListener: 490 | m_ObjectHideFlags: 0 491 | m_CorrespondingSourceObject: {fileID: 0} 492 | m_PrefabInstance: {fileID: 0} 493 | m_PrefabAsset: {fileID: 0} 494 | m_GameObject: {fileID: 963194225} 495 | m_Enabled: 1 496 | --- !u!20 &963194227 497 | Camera: 498 | m_ObjectHideFlags: 0 499 | m_CorrespondingSourceObject: {fileID: 0} 500 | m_PrefabInstance: {fileID: 0} 501 | m_PrefabAsset: {fileID: 0} 502 | m_GameObject: {fileID: 963194225} 503 | m_Enabled: 1 504 | serializedVersion: 2 505 | m_ClearFlags: 1 506 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 507 | m_projectionMatrixMode: 1 508 | m_GateFitMode: 2 509 | m_FOVAxisMode: 0 510 | m_SensorSize: {x: 36, y: 24} 511 | m_LensShift: {x: 0, y: 0} 512 | m_FocalLength: 50 513 | m_NormalizedViewPortRect: 514 | serializedVersion: 2 515 | x: 0 516 | y: 0 517 | width: 1 518 | height: 1 519 | near clip plane: 0.3 520 | far clip plane: 1000 521 | field of view: 60 522 | orthographic: 0 523 | orthographic size: 5 524 | m_Depth: -1 525 | m_CullingMask: 526 | serializedVersion: 2 527 | m_Bits: 4294967295 528 | m_RenderingPath: -1 529 | m_TargetTexture: {fileID: 0} 530 | m_TargetDisplay: 0 531 | m_TargetEye: 3 532 | m_HDR: 1 533 | m_AllowMSAA: 1 534 | m_AllowDynamicResolution: 0 535 | m_ForceIntoRT: 0 536 | m_OcclusionCulling: 1 537 | m_StereoConvergence: 10 538 | m_StereoSeparation: 0.022 539 | --- !u!4 &963194228 540 | Transform: 541 | m_ObjectHideFlags: 0 542 | m_CorrespondingSourceObject: {fileID: 0} 543 | m_PrefabInstance: {fileID: 0} 544 | m_PrefabAsset: {fileID: 0} 545 | m_GameObject: {fileID: 963194225} 546 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 547 | m_LocalPosition: {x: 0, y: 1, z: -10} 548 | m_LocalScale: {x: 1, y: 1, z: 1} 549 | m_Children: [] 550 | m_Father: {fileID: 0} 551 | m_RootOrder: 2 552 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 553 | --- !u!1 &1412586942 554 | GameObject: 555 | m_ObjectHideFlags: 0 556 | m_CorrespondingSourceObject: {fileID: 0} 557 | m_PrefabInstance: {fileID: 0} 558 | m_PrefabAsset: {fileID: 0} 559 | serializedVersion: 6 560 | m_Component: 561 | - component: {fileID: 1412586945} 562 | - component: {fileID: 1412586944} 563 | - component: {fileID: 1412586943} 564 | m_Layer: 0 565 | m_Name: EventSystem 566 | m_TagString: Untagged 567 | m_Icon: {fileID: 0} 568 | m_NavMeshLayer: 0 569 | m_StaticEditorFlags: 0 570 | m_IsActive: 1 571 | --- !u!114 &1412586943 572 | MonoBehaviour: 573 | m_ObjectHideFlags: 0 574 | m_CorrespondingSourceObject: {fileID: 0} 575 | m_PrefabInstance: {fileID: 0} 576 | m_PrefabAsset: {fileID: 0} 577 | m_GameObject: {fileID: 1412586942} 578 | m_Enabled: 1 579 | m_EditorHideFlags: 0 580 | m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} 581 | m_Name: 582 | m_EditorClassIdentifier: 583 | m_HorizontalAxis: Horizontal 584 | m_VerticalAxis: Vertical 585 | m_SubmitButton: Submit 586 | m_CancelButton: Cancel 587 | m_InputActionsPerSecond: 10 588 | m_RepeatDelay: 0.5 589 | m_ForceModuleActive: 0 590 | --- !u!114 &1412586944 591 | MonoBehaviour: 592 | m_ObjectHideFlags: 0 593 | m_CorrespondingSourceObject: {fileID: 0} 594 | m_PrefabInstance: {fileID: 0} 595 | m_PrefabAsset: {fileID: 0} 596 | m_GameObject: {fileID: 1412586942} 597 | m_Enabled: 1 598 | m_EditorHideFlags: 0 599 | m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} 600 | m_Name: 601 | m_EditorClassIdentifier: 602 | m_FirstSelected: {fileID: 0} 603 | m_sendNavigationEvents: 1 604 | m_DragThreshold: 10 605 | --- !u!4 &1412586945 606 | Transform: 607 | m_ObjectHideFlags: 0 608 | m_CorrespondingSourceObject: {fileID: 0} 609 | m_PrefabInstance: {fileID: 0} 610 | m_PrefabAsset: {fileID: 0} 611 | m_GameObject: {fileID: 1412586942} 612 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 613 | m_LocalPosition: {x: 0, y: 0, z: 0} 614 | m_LocalScale: {x: 1, y: 1, z: 1} 615 | m_Children: [] 616 | m_Father: {fileID: 0} 617 | m_RootOrder: 1 618 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 619 | --- !u!1 &1619176377 620 | GameObject: 621 | m_ObjectHideFlags: 0 622 | m_CorrespondingSourceObject: {fileID: 0} 623 | m_PrefabInstance: {fileID: 0} 624 | m_PrefabAsset: {fileID: 0} 625 | serializedVersion: 6 626 | m_Component: 627 | - component: {fileID: 1619176378} 628 | - component: {fileID: 1619176380} 629 | - component: {fileID: 1619176379} 630 | m_Layer: 5 631 | m_Name: Image 632 | m_TagString: Untagged 633 | m_Icon: {fileID: 0} 634 | m_NavMeshLayer: 0 635 | m_StaticEditorFlags: 0 636 | m_IsActive: 1 637 | --- !u!224 &1619176378 638 | RectTransform: 639 | m_ObjectHideFlags: 0 640 | m_CorrespondingSourceObject: {fileID: 0} 641 | m_PrefabInstance: {fileID: 0} 642 | m_PrefabAsset: {fileID: 0} 643 | m_GameObject: {fileID: 1619176377} 644 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 645 | m_LocalPosition: {x: 0, y: 0, z: 0} 646 | m_LocalScale: {x: 1, y: 1, z: 1} 647 | m_Children: [] 648 | m_Father: {fileID: 792428651} 649 | m_RootOrder: 0 650 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 651 | m_AnchorMin: {x: 0, y: 0} 652 | m_AnchorMax: {x: 1, y: 1} 653 | m_AnchoredPosition: {x: 0, y: 0} 654 | m_SizeDelta: {x: 0, y: 0} 655 | m_Pivot: {x: 0.5, y: 0.5} 656 | --- !u!114 &1619176379 657 | MonoBehaviour: 658 | m_ObjectHideFlags: 0 659 | m_CorrespondingSourceObject: {fileID: 0} 660 | m_PrefabInstance: {fileID: 0} 661 | m_PrefabAsset: {fileID: 0} 662 | m_GameObject: {fileID: 1619176377} 663 | m_Enabled: 1 664 | m_EditorHideFlags: 0 665 | m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} 666 | m_Name: 667 | m_EditorClassIdentifier: 668 | m_Material: {fileID: 0} 669 | m_Color: {r: 1, g: 1, b: 1, a: 1} 670 | m_RaycastTarget: 1 671 | m_OnCullStateChanged: 672 | m_PersistentCalls: 673 | m_Calls: [] 674 | m_Sprite: {fileID: 0} 675 | m_Type: 0 676 | m_PreserveAspect: 0 677 | m_FillCenter: 1 678 | m_FillMethod: 4 679 | m_FillAmount: 1 680 | m_FillClockwise: 1 681 | m_FillOrigin: 0 682 | m_UseSpriteMesh: 0 683 | m_PixelsPerUnitMultiplier: 1 684 | --- !u!222 &1619176380 685 | CanvasRenderer: 686 | m_ObjectHideFlags: 0 687 | m_CorrespondingSourceObject: {fileID: 0} 688 | m_PrefabInstance: {fileID: 0} 689 | m_PrefabAsset: {fileID: 0} 690 | m_GameObject: {fileID: 1619176377} 691 | m_CullTransparentMesh: 0 692 | --- !u!1 &1813762130 693 | GameObject: 694 | m_ObjectHideFlags: 0 695 | m_CorrespondingSourceObject: {fileID: 0} 696 | m_PrefabInstance: {fileID: 0} 697 | m_PrefabAsset: {fileID: 0} 698 | serializedVersion: 6 699 | m_Component: 700 | - component: {fileID: 1813762131} 701 | - component: {fileID: 1813762133} 702 | - component: {fileID: 1813762132} 703 | m_Layer: 5 704 | m_Name: Text (2) 705 | m_TagString: Untagged 706 | m_Icon: {fileID: 0} 707 | m_NavMeshLayer: 0 708 | m_StaticEditorFlags: 0 709 | m_IsActive: 1 710 | --- !u!224 &1813762131 711 | RectTransform: 712 | m_ObjectHideFlags: 0 713 | m_CorrespondingSourceObject: {fileID: 0} 714 | m_PrefabInstance: {fileID: 0} 715 | m_PrefabAsset: {fileID: 0} 716 | m_GameObject: {fileID: 1813762130} 717 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 718 | m_LocalPosition: {x: 0, y: 0, z: 0} 719 | m_LocalScale: {x: 1, y: 1, z: 1} 720 | m_Children: [] 721 | m_Father: {fileID: 792428651} 722 | m_RootOrder: 2 723 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 724 | m_AnchorMin: {x: 0.5, y: 0.5} 725 | m_AnchorMax: {x: 0.5, y: 0.5} 726 | m_AnchoredPosition: {x: -70, y: 113} 727 | m_SizeDelta: {x: 56, y: 50} 728 | m_Pivot: {x: 0.5, y: 0.5} 729 | --- !u!114 &1813762132 730 | MonoBehaviour: 731 | m_ObjectHideFlags: 0 732 | m_CorrespondingSourceObject: {fileID: 0} 733 | m_PrefabInstance: {fileID: 0} 734 | m_PrefabAsset: {fileID: 0} 735 | m_GameObject: {fileID: 1813762130} 736 | m_Enabled: 1 737 | m_EditorHideFlags: 0 738 | m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} 739 | m_Name: 740 | m_EditorClassIdentifier: 741 | m_Material: {fileID: 0} 742 | m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} 743 | m_RaycastTarget: 1 744 | m_OnCullStateChanged: 745 | m_PersistentCalls: 746 | m_Calls: [] 747 | m_FontData: 748 | m_Font: {fileID: 12800000, guid: ac175e57f1c1f9f4cb55d37747644558, type: 3} 749 | m_FontSize: 50 750 | m_FontStyle: 0 751 | m_BestFit: 0 752 | m_MinSize: 1 753 | m_MaxSize: 300 754 | m_Alignment: 1 755 | m_AlignByGeometry: 0 756 | m_RichText: 1 757 | m_HorizontalOverflow: 0 758 | m_VerticalOverflow: 0 759 | m_LineSpacing: 1 760 | m_Text: aa 761 | --- !u!222 &1813762133 762 | CanvasRenderer: 763 | m_ObjectHideFlags: 0 764 | m_CorrespondingSourceObject: {fileID: 0} 765 | m_PrefabInstance: {fileID: 0} 766 | m_PrefabAsset: {fileID: 0} 767 | m_GameObject: {fileID: 1813762130} 768 | m_CullTransparentMesh: 0 769 | -------------------------------------------------------------------------------- /Assets/Scenes/SampleScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fc0d4010bbf28b4594072e72b8655ab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ULH.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d89c22825e9c1354280fd4458657f98a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ULH/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b72c6ba5fc1bfe42b751a9414e11441 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/ComponentWatcher.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | using UnityEngine.UI; 6 | using UnityEngine.Events; 7 | using UnityEngine.EventSystems; 8 | using UnityEditor; 9 | 10 | namespace LittleHelper { 11 | public class ComponentWatcher : MonoBehaviour 12 | { 13 | public static LastPropertyData lastPropertyData = new LastPropertyData(); 14 | 15 | private static FeatureSet features => LittleHelperConfig.activeConfig.featureSet; 16 | 17 | private static int lastComponentCount; 18 | private static GameObject lastSelectedGO; 19 | 20 | private static bool shouldReleaseLockAfterDrop = false; 21 | 22 | private static bool isCtrlPressed = false; 23 | private static bool isAltPressed = false; 24 | private static Font initialFont; 25 | private static Text[] batchTexts; 26 | 27 | [InitializeOnLoadMethod] 28 | private static void Initialize() 29 | { 30 | var json = EditorPrefs.GetString("_little_helper", ""); 31 | if (json != "") 32 | lastPropertyData = JsonUtility.FromJson(json); 33 | 34 | Selection.selectionChanged += OnSelectionChanged; 35 | EditorApplication.update += OnUpdate; 36 | EditorApplication.hierarchyChanged += OnHierarchyChanged; 37 | Undo.postprocessModifications += OnPostProcessModifications; 38 | 39 | SceneView.duringSceneGui += view => 40 | { 41 | var e = Event.current; 42 | 43 | if (features.UI_HUD) 44 | EditorHUD.OnSceneGUI(); 45 | 46 | if (e == null) return; 47 | if (e.type != EventType.KeyDown) return; 48 | 49 | OnKeyDown(e); 50 | }; 51 | 52 | System.Reflection.FieldInfo info = typeof(EditorApplication).GetField("globalEventHandler", System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic); 53 | EditorApplication.CallbackFunction value = (EditorApplication.CallbackFunction)info.GetValue(null); 54 | value += EditorGlobalKeyPress; 55 | info.SetValue(null, value); 56 | } 57 | static void EditorGlobalKeyPress() 58 | { 59 | var e = Event.current; 60 | 61 | if (e.type == EventType.KeyDown && e.keyCode == KeyCode.LeftControl) 62 | { 63 | isCtrlPressed = true; 64 | } 65 | if (e.type == EventType.KeyUp && e.keyCode == KeyCode.LeftControl) 66 | { 67 | initialFont = null; 68 | batchTexts = null; 69 | 70 | isCtrlPressed = false; 71 | } 72 | 73 | if (e.type == EventType.KeyDown && e.keyCode == KeyCode.LeftAlt) 74 | isAltPressed = true; 75 | if (e.type == EventType.KeyUp && e.keyCode == KeyCode.LeftAlt) 76 | isAltPressed = false; 77 | 78 | if (e.type == EventType.KeyDown) 79 | { 80 | PasteHexColor.OnKeyDown(e, isCtrlPressed); 81 | Multiselect.OnKeydown(e, isAltPressed, isCtrlPressed); 82 | ObjectHotkey.OnKeyDown(e, isCtrlPressed); 83 | } 84 | } 85 | 86 | private static void OnUpdate() 87 | { 88 | if (features.KeepSelectionOnInspector) 89 | { 90 | if (Selection.activeObject == null && lastSelectedGO != null) 91 | Selection.objects = new Object[] { lastSelectedGO }; 92 | } 93 | if (features.RestoreInspectorOnDrag) 94 | { 95 | if (DragAndDrop.paths.Length > 0 && 96 | !(Selection.activeObject is GameObject) && lastSelectedGO != null) 97 | { 98 | var prevLocked = ActiveEditorTracker.sharedTracker.isLocked; 99 | 100 | Selection.objects = new Object[] { lastSelectedGO }; 101 | ActiveEditorTracker.sharedTracker.isLocked = true; 102 | ActiveEditorTracker.sharedTracker.ForceRebuild(); 103 | 104 | if (prevLocked == false) 105 | shouldReleaseLockAfterDrop = true; 106 | } 107 | if (DragAndDrop.paths.Length == 0 && 108 | shouldReleaseLockAfterDrop) 109 | { 110 | ActiveEditorTracker.sharedTracker.isLocked = false; 111 | ActiveEditorTracker.sharedTracker.ForceRebuild(); 112 | 113 | shouldReleaseLockAfterDrop = false; 114 | } 115 | } 116 | } 117 | private static void OnSelectionChanged() 118 | { 119 | if (Selection.objects.Length == 0) 120 | return; 121 | 122 | var go = Selection.objects[0] as GameObject; 123 | if (go == null) return; 124 | 125 | lastComponentCount = go.GetComponents().Length; 126 | lastSelectedGO = go; 127 | } 128 | private static void OnHierarchyChanged() 129 | { 130 | if (Selection.objects.Length == 0) 131 | return; 132 | 133 | var go = Selection.objects[0] as GameObject; 134 | var comps = go.GetComponents(); 135 | 136 | if (comps.Length == 0 || 137 | (go == lastSelectedGO && comps.Length == lastComponentCount)) 138 | return; 139 | 140 | var lastComp = comps.Last(); 141 | if (lastComp is Text text) 142 | { 143 | if (features.UI_CopyTextData) 144 | { 145 | text.alignment = lastPropertyData.textAlign; 146 | if (lastPropertyData.fontSize > 0) 147 | text.fontSize = lastPropertyData.fontSize; 148 | if (lastPropertyData.lineSpacing > 0) 149 | text.lineSpacing = lastPropertyData.lineSpacing; 150 | text.horizontalOverflow = lastPropertyData.horizontal; 151 | text.verticalOverflow = lastPropertyData.vertical; 152 | text.color = lastPropertyData.color; 153 | 154 | var lastFont = AssetDatabase.LoadAssetAtPath(AssetDatabase.GetAssetPath(lastPropertyData.fontAssetId)); 155 | if (lastFont != null) 156 | text.font = lastFont; 157 | } 158 | 159 | if (features.UI_CopyTextOutlines) 160 | { 161 | foreach (var outline in lastPropertyData.outlines) 162 | { 163 | var o = go.AddComponent(); 164 | o.effectColor = outline.color; 165 | o.effectDistance = outline.position; 166 | } 167 | } 168 | if (features.UI_CopyTextShadows) 169 | { 170 | foreach (var outline in lastPropertyData.shadows) 171 | { 172 | var o = go.AddComponent(); 173 | o.effectColor = outline.color; 174 | o.effectDistance = outline.position; 175 | } 176 | } 177 | 178 | if (features.UI_DisableRaycastForText) 179 | text.raycastTarget = false; 180 | } 181 | else if (lastComp is AudioListener) 182 | { 183 | if (features.RemoveAudioListener) 184 | DestroyImmediate(lastComp); 185 | } 186 | else if (lastComp is Button btnComp) 187 | { 188 | UnityEditor.Events.UnityEventTools.AddPersistentListener(btnComp.onClick); 189 | } 190 | } 191 | 192 | private static void OnKeyDown(Event e) 193 | { 194 | if (Selection.objects.Length == 0) return; 195 | var go = Selection.objects[0] as GameObject; 196 | if (go == null) return; 197 | var rt = go.GetComponent(); 198 | if (rt == null) return; 199 | 200 | if (e.keyCode == KeyCode.Space) 201 | { 202 | var collider = go.GetComponent(); 203 | if (collider != null) 204 | { 205 | // RaycastAll?? 206 | var hits = Physics.RaycastAll(go.transform.position, go.transform.up * -1); 207 | if (hits.Length > 0) 208 | { 209 | var yOffset = hits[0].collider.bounds.center.y + hits[0].collider.bounds.extents.y; 210 | var pos = go.transform.position; 211 | pos.y = yOffset + collider.bounds.extents.y; 212 | go.transform.position = pos; 213 | } 214 | } 215 | } 216 | if (features.UI_MoveByArrows) 217 | { 218 | if (e.keyCode == KeyCode.UpArrow && e.control) 219 | rt.anchoredPosition += new Vector2(0, 1); 220 | if (e.keyCode == KeyCode.DownArrow && e.control) 221 | rt.anchoredPosition += new Vector2(0, -1); 222 | if (e.keyCode == KeyCode.LeftArrow && e.control) 223 | rt.anchoredPosition += new Vector2(-1, 0); 224 | if (e.keyCode == KeyCode.RightArrow && e.control) 225 | rt.anchoredPosition += new Vector2(1, 0); 226 | } 227 | } 228 | 229 | private static UndoPropertyModification[] OnPostProcessModifications(UndoPropertyModification[] propertyModifications) 230 | { 231 | foreach (var m in propertyModifications) 232 | { 233 | if (m.currentValue.target is Text textTarget) 234 | { 235 | if (features.UI_CopyTextData) 236 | { 237 | if (m.currentValue.propertyPath == "m_FontData.m_FontSize") 238 | lastPropertyData.fontSize = textTarget.fontSize; 239 | else if (m.currentValue.propertyPath == "m_FontData.m_Font") 240 | lastPropertyData.fontAssetId = textTarget.font.GetInstanceID(); 241 | else if (m.currentValue.propertyPath == "m_FontData.m_LineSpacing") 242 | lastPropertyData.lineSpacing = textTarget.lineSpacing; 243 | else if (m.currentValue.propertyPath == "m_FontData.m_Alignment") 244 | lastPropertyData.textAlign = textTarget.alignment; 245 | else if (m.currentValue.propertyPath == "m_FontData.m_HorizontalOverflow") 246 | lastPropertyData.horizontal = textTarget.horizontalOverflow; 247 | else if (m.currentValue.propertyPath == "m_FontData.m_VerticalOverflow") 248 | lastPropertyData.vertical = textTarget.verticalOverflow; 249 | else if (m.currentValue.propertyPath.StartsWith("m_Color.")) 250 | lastPropertyData.color = textTarget.color; 251 | } 252 | 253 | if (features.UI_BatchModifyForText) 254 | { 255 | if (isCtrlPressed) 256 | { 257 | if (m.currentValue.propertyPath == "m_FontData.m_Font") 258 | { 259 | var texts = GameObject.FindObjectsOfType(); 260 | 261 | if (initialFont == null) 262 | initialFont = (Font)m.previousValue.objectReference; 263 | if (batchTexts == null) 264 | batchTexts = texts.Where(x => x.font == initialFont).ToArray(); 265 | 266 | foreach (var text in batchTexts) 267 | { 268 | text.font = textTarget.font; 269 | text.FontTextureChanged(); 270 | 271 | if (text.resizeTextForBestFit == false) 272 | text.Resize(); 273 | } 274 | } 275 | } 276 | } 277 | 278 | if (features.UI_AutoFitSizeText && textTarget.resizeTextForBestFit == false) 279 | textTarget.Resize(); 280 | } 281 | else if (m.currentValue.target is Outline outlineTarget) 282 | { 283 | var outlines = outlineTarget.GetComponents(); 284 | lastPropertyData.outlines = outlines.Select(x => new OutlineData 285 | { 286 | color = x.effectColor, 287 | position = x.effectDistance 288 | }).ToArray(); 289 | } 290 | else if (m.currentValue.target is Shadow shadowTarget) 291 | { 292 | var shadows = shadowTarget.GetComponents(); 293 | lastPropertyData.shadows = shadows.Select(x => new ShadowData 294 | { 295 | color = x.effectColor, 296 | position = x.effectDistance 297 | }).ToArray(); 298 | } 299 | else if (m.currentValue.target is RectTransform rtTarget) 300 | { 301 | if (m.currentValue.propertyPath == "m_LocalPosition.z") 302 | { 303 | var pos = rtTarget.localPosition; 304 | pos.z = 0; 305 | rtTarget.localPosition = pos; 306 | } 307 | } 308 | else if (m.currentValue.target is Image imageTarget) 309 | { 310 | if (m.currentValue.propertyPath == "m_Sprite") 311 | { 312 | if (features.UI_AutoFitSizeImage) 313 | { 314 | imageTarget.SetNativeSize(); 315 | } 316 | } 317 | } 318 | else if (m.currentValue.target is RawImage rawImageTarget) 319 | { 320 | if (m.currentValue.propertyPath == "m_Texture") 321 | { 322 | if (features.UI_AutoFitSizeImage) 323 | { 324 | rawImageTarget.SetNativeSize(); 325 | } 326 | } 327 | } 328 | 329 | Debug.Log(m.currentValue.propertyPath); 330 | } 331 | 332 | var json = JsonUtility.ToJson(lastPropertyData); 333 | EditorPrefs.SetString("_little_helper", json); 334 | 335 | return propertyModifications; 336 | } 337 | } 338 | } 339 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/ComponentWatcher.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bac06fde16799e44fbb725dba800c03c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/EditorDrawString.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | using UnityEditor; 7 | 8 | namespace LittleHelper 9 | { 10 | public class EditorDrawString 11 | { 12 | public static void DrawString(string text, Color? color = null, bool showTexture = true, int offsetY = 0) 13 | { 14 | Handles.BeginGUI(); 15 | 16 | var restoreColor = GUI.color; 17 | var viewSize = SceneView.currentDrawingSceneView.position; 18 | 19 | if (color.HasValue) GUI.color = color.Value; 20 | var view = SceneView.currentDrawingSceneView; 21 | Vector3 screenPos = view.camera.WorldToScreenPoint( 22 | view.camera.transform.position + view.camera.transform.forward); 23 | 24 | if (screenPos.y < 0 || screenPos.y > Screen.height || screenPos.x < 0 || screenPos.x > Screen.width || screenPos.z < 0) 25 | { 26 | GUI.color = restoreColor; 27 | Handles.EndGUI(); 28 | return; 29 | } 30 | var style = new GUIStyle(GUI.skin.label); 31 | style.alignment = TextAnchor.MiddleCenter; 32 | style.fontSize = 50; 33 | Vector2 size = style.CalcSize(new GUIContent(text)); 34 | GUI.Label(new Rect(40, viewSize.height - 100 - offsetY, size.x, size.y), text, style); 35 | GUI.color = restoreColor; 36 | 37 | /* 38 | if (showTexture) 39 | { 40 | if (cssTex == null) 41 | OnEnable(); 42 | GUI.DrawTexture( 43 | new Rect(40, viewSize.height - 220, 100, 100), cssTex, 44 | ScaleMode.StretchToFill, true, 1.0f, new Color(1, 1, 1, alpha), 0, 0); 45 | } 46 | */ 47 | 48 | Handles.EndGUI(); 49 | } 50 | public static void DrawString(string text, Vector3 position, Color? color = null, bool showTexture = true, int offsetY = 0) 51 | { 52 | Handles.BeginGUI(); 53 | 54 | var restoreColor = GUI.color; 55 | var viewSize = SceneView.currentDrawingSceneView.position; 56 | 57 | if (color.HasValue) GUI.color = color.Value; 58 | var view = SceneView.currentDrawingSceneView; 59 | Vector3 screenPos = view.camera.WorldToScreenPoint( 60 | position + view.camera.transform.forward); 61 | 62 | if (screenPos.y < 0 || screenPos.y > Screen.height || screenPos.x < 0 || screenPos.x > Screen.width || screenPos.z < 0) 63 | { 64 | GUI.color = restoreColor; 65 | Handles.EndGUI(); 66 | return; 67 | } 68 | var style = new GUIStyle(GUI.skin.label); 69 | style.alignment = TextAnchor.MiddleCenter; 70 | style.fontSize = 30; 71 | Vector2 size = style.CalcSize(new GUIContent(text)); 72 | GUI.Label(new Rect(screenPos.x - size.x/2, viewSize.height - screenPos.y - offsetY - size.y/2, size.x, size.y), text, style); 73 | GUI.color = restoreColor; 74 | 75 | /* 76 | if (showTexture) 77 | { 78 | if (cssTex == null) 79 | OnEnable(); 80 | GUI.DrawTexture( 81 | new Rect(40, viewSize.height - 220, 100, 100), cssTex, 82 | ScaleMode.StretchToFill, true, 1.0f, new Color(1, 1, 1, alpha), 0, 0); 83 | } 84 | */ 85 | 86 | Handles.EndGUI(); 87 | } 88 | 89 | public static void DrawRect(Rect rect, Color? color = null, bool showTexture = true, int offsetY = 0) 90 | { 91 | Handles.BeginGUI(); 92 | 93 | var restoreColor = GUI.color; 94 | var viewSize = SceneView.currentDrawingSceneView.position; 95 | 96 | if (color.HasValue) GUI.color = color.Value; 97 | var view = SceneView.currentDrawingSceneView; 98 | Vector3 screenPos = view.camera.WorldToScreenPoint( 99 | new Vector3(rect.position.x, rect.position.y) + view.camera.transform.forward); 100 | 101 | if (screenPos.y < 0 || screenPos.y > Screen.height || screenPos.x < 0 || screenPos.x > Screen.width || screenPos.z < 0) 102 | { 103 | GUI.color = restoreColor; 104 | Handles.EndGUI(); 105 | return; 106 | } 107 | 108 | EditorGUI.DrawRect(rect, color.Value); 109 | 110 | GUI.color = restoreColor; 111 | 112 | /* 113 | if (showTexture) 114 | { 115 | if (cssTex == null) 116 | OnEnable(); 117 | GUI.DrawTexture( 118 | new Rect(40, viewSize.height - 220, 100, 100), cssTex, 119 | ScaleMode.StretchToFill, true, 1.0f, new Color(1, 1, 1, alpha), 0, 0); 120 | } 121 | */ 122 | 123 | Handles.EndGUI(); 124 | } 125 | 126 | public static void DrawLine(Vector3 a, Vector3 b, Color? color = null, bool showTexture = true, int offsetY = 0) 127 | { 128 | Handles.BeginGUI(); 129 | 130 | var restoreColor = GUI.color; 131 | var viewSize = SceneView.currentDrawingSceneView.position; 132 | 133 | if (color.HasValue) GUI.color = color.Value; 134 | var view = SceneView.currentDrawingSceneView; 135 | Vector3 screenPos1 = view.camera.WorldToScreenPoint( 136 | a + view.camera.transform.forward); 137 | Vector3 screenPos2 = view.camera.WorldToScreenPoint( 138 | b + view.camera.transform.forward); 139 | 140 | //Debug.DrawLine() 141 | 142 | GUI.color = restoreColor; 143 | 144 | /* 145 | if (showTexture) 146 | { 147 | if (cssTex == null) 148 | OnEnable(); 149 | GUI.DrawTexture( 150 | new Rect(40, viewSize.height - 220, 100, 100), cssTex, 151 | ScaleMode.StretchToFill, true, 1.0f, new Color(1, 1, 1, alpha), 0, 0); 152 | } 153 | */ 154 | 155 | Handles.EndGUI(); 156 | } 157 | } 158 | } 159 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/EditorDrawString.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 378a322f068a8734d8317d47ec3f0947 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/FeatureSet.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace LittleHelper 8 | { 9 | [Serializable] 10 | public struct FeatureSet 11 | { 12 | [Header("Inspector")] 13 | public bool KeepSelectionOnInspector; 14 | public bool RestoreInspectorOnDrag; 15 | 16 | [Header("UGUI")] 17 | public bool UI_HUD; 18 | 19 | public bool UI_CopyTextData; 20 | public bool UI_CopyTextOutlines; 21 | public bool UI_CopyTextShadows; 22 | 23 | public bool UI_AutoFitSizeText; 24 | public bool UI_DisableRaycastForText; 25 | public bool UI_BatchModifyForText; 26 | 27 | public bool UI_KeepZPosition0; 28 | public bool UI_MoveByArrows; 29 | 30 | public bool UI_AutoFitSizeImage; 31 | 32 | [Header("Components")] 33 | public bool RemoveAudioListener; 34 | } 35 | } -------------------------------------------------------------------------------- /Assets/ULH/Editor/FeatureSet.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e7c4b1db23c08b4e8f14988e35f204e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65e776a623e5d4e43b415d2a52d9a02f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features/EditorHUD.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | using UnityEditor; 7 | 8 | namespace LittleHelper 9 | { 10 | public class EditorHUD 11 | { 12 | public static void OnSceneGUI() 13 | { 14 | DrawOutlines(); 15 | 16 | var ui = SelectionExt.GetUIComponentFromSelection(); 17 | if (ui == null) return; 18 | 19 | var rt = ui.GetComponent(); 20 | EditorDrawString.DrawString($"{rt.rect.width.ToString("0.0")} x {rt.rect.height.ToString("0.0")}"); 21 | } 22 | 23 | private static void DrawOutlines() 24 | { 25 | var uis = SelectionExt.GetUIComponentsFromSelection(); 26 | for (int i=0;i(); 31 | var rt2 = u2.GetComponent(); 32 | 33 | var alignedX = 34 | (u2.transform.position.x >= u.transform.position.x - rt.rect.width / 2 && 35 | u2.transform.position.x <= u.transform.position.x + rt.rect.width / 2) || 36 | (u.transform.position.x >= u2.transform.position.x - rt2.rect.width / 2 && 37 | u.transform.position.x <= u2.transform.position.x + rt2.rect.width / 2); 38 | var alignedY = 39 | (u2.transform.position.y >= u.transform.position.y - rt.rect.height / 2 && 40 | u2.transform.position.y <= u.transform.position.y + rt.rect.height / 2) || 41 | (u.transform.position.y >= u2.transform.position.y - rt2.rect.height / 2 && 42 | u.transform.position.y <= u2.transform.position.y + rt2.rect.height / 2); 43 | 44 | Handles.color = Color.red; 45 | if (alignedX == false && alignedY) 46 | { 47 | var dist = 0.0f; 48 | 49 | if (u.transform.position.x < u2.transform.position.x) 50 | { 51 | dist = Mathf.Abs( 52 | (rt.anchoredPosition.x + rt.rect.width / 2) - 53 | (rt2.anchoredPosition.x - rt2.rect.width / 2)); 54 | 55 | Handles.DrawAAPolyLine( 56 | 5, 57 | u.transform.position + new Vector3(rt.rect.width / 2, -5), 58 | u.transform.position + new Vector3(rt.rect.width / 2, 5)); 59 | Handles.DrawAAPolyLine( 60 | 5, 61 | u2.transform.position - new Vector3(rt2.rect.width / 2, -5), 62 | u2.transform.position - new Vector3(rt2.rect.width / 2, 5)); 63 | Handles.DrawAAPolyLine( 64 | 5, 65 | u.transform.position + new Vector3(rt.rect.width / 2, 0), 66 | u2.transform.position - new Vector3(rt2.rect.width / 2, 0)); 67 | 68 | EditorDrawString.DrawString(dist.ToString("0.0"), 69 | (u.transform.position + new Vector3(rt.rect.width / 2, 0)) + 70 | new Vector3(((u2.transform.position.x - rt2.rect.width/2) - (u.transform.position.x + rt.rect.width/2)), 0) / 2, 71 | Color.red); 72 | } 73 | else 74 | { 75 | dist = Mathf.Abs( 76 | (rt.anchoredPosition.x - rt.rect.width / 2) - 77 | (rt2.anchoredPosition.x + rt2.rect.width / 2)); 78 | 79 | Handles.DrawAAPolyLine( 80 | 5, 81 | u.transform.position - new Vector3(rt.rect.width / 2, -5), 82 | u.transform.position - new Vector3(rt.rect.width / 2, 5)); 83 | Handles.DrawAAPolyLine( 84 | 5, 85 | u2.transform.position + new Vector3(rt2.rect.width / 2, -5), 86 | u2.transform.position + new Vector3(rt2.rect.width / 2, 5)); 87 | Handles.DrawLine( 88 | u.transform.position - new Vector3(rt.rect.width / 2, 0), 89 | u2.transform.position + new Vector3(rt2.rect.width / 2, 0)); 90 | 91 | EditorDrawString.DrawString(dist.ToString("0.0"), 92 | (u.transform.position - new Vector3(rt.rect.width / 2, 0)) - 93 | new Vector3(((u.transform.position.x - rt.rect.width / 2) - (u2.transform.position.x + rt2.rect.width / 2)), 0) / 2, 94 | Color.red); 95 | } 96 | } 97 | if (alignedX && alignedY == false) 98 | { 99 | var dist = 0.0f; 100 | 101 | if (u.transform.position.y < u2.transform.position.y) 102 | { 103 | dist = Mathf.Abs( 104 | (rt.anchoredPosition.y + rt.rect.height / 2) - 105 | (rt2.anchoredPosition.y - rt2.rect.height / 2)); 106 | 107 | Handles.DrawAAPolyLine( 108 | 5, 109 | u.transform.position + new Vector3(-5, rt.rect.height / 2), 110 | u.transform.position + new Vector3(5, rt.rect.height / 2)); 111 | Handles.DrawAAPolyLine( 112 | 5, 113 | u2.transform.position - new Vector3(-5, rt2.rect.height / 2), 114 | u2.transform.position - new Vector3(5, rt2.rect.height / 2)); 115 | Handles.DrawAAPolyLine( 116 | 5, 117 | u.transform.position + new Vector3(0, rt.rect.height / 2), 118 | u2.transform.position - new Vector3(0, rt2.rect.height / 2)); 119 | 120 | EditorDrawString.DrawString(dist.ToString("0.0"), 121 | u.transform.position + (u2.transform.position - u.transform.position) / 2, 122 | Color.red); 123 | } 124 | else 125 | { 126 | dist = Mathf.Abs( 127 | (rt.anchoredPosition.y - rt.rect.height / 2) - 128 | (rt2.anchoredPosition.y + rt2.rect.height / 2)); 129 | 130 | Handles.DrawAAPolyLine( 131 | 5, 132 | u.transform.position - new Vector3(-5, rt.rect.height / 2), 133 | u.transform.position - new Vector3(5, rt.rect.height / 2)); 134 | Handles.DrawAAPolyLine( 135 | 5, 136 | u2.transform.position + new Vector3(-5, rt2.rect.height / 2), 137 | u2.transform.position + new Vector3(5, rt2.rect.height / 2)); 138 | Handles.DrawLine( 139 | u.transform.position - new Vector3(0, rt.rect.height / 2), 140 | u2.transform.position + new Vector3(0, rt2.rect.height / 2)); 141 | } 142 | 143 | EditorDrawString.DrawString(dist.ToString("0.0"), 144 | u.transform.position + (u2.transform.position - u.transform.position) / 2, 145 | Color.red); 146 | } 147 | if (alignedX && alignedY) 148 | { 149 | //Debug.Log("CC"); 150 | } 151 | } 152 | } 153 | } 154 | } 155 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features/EditorHUD.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0797ddd8cbd2bfb4d8365f178fdf8e2c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features/MoveComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using UnityEngine; 7 | using UnityEditor; 8 | using UnityEditorInternal; 9 | 10 | namespace LittleHelper 11 | { 12 | public class MoveComponent 13 | { 14 | [MenuItem("CONTEXT/Object/Move to Top", priority = 5000)] 15 | public static void MoveToTop(MenuCommand command) 16 | { 17 | while (true) 18 | { 19 | if (ComponentUtility.MoveComponentUp(command.context as Component) == false) 20 | break; 21 | } 22 | } 23 | [MenuItem("CONTEXT/Object/Move to Bottom", priority = 5000)] 24 | public static void MoveToBottom(MenuCommand command) 25 | { 26 | while (true) 27 | { 28 | if (ComponentUtility.MoveComponentDown(command.context as Component) == false) 29 | break; 30 | } 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features/MoveComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d910469f55bc2c468bb8a84fd915ffe 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features/Multiselect.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | using UnityEngine.UI; 7 | using UnityEditor; 8 | 9 | namespace LittleHelper 10 | { 11 | public class Multiselect 12 | { 13 | public static void SelectAll(Func pred) 14 | where T : Component 15 | { 16 | var objs = GameObject.FindObjectsOfType(); 17 | Selection.objects = 18 | objs.Where(x => pred(x)) 19 | .Select(x => x.gameObject) 20 | .ToArray(); 21 | } 22 | 23 | #region UI.Text 24 | public static void SelectByTextFont() 25 | { 26 | Text text; 27 | if (TryGetComponent(out text)) 28 | SelectAll(x => x.font == text.font); 29 | } 30 | public static void SelectByTextSize() 31 | { 32 | Text text; 33 | if (TryGetComponent(out text)) 34 | SelectAll(x => x.fontSize == text.fontSize); 35 | } 36 | #endregion 37 | 38 | #region UI.Image 39 | public static void SelectByImageSprite() 40 | { 41 | Image image; 42 | if (TryGetComponent(out image)) 43 | SelectAll(x => x.sprite == image.sprite); 44 | } 45 | public static void SelectByRawImageTexture() 46 | { 47 | RawImage image; 48 | if (TryGetComponent(out image)) 49 | SelectAll(x => x.mainTexture == image.mainTexture); 50 | } 51 | #endregion 52 | 53 | private static bool TryGetComponent(out T comp) 54 | where T : class 55 | { 56 | comp = null; 57 | if (Selection.objects.Length != 1) 58 | return false; 59 | 60 | try 61 | { 62 | var go = Selection.objects[0] as GameObject; 63 | comp = go.GetComponent(); 64 | return true; 65 | } 66 | catch (Exception e) 67 | { 68 | return false; 69 | } 70 | } 71 | 72 | public static void OnKeydown(Event e, bool isAltPressed, bool isCtrlPressed) 73 | { 74 | if (isAltPressed) 75 | { 76 | var comp = SelectionExt.GetUIComponentFromSelection(); 77 | 78 | if (comp == null) return; 79 | 80 | if (e.keyCode == KeyCode.Alpha1) 81 | { 82 | if (comp is Text) 83 | Multiselect.SelectByTextFont(); 84 | else if (comp is Image) 85 | Multiselect.SelectByImageSprite(); 86 | else if (comp is RawImage) 87 | Multiselect.SelectByRawImageTexture(); 88 | } 89 | if (e.keyCode == KeyCode.Alpha2) 90 | { 91 | if (comp is Text) 92 | Multiselect.SelectByTextSize(); 93 | } 94 | } 95 | } 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features/Multiselect.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c514b421db712dd44922b3b00e2cb7c0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features/ObjectHotkey.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEditor; 5 | 6 | namespace LittleHelper 7 | { 8 | public class ObjectHotkey 9 | { 10 | public static void OnKeyDown(Event e, bool isCtrlPressed) 11 | { 12 | if (isCtrlPressed == false) return; 13 | 14 | var setup = ObjectHotkeySetup.setup; 15 | if (setup == null) return; 16 | 17 | if (e.keyCode == KeyCode.Alpha1 && setup.key1 != null) 18 | Selection.objects = new Object[] { setup.key1 }; 19 | if (e.keyCode == KeyCode.Alpha1 && setup.key2 != null) 20 | Selection.objects = new Object[] { setup.key2 }; 21 | if (e.keyCode == KeyCode.Alpha1 && setup.key3 != null) 22 | Selection.objects = new Object[] { setup.key3 }; 23 | if (e.keyCode == KeyCode.Alpha1 && setup.key4 != null) 24 | Selection.objects = new Object[] { setup.key4 }; 25 | if (e.keyCode == KeyCode.Alpha1 && setup.key5 != null) 26 | Selection.objects = new Object[] { setup.key5 }; 27 | 28 | // ctrl + 6 and over is reserved by unity 29 | /* 30 | if (e.keyCode == KeyCode.Alpha1 && setup.key7 != null) 31 | Selection.objects = new Object[] { setup.key7 }; 32 | if (e.keyCode == KeyCode.Alpha1 && setup.key8 != null) 33 | Selection.objects = new Object[] { setup.key8 }; 34 | if (e.keyCode == KeyCode.Alpha1 && setup.key9 != null) 35 | Selection.objects = new Object[] { setup.key9 }; 36 | */ 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features/ObjectHotkey.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6fcfac9c18376c946ba6827bdab3a817 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features/PasteHexColor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace LittleHelper 8 | { 9 | public class PasteHexColor 10 | { 11 | private static bool IsHexColor(string str) 12 | { 13 | if (str.Length == 6 || str.Length == 8) 14 | return false; 15 | 16 | // [TODO] A~F check 17 | for (int i = 0; i < str.Length; i++) 18 | { 19 | var c = str[i]; 20 | 21 | if (char.IsLetterOrDigit(c)) 22 | ; // PASS 23 | else 24 | return false; 25 | } 26 | 27 | return true; 28 | } 29 | 30 | public static void OnKeyDown(Event e, bool isCtrlPressed) 31 | { 32 | if (isCtrlPressed && e.keyCode == KeyCode.V) 33 | { 34 | var buffer = GUIUtility.systemCopyBuffer; 35 | if (buffer.StartsWith("#") == false) 36 | buffer = "#" + buffer; 37 | 38 | var comp = SelectionExt.GetUIComponentFromSelection(); 39 | Color color; 40 | if (ColorUtility.TryParseHtmlString(buffer, out color)) 41 | comp.color = color; 42 | } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features/PasteHexColor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd7886d53708b27459762b5fc222d69c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features/PastePropertiesExt.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | using UnityEditor; 7 | 8 | namespace LittleHelper 9 | { 10 | public class PastePropertiesExt 11 | { 12 | private static UnityEngine.Object srcObject; 13 | 14 | [MenuItem("CONTEXT/Object/Copy Properties", priority = 5000)] 15 | public static void CopyProperties(MenuCommand command) 16 | { 17 | srcObject = command.context; 18 | } 19 | [MenuItem("CONTEXT/Object/Paste Properties", priority = 5000)] 20 | public static void PasteProperties(MenuCommand command) 21 | { 22 | if (srcObject == null) return; 23 | if (command.context == srcObject) return; 24 | 25 | var sobj = new SerializedObject(srcObject); 26 | var dstObj = new SerializedObject(command.context); 27 | 28 | var it = sobj.GetIterator(); 29 | while (it.Next(true)) 30 | { 31 | dstObj.CopyFromSerializedProperty(it); 32 | } 33 | dstObj.ApplyModifiedProperties(); 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features/PastePropertiesExt.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 098d06827d7a3dc4ea981c610613a00b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features/ScriptTemplate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using UnityEngine; 8 | using UnityEditor; 9 | 10 | namespace LittleHelper 11 | { 12 | public class ScriptTemplate : AssetPostprocessor 13 | { 14 | private static FileSystemWatcher watcher; 15 | 16 | public static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) 17 | { 18 | foreach (var asset in importedAssets) 19 | { 20 | if (asset.EndsWith(".cs") == false) 21 | continue; 22 | 23 | var text = File.ReadAllText(asset); 24 | 25 | if (text.Contains("// Start is called before the first frame update") == false) 26 | return; 27 | if (text.Contains("// Update is called once per frame") == false) 28 | return; 29 | if (text.Split('\n').Length != 19) 30 | return; 31 | 32 | var template = FindTemplate(asset); 33 | if (template != null) 34 | { 35 | template = template.Replace("{{NAME}}", Path.GetFileNameWithoutExtension(asset)); 36 | File.WriteAllText(asset, template); 37 | } 38 | } 39 | } 40 | 41 | private static string FindTemplate(string path) 42 | { 43 | var p = Path.GetDirectoryName(path); 44 | 45 | while (true) 46 | { 47 | var templatePath = Path.Combine(p, "template.tcs"); 48 | if (File.Exists(templatePath)) 49 | return File.ReadAllText(templatePath); 50 | 51 | var di = Directory.GetParent(p); 52 | if (di.Exists == false) 53 | break; 54 | 55 | p = di.FullName; 56 | 57 | if (p.EndsWith(Path.DirectorySeparatorChar + "Assets")) 58 | break; 59 | } 60 | 61 | return null; 62 | } 63 | 64 | [MenuItem("Assets/Create/ScriptTemplate(.tcs)", priority = 81)] 65 | public static void CreateTemplate(MenuCommand cmd) 66 | { 67 | ProjectWindowUtil.CreateAssetWithContent("template.tcs", ""); 68 | } 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Features/ScriptTemplate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05ed5dcdca02b3f47bc707f477f3f9b1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/LastPropertyData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace LittleHelper 8 | { 9 | [Serializable] 10 | public class LastPropertyData 11 | { 12 | public TextAnchor textAlign = TextAnchor.UpperLeft; 13 | public int fontAssetId; 14 | public int fontSize = 14; 15 | public float lineSpacing = 1.0f; 16 | 17 | public Color color = Color.black; 18 | public HorizontalWrapMode horizontal = HorizontalWrapMode.Wrap; 19 | public VerticalWrapMode vertical = VerticalWrapMode.Truncate; 20 | 21 | public ShadowData[] shadows; 22 | public OutlineData[] outlines; 23 | } 24 | 25 | [Serializable] 26 | public class ShadowData 27 | { 28 | public Color color; 29 | public Vector2 position; 30 | } 31 | [Serializable] 32 | public class OutlineData 33 | { 34 | public Color color; 35 | public Vector2 position; 36 | } 37 | } -------------------------------------------------------------------------------- /Assets/ULH/Editor/LastPropertyData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b90d1c3ab86d8a44baca0177a0cfa087 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/LittleHelperConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEditor; 6 | #if UNITY_EDITOR 7 | using UnityEngine; 8 | #endif 9 | 10 | namespace LittleHelper 11 | { 12 | public class LittleHelperConfig : ScriptableObject 13 | { 14 | public static LittleHelperConfig activeConfig; 15 | 16 | public FeatureSet featureSet; 17 | 18 | #if UNITY_EDITOR 19 | [InitializeOnLoadMethod] 20 | private static void Initialize() 21 | { 22 | var cfg = AssetDatabase.LoadAssetAtPath("Assets/LittleHelperConfig.asset"); 23 | 24 | if (cfg == null) 25 | { 26 | cfg = CreateInstance(); 27 | AssetDatabase.CreateAsset(cfg, "Assets/LittleHelperConfig.asset"); 28 | } 29 | 30 | activeConfig = cfg; 31 | } 32 | #endif 33 | } 34 | } -------------------------------------------------------------------------------- /Assets/ULH/Editor/LittleHelperConfig.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 717d56d885398e845a3198bbe5d4cd64 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/UITextUtility.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using UnityEngine; 7 | using UnityEngine.UI; 8 | 9 | namespace LittleHelper 10 | { 11 | public static class UITextUtility 12 | { 13 | public static void Resize(this Text _this) 14 | { 15 | var rt = _this.GetComponent(); 16 | var setting = _this.GetGenerationSettings(rt.sizeDelta); 17 | TextGenerator generator = new TextGenerator(); 18 | var w = generator.GetPreferredWidth(_this.text, setting); 19 | setting.generationExtents = new Vector2(w, rt.sizeDelta.y); 20 | var h = generator.GetPreferredHeight(_this.text, setting); 21 | rt.sizeDelta = new Vector2(w, h); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /Assets/ULH/Editor/UITextUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2762c1c9aa79cf4884e44ee5cd95744 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Util.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 923fd5986e3cce54ebe24fa431e82e35 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ULH/Editor/Util/SelectionExt.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | using UnityEngine.UI; 7 | using UnityEditor; 8 | 9 | namespace LittleHelper 10 | { 11 | public class SelectionExt 12 | { 13 | public static GameObject GetGameObjectFromSelection() 14 | { 15 | if (Selection.objects.Length != 1) return null; 16 | return Selection.objects[0] as GameObject; 17 | } 18 | 19 | public static Graphic GetUIComponentFromSelection() 20 | { 21 | if (Selection.objects.Length != 1) return null; 22 | 23 | try 24 | { 25 | var go = Selection.objects[0] as GameObject; 26 | return go.GetComponent(); 27 | } 28 | catch (Exception e) 29 | { 30 | return null; 31 | } 32 | } 33 | 34 | public static Component[] GetUIComponentsFromSelection() 35 | { 36 | if (Selection.objects.Length == 0) 37 | return new Component[] { }; 38 | 39 | try 40 | { 41 | return Selection.objects 42 | .OfType() 43 | .Select(x => x.GetComponent()) 44 | .Where(x => x != null) 45 | .ToArray(); 46 | } 47 | catch (Exception e) 48 | { 49 | return new Component[] { }; 50 | } 51 | } 52 | } 53 | } -------------------------------------------------------------------------------- /Assets/ULH/Editor/Util/SelectionExt.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f60df9fe0f1340f46a1b1e42f0df0ca8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/ULH/ObjectHotkeySetup.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEditor; 5 | 6 | namespace LittleHelper 7 | { 8 | public class ObjectHotkeySetup : MonoBehaviour 9 | { 10 | public static ObjectHotkeySetup setup; 11 | 12 | public GameObject key1; 13 | public GameObject key2; 14 | public GameObject key3; 15 | public GameObject key4; 16 | public GameObject key5; 17 | public GameObject key6; 18 | public GameObject key7; 19 | public GameObject key8; 20 | public GameObject key9; 21 | 22 | #if UNITY_EDITOR 23 | [InitializeOnLoadMethod] 24 | private static void Initialize() 25 | { 26 | setup = GameObject.FindObjectOfType(); 27 | if (setup == null) 28 | { 29 | var go = new GameObject("HOTKEY__littlehelper"); 30 | setup = go.AddComponent(); 31 | } 32 | } 33 | #endif 34 | } 35 | } -------------------------------------------------------------------------------- /Assets/ULH/ObjectHotkeySetup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4aa92b8018fe9e14da3e2708dcc4bb12 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/icomoon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/Assets/icomoon.ttf -------------------------------------------------------------------------------- /Assets/icomoon.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac175e57f1c1f9f4cb55d37747644558 3 | TrueTypeFontImporter: 4 | externalObjects: {} 5 | serializedVersion: 4 6 | fontSize: 16 7 | forceTextureCase: -2 8 | characterSpacing: 0 9 | characterPadding: 1 10 | includeFontData: 1 11 | fontName: icomoon 12 | fontNames: 13 | - icomoon 14 | fallbackFontReferences: [] 15 | customCharacters: 16 | fontRenderingMode: 0 17 | ascentCalculationMode: 1 18 | useLegacyBoundsCalculation: 0 19 | shouldRoundAdvanceValue: 1 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /Assets/orange juice 2.0.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/Assets/orange juice 2.0.ttf -------------------------------------------------------------------------------- /Assets/orange juice 2.0.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d2afc4a70669e5f4fa646f5c15bee29d 3 | TrueTypeFontImporter: 4 | externalObjects: {} 5 | serializedVersion: 4 6 | fontSize: 16 7 | forceTextureCase: -2 8 | characterSpacing: 0 9 | characterPadding: 1 10 | includeFontData: 1 11 | fontName: orange juice 12 | fontNames: 13 | - orange juice 14 | fallbackFontReferences: [] 15 | customCharacters: 16 | fontRenderingMode: 0 17 | ascentCalculationMode: 1 18 | useLegacyBoundsCalculation: 0 19 | shouldRoundAdvanceValue: 1 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /Logs/Packages-Update.log: -------------------------------------------------------------------------------- 1 | 2 | === Sat Nov 2 03:35:38 2019 3 | 4 | Packages were changed. 5 | Update Mode: updateDependencies 6 | 7 | The following packages were updated: 8 | com.unity.ide.vscode from version 1.1.0 to 1.1.2 9 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": "1.2.16", 4 | "com.unity.ext.nunit": "1.0.0", 5 | "com.unity.ide.rider": "1.1.0", 6 | "com.unity.ide.vscode": "1.1.2", 7 | "com.unity.package-manager-ui": "2.2.0", 8 | "com.unity.test-framework": "1.0.13", 9 | "com.unity.textmeshpro": "2.0.1", 10 | "com.unity.timeline": "1.1.0", 11 | "com.unity.ugui": "1.0.0", 12 | "com.unity.modules.ai": "1.0.0", 13 | "com.unity.modules.androidjni": "1.0.0", 14 | "com.unity.modules.animation": "1.0.0", 15 | "com.unity.modules.assetbundle": "1.0.0", 16 | "com.unity.modules.audio": "1.0.0", 17 | "com.unity.modules.cloth": "1.0.0", 18 | "com.unity.modules.director": "1.0.0", 19 | "com.unity.modules.imageconversion": "1.0.0", 20 | "com.unity.modules.imgui": "1.0.0", 21 | "com.unity.modules.jsonserialize": "1.0.0", 22 | "com.unity.modules.particlesystem": "1.0.0", 23 | "com.unity.modules.physics": "1.0.0", 24 | "com.unity.modules.physics2d": "1.0.0", 25 | "com.unity.modules.screencapture": "1.0.0", 26 | "com.unity.modules.terrain": "1.0.0", 27 | "com.unity.modules.terrainphysics": "1.0.0", 28 | "com.unity.modules.tilemap": "1.0.0", 29 | "com.unity.modules.ui": "1.0.0", 30 | "com.unity.modules.uielements": "1.0.0", 31 | "com.unity.modules.umbra": "1.0.0", 32 | "com.unity.modules.unityanalytics": "1.0.0", 33 | "com.unity.modules.unitywebrequest": "1.0.0", 34 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 35 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 36 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 37 | "com.unity.modules.unitywebrequestwww": "1.0.0", 38 | "com.unity.modules.vehicles": "1.0.0", 39 | "com.unity.modules.video": "1.0.0", 40 | "com.unity.modules.vr": "1.0.0", 41 | "com.unity.modules.wind": "1.0.0", 42 | "com.unity.modules.xr": "1.0.0" 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 1024 20 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 11 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | m_FrictionType: 0 32 | m_EnableEnhancedDeterminism: 0 33 | m_EnableUnifiedHeightmaps: 1 34 | m_DefaultMaxAngluarSpeed: 7 35 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 8 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_ShowLightmapResolutionOverlay: 1 27 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | m_LogWhenShaderIsCompiled: 0 63 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 18 7 | productGUID: 00000000000000000000000000000000 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: 16 | productName: 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 1 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | displayResolutionDialog: 0 56 | iosUseCustomAppBackgroundBehavior: 0 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | preserveFramebufferAlpha: 0 65 | disableDepthAndStencilBuffers: 0 66 | androidStartInFullscreen: 1 67 | androidRenderOutsideSafeArea: 1 68 | androidUseSwappy: 0 69 | androidBlitType: 0 70 | defaultIsNativeResolution: 1 71 | macRetinaSupport: 1 72 | runInBackground: 1 73 | captureSingleScreen: 0 74 | muteOtherAudioSources: 0 75 | Prepare IOS For Recording: 0 76 | Force IOS Speakers When Recording: 0 77 | deferSystemGesturesMode: 0 78 | hideHomeButton: 0 79 | submitAnalytics: 1 80 | usePlayerLog: 1 81 | bakeCollisionMeshes: 0 82 | forceSingleInstance: 0 83 | useFlipModelSwapchain: 1 84 | resizableWindow: 0 85 | useMacAppStoreValidation: 0 86 | macAppStoreCategory: public.app-category.games 87 | gpuSkinning: 1 88 | graphicsJobs: 0 89 | xboxPIXTextureCapture: 0 90 | xboxEnableAvatar: 0 91 | xboxEnableKinect: 0 92 | xboxEnableKinectAutoTracking: 0 93 | xboxEnableFitness: 0 94 | visibleInBackground: 1 95 | allowFullscreenSwitch: 1 96 | graphicsJobMode: 0 97 | fullscreenMode: 1 98 | xboxSpeechDB: 0 99 | xboxEnableHeadOrientation: 0 100 | xboxEnableGuest: 0 101 | xboxEnablePIXSampling: 0 102 | metalFramebufferOnly: 0 103 | xboxOneResolution: 0 104 | xboxOneSResolution: 0 105 | xboxOneXResolution: 3 106 | xboxOneMonoLoggingLevel: 0 107 | xboxOneLoggingLevel: 1 108 | xboxOneDisableEsram: 0 109 | xboxOnePresentImmediateThreshold: 0 110 | switchQueueCommandMemory: 0 111 | switchQueueControlMemory: 16384 112 | switchQueueComputeMemory: 262144 113 | switchNVNShaderPoolsGranularity: 33554432 114 | switchNVNDefaultPoolsGranularity: 16777216 115 | switchNVNOtherPoolsGranularity: 16777216 116 | vulkanEnableSetSRGBWrite: 0 117 | m_SupportedAspectRatios: 118 | 4:3: 1 119 | 5:4: 1 120 | 16:10: 1 121 | 16:9: 1 122 | Others: 1 123 | bundleVersion: 0.1 124 | preloadedAssets: [] 125 | metroInputSource: 0 126 | wsaTransparentSwapchain: 0 127 | m_HolographicPauseOnTrackingLoss: 1 128 | xboxOneDisableKinectGpuReservation: 1 129 | xboxOneEnable7thCore: 1 130 | vrSettings: 131 | cardboard: 132 | depthFormat: 0 133 | enableTransitionView: 0 134 | daydream: 135 | depthFormat: 0 136 | useSustainedPerformanceMode: 0 137 | enableVideoLayer: 0 138 | useProtectedVideoMemory: 0 139 | minimumSupportedHeadTracking: 0 140 | maximumSupportedHeadTracking: 1 141 | hololens: 142 | depthFormat: 1 143 | depthBufferSharingEnabled: 1 144 | lumin: 145 | depthFormat: 0 146 | frameTiming: 2 147 | enableGLCache: 0 148 | glCacheMaxBlobSize: 524288 149 | glCacheMaxFileSize: 8388608 150 | oculus: 151 | sharedDepthBuffer: 1 152 | dashSupport: 1 153 | lowOverheadMode: 0 154 | protectedContext: 0 155 | v2Signing: 0 156 | enable360StereoCapture: 0 157 | isWsaHolographicRemotingEnabled: 0 158 | protectGraphicsMemory: 0 159 | enableFrameTimingStats: 0 160 | useHDRDisplay: 0 161 | m_ColorGamuts: 00000000 162 | targetPixelDensity: 30 163 | resolutionScalingMode: 0 164 | androidSupportedAspectRatio: 1 165 | androidMaxAspectRatio: 2.1 166 | applicationIdentifier: {} 167 | buildNumber: {} 168 | AndroidBundleVersionCode: 1 169 | AndroidMinSdkVersion: 16 170 | AndroidTargetSdkVersion: 0 171 | AndroidPreferredInstallLocation: 1 172 | aotOptions: 173 | stripEngineCode: 1 174 | iPhoneStrippingLevel: 0 175 | iPhoneScriptCallOptimization: 0 176 | ForceInternetPermission: 0 177 | ForceSDCardPermission: 0 178 | CreateWallpaper: 0 179 | APKExpansionFiles: 0 180 | keepLoadedShadersAlive: 0 181 | StripUnusedMeshComponents: 1 182 | VertexChannelCompressionMask: 4054 183 | iPhoneSdkVersion: 988 184 | iOSTargetOSVersionString: 9.0 185 | tvOSSdkVersion: 0 186 | tvOSRequireExtendedGameController: 0 187 | tvOSTargetOSVersionString: 9.0 188 | uIPrerenderedIcon: 0 189 | uIRequiresPersistentWiFi: 0 190 | uIRequiresFullScreen: 1 191 | uIStatusBarHidden: 1 192 | uIExitOnSuspend: 0 193 | uIStatusBarStyle: 0 194 | iPhoneSplashScreen: {fileID: 0} 195 | iPhoneHighResSplashScreen: {fileID: 0} 196 | iPhoneTallHighResSplashScreen: {fileID: 0} 197 | iPhone47inSplashScreen: {fileID: 0} 198 | iPhone55inPortraitSplashScreen: {fileID: 0} 199 | iPhone55inLandscapeSplashScreen: {fileID: 0} 200 | iPhone58inPortraitSplashScreen: {fileID: 0} 201 | iPhone58inLandscapeSplashScreen: {fileID: 0} 202 | iPadPortraitSplashScreen: {fileID: 0} 203 | iPadHighResPortraitSplashScreen: {fileID: 0} 204 | iPadLandscapeSplashScreen: {fileID: 0} 205 | iPadHighResLandscapeSplashScreen: {fileID: 0} 206 | iPhone65inPortraitSplashScreen: {fileID: 0} 207 | iPhone65inLandscapeSplashScreen: {fileID: 0} 208 | iPhone61inPortraitSplashScreen: {fileID: 0} 209 | iPhone61inLandscapeSplashScreen: {fileID: 0} 210 | appleTVSplashScreen: {fileID: 0} 211 | appleTVSplashScreen2x: {fileID: 0} 212 | tvOSSmallIconLayers: [] 213 | tvOSSmallIconLayers2x: [] 214 | tvOSLargeIconLayers: [] 215 | tvOSLargeIconLayers2x: [] 216 | tvOSTopShelfImageLayers: [] 217 | tvOSTopShelfImageLayers2x: [] 218 | tvOSTopShelfImageWideLayers: [] 219 | tvOSTopShelfImageWideLayers2x: [] 220 | iOSLaunchScreenType: 0 221 | iOSLaunchScreenPortrait: {fileID: 0} 222 | iOSLaunchScreenLandscape: {fileID: 0} 223 | iOSLaunchScreenBackgroundColor: 224 | serializedVersion: 2 225 | rgba: 0 226 | iOSLaunchScreenFillPct: 100 227 | iOSLaunchScreenSize: 100 228 | iOSLaunchScreenCustomXibPath: 229 | iOSLaunchScreeniPadType: 0 230 | iOSLaunchScreeniPadImage: {fileID: 0} 231 | iOSLaunchScreeniPadBackgroundColor: 232 | serializedVersion: 2 233 | rgba: 0 234 | iOSLaunchScreeniPadFillPct: 100 235 | iOSLaunchScreeniPadSize: 100 236 | iOSLaunchScreeniPadCustomXibPath: 237 | iOSUseLaunchScreenStoryboard: 0 238 | iOSLaunchScreenCustomStoryboardPath: 239 | iOSDeviceRequirements: [] 240 | iOSURLSchemes: [] 241 | iOSBackgroundModes: 0 242 | iOSMetalForceHardShadows: 0 243 | metalEditorSupport: 1 244 | metalAPIValidation: 1 245 | iOSRenderExtraFrameOnPause: 0 246 | appleDeveloperTeamID: 247 | iOSManualSigningProvisioningProfileID: 248 | tvOSManualSigningProvisioningProfileID: 249 | iOSManualSigningProvisioningProfileType: 0 250 | tvOSManualSigningProvisioningProfileType: 0 251 | appleEnableAutomaticSigning: 0 252 | iOSRequireARKit: 0 253 | iOSAutomaticallyDetectAndAddCapabilities: 1 254 | appleEnableProMotion: 0 255 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 256 | templatePackageId: com.unity.template.3d@3.1.2 257 | templateDefaultScene: Assets/Scenes/SampleScene.unity 258 | AndroidTargetArchitectures: 1 259 | AndroidSplashScreenScale: 0 260 | androidSplashScreen: {fileID: 0} 261 | AndroidKeystoreName: '{inproject}: ' 262 | AndroidKeyaliasName: 263 | AndroidBuildApkPerCpuArchitecture: 0 264 | AndroidTVCompatibility: 0 265 | AndroidIsGame: 1 266 | AndroidEnableTango: 0 267 | androidEnableBanner: 1 268 | androidUseLowAccuracyLocation: 0 269 | androidUseCustomKeystore: 0 270 | m_AndroidBanners: 271 | - width: 320 272 | height: 180 273 | banner: {fileID: 0} 274 | androidGamepadSupportLevel: 0 275 | AndroidValidateAppBundleSize: 1 276 | AndroidAppBundleSizeToValidate: 150 277 | resolutionDialogBanner: {fileID: 0} 278 | m_BuildTargetIcons: [] 279 | m_BuildTargetPlatformIcons: [] 280 | m_BuildTargetBatching: 281 | - m_BuildTarget: Standalone 282 | m_StaticBatching: 1 283 | m_DynamicBatching: 0 284 | - m_BuildTarget: tvOS 285 | m_StaticBatching: 1 286 | m_DynamicBatching: 0 287 | - m_BuildTarget: Android 288 | m_StaticBatching: 1 289 | m_DynamicBatching: 0 290 | - m_BuildTarget: iPhone 291 | m_StaticBatching: 1 292 | m_DynamicBatching: 0 293 | - m_BuildTarget: WebGL 294 | m_StaticBatching: 0 295 | m_DynamicBatching: 0 296 | m_BuildTargetGraphicsAPIs: 297 | - m_BuildTarget: AndroidPlayer 298 | m_APIs: 150000000b000000 299 | m_Automatic: 0 300 | - m_BuildTarget: iOSSupport 301 | m_APIs: 10000000 302 | m_Automatic: 1 303 | - m_BuildTarget: AppleTVSupport 304 | m_APIs: 10000000 305 | m_Automatic: 0 306 | - m_BuildTarget: WebGLSupport 307 | m_APIs: 0b000000 308 | m_Automatic: 1 309 | m_BuildTargetVRSettings: 310 | - m_BuildTarget: Standalone 311 | m_Enabled: 0 312 | m_Devices: 313 | - Oculus 314 | - OpenVR 315 | openGLRequireES31: 0 316 | openGLRequireES31AEP: 0 317 | openGLRequireES32: 0 318 | vuforiaEnabled: 0 319 | m_TemplateCustomTags: {} 320 | mobileMTRendering: 321 | Android: 1 322 | iPhone: 1 323 | tvOS: 1 324 | m_BuildTargetGroupLightmapEncodingQuality: [] 325 | m_BuildTargetGroupLightmapSettings: [] 326 | playModeTestRunnerEnabled: 0 327 | runPlayModeTestAsEditModeTest: 0 328 | actionOnDotNetUnhandledException: 1 329 | enableInternalProfiler: 0 330 | logObjCUncaughtExceptions: 1 331 | enableCrashReportAPI: 0 332 | cameraUsageDescription: 333 | locationUsageDescription: 334 | microphoneUsageDescription: 335 | switchNetLibKey: 336 | switchSocketMemoryPoolSize: 6144 337 | switchSocketAllocatorPoolSize: 128 338 | switchSocketConcurrencyLimit: 14 339 | switchScreenResolutionBehavior: 2 340 | switchUseCPUProfiler: 0 341 | switchApplicationID: 0x01004b9000490000 342 | switchNSODependencies: 343 | switchTitleNames_0: 344 | switchTitleNames_1: 345 | switchTitleNames_2: 346 | switchTitleNames_3: 347 | switchTitleNames_4: 348 | switchTitleNames_5: 349 | switchTitleNames_6: 350 | switchTitleNames_7: 351 | switchTitleNames_8: 352 | switchTitleNames_9: 353 | switchTitleNames_10: 354 | switchTitleNames_11: 355 | switchTitleNames_12: 356 | switchTitleNames_13: 357 | switchTitleNames_14: 358 | switchPublisherNames_0: 359 | switchPublisherNames_1: 360 | switchPublisherNames_2: 361 | switchPublisherNames_3: 362 | switchPublisherNames_4: 363 | switchPublisherNames_5: 364 | switchPublisherNames_6: 365 | switchPublisherNames_7: 366 | switchPublisherNames_8: 367 | switchPublisherNames_9: 368 | switchPublisherNames_10: 369 | switchPublisherNames_11: 370 | switchPublisherNames_12: 371 | switchPublisherNames_13: 372 | switchPublisherNames_14: 373 | switchIcons_0: {fileID: 0} 374 | switchIcons_1: {fileID: 0} 375 | switchIcons_2: {fileID: 0} 376 | switchIcons_3: {fileID: 0} 377 | switchIcons_4: {fileID: 0} 378 | switchIcons_5: {fileID: 0} 379 | switchIcons_6: {fileID: 0} 380 | switchIcons_7: {fileID: 0} 381 | switchIcons_8: {fileID: 0} 382 | switchIcons_9: {fileID: 0} 383 | switchIcons_10: {fileID: 0} 384 | switchIcons_11: {fileID: 0} 385 | switchIcons_12: {fileID: 0} 386 | switchIcons_13: {fileID: 0} 387 | switchIcons_14: {fileID: 0} 388 | switchSmallIcons_0: {fileID: 0} 389 | switchSmallIcons_1: {fileID: 0} 390 | switchSmallIcons_2: {fileID: 0} 391 | switchSmallIcons_3: {fileID: 0} 392 | switchSmallIcons_4: {fileID: 0} 393 | switchSmallIcons_5: {fileID: 0} 394 | switchSmallIcons_6: {fileID: 0} 395 | switchSmallIcons_7: {fileID: 0} 396 | switchSmallIcons_8: {fileID: 0} 397 | switchSmallIcons_9: {fileID: 0} 398 | switchSmallIcons_10: {fileID: 0} 399 | switchSmallIcons_11: {fileID: 0} 400 | switchSmallIcons_12: {fileID: 0} 401 | switchSmallIcons_13: {fileID: 0} 402 | switchSmallIcons_14: {fileID: 0} 403 | switchManualHTML: 404 | switchAccessibleURLs: 405 | switchLegalInformation: 406 | switchMainThreadStackSize: 1048576 407 | switchPresenceGroupId: 408 | switchLogoHandling: 0 409 | switchReleaseVersion: 0 410 | switchDisplayVersion: 1.0.0 411 | switchStartupUserAccount: 0 412 | switchTouchScreenUsage: 0 413 | switchSupportedLanguagesMask: 0 414 | switchLogoType: 0 415 | switchApplicationErrorCodeCategory: 416 | switchUserAccountSaveDataSize: 0 417 | switchUserAccountSaveDataJournalSize: 0 418 | switchApplicationAttribute: 0 419 | switchCardSpecSize: -1 420 | switchCardSpecClock: -1 421 | switchRatingsMask: 0 422 | switchRatingsInt_0: 0 423 | switchRatingsInt_1: 0 424 | switchRatingsInt_2: 0 425 | switchRatingsInt_3: 0 426 | switchRatingsInt_4: 0 427 | switchRatingsInt_5: 0 428 | switchRatingsInt_6: 0 429 | switchRatingsInt_7: 0 430 | switchRatingsInt_8: 0 431 | switchRatingsInt_9: 0 432 | switchRatingsInt_10: 0 433 | switchRatingsInt_11: 0 434 | switchLocalCommunicationIds_0: 435 | switchLocalCommunicationIds_1: 436 | switchLocalCommunicationIds_2: 437 | switchLocalCommunicationIds_3: 438 | switchLocalCommunicationIds_4: 439 | switchLocalCommunicationIds_5: 440 | switchLocalCommunicationIds_6: 441 | switchLocalCommunicationIds_7: 442 | switchParentalControl: 0 443 | switchAllowsScreenshot: 1 444 | switchAllowsVideoCapturing: 1 445 | switchAllowsRuntimeAddOnContentInstall: 0 446 | switchDataLossConfirmation: 0 447 | switchUserAccountLockEnabled: 0 448 | switchSystemResourceMemory: 16777216 449 | switchSupportedNpadStyles: 22 450 | switchNativeFsCacheSize: 32 451 | switchIsHoldTypeHorizontal: 0 452 | switchSupportedNpadCount: 8 453 | switchSocketConfigEnabled: 0 454 | switchTcpInitialSendBufferSize: 32 455 | switchTcpInitialReceiveBufferSize: 64 456 | switchTcpAutoSendBufferSizeMax: 256 457 | switchTcpAutoReceiveBufferSizeMax: 256 458 | switchUdpSendBufferSize: 9 459 | switchUdpReceiveBufferSize: 42 460 | switchSocketBufferEfficiency: 4 461 | switchSocketInitializeEnabled: 1 462 | switchNetworkInterfaceManagerInitializeEnabled: 1 463 | switchPlayerConnectionEnabled: 1 464 | ps4NPAgeRating: 12 465 | ps4NPTitleSecret: 466 | ps4NPTrophyPackPath: 467 | ps4ParentalLevel: 11 468 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 469 | ps4Category: 0 470 | ps4MasterVersion: 01.00 471 | ps4AppVersion: 01.00 472 | ps4AppType: 0 473 | ps4ParamSfxPath: 474 | ps4VideoOutPixelFormat: 0 475 | ps4VideoOutInitialWidth: 1920 476 | ps4VideoOutBaseModeInitialWidth: 1920 477 | ps4VideoOutReprojectionRate: 60 478 | ps4PronunciationXMLPath: 479 | ps4PronunciationSIGPath: 480 | ps4BackgroundImagePath: 481 | ps4StartupImagePath: 482 | ps4StartupImagesFolder: 483 | ps4IconImagesFolder: 484 | ps4SaveDataImagePath: 485 | ps4SdkOverride: 486 | ps4BGMPath: 487 | ps4ShareFilePath: 488 | ps4ShareOverlayImagePath: 489 | ps4PrivacyGuardImagePath: 490 | ps4NPtitleDatPath: 491 | ps4RemotePlayKeyAssignment: -1 492 | ps4RemotePlayKeyMappingDir: 493 | ps4PlayTogetherPlayerCount: 0 494 | ps4EnterButtonAssignment: 1 495 | ps4ApplicationParam1: 0 496 | ps4ApplicationParam2: 0 497 | ps4ApplicationParam3: 0 498 | ps4ApplicationParam4: 0 499 | ps4DownloadDataSize: 0 500 | ps4GarlicHeapSize: 2048 501 | ps4ProGarlicHeapSize: 2560 502 | playerPrefsMaxSize: 32768 503 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 504 | ps4pnSessions: 1 505 | ps4pnPresence: 1 506 | ps4pnFriends: 1 507 | ps4pnGameCustomData: 1 508 | playerPrefsSupport: 0 509 | enableApplicationExit: 0 510 | resetTempFolder: 1 511 | restrictedAudioUsageRights: 0 512 | ps4UseResolutionFallback: 0 513 | ps4ReprojectionSupport: 0 514 | ps4UseAudio3dBackend: 0 515 | ps4SocialScreenEnabled: 0 516 | ps4ScriptOptimizationLevel: 0 517 | ps4Audio3dVirtualSpeakerCount: 14 518 | ps4attribCpuUsage: 0 519 | ps4PatchPkgPath: 520 | ps4PatchLatestPkgPath: 521 | ps4PatchChangeinfoPath: 522 | ps4PatchDayOne: 0 523 | ps4attribUserManagement: 0 524 | ps4attribMoveSupport: 0 525 | ps4attrib3DSupport: 0 526 | ps4attribShareSupport: 0 527 | ps4attribExclusiveVR: 0 528 | ps4disableAutoHideSplash: 0 529 | ps4videoRecordingFeaturesUsed: 0 530 | ps4contentSearchFeaturesUsed: 0 531 | ps4attribEyeToEyeDistanceSettingVR: 0 532 | ps4IncludedModules: [] 533 | monoEnv: 534 | splashScreenBackgroundSourceLandscape: {fileID: 0} 535 | splashScreenBackgroundSourcePortrait: {fileID: 0} 536 | blurSplashScreenBackground: 1 537 | spritePackerPolicy: 538 | webGLMemorySize: 16 539 | webGLExceptionSupport: 1 540 | webGLNameFilesAsHashes: 0 541 | webGLDataCaching: 1 542 | webGLDebugSymbols: 0 543 | webGLEmscriptenArgs: 544 | webGLModulesDirectory: 545 | webGLTemplate: APPLICATION:Default 546 | webGLAnalyzeBuildSize: 0 547 | webGLUseEmbeddedResources: 0 548 | webGLCompressionFormat: 1 549 | webGLLinkerTarget: 1 550 | webGLThreadsSupport: 0 551 | webGLWasmStreaming: 0 552 | scriptingDefineSymbols: {} 553 | platformArchitecture: {} 554 | scriptingBackend: {} 555 | il2cppCompilerConfiguration: {} 556 | managedStrippingLevel: {} 557 | incrementalIl2cppBuild: {} 558 | allowUnsafeCode: 0 559 | additionalIl2CppArgs: 560 | scriptingRuntimeVersion: 1 561 | gcIncremental: 0 562 | gcWBarrierValidation: 0 563 | apiCompatibilityLevelPerPlatform: {} 564 | m_RenderingPath: 1 565 | m_MobileRenderingPath: 1 566 | metroPackageName: Template_3D 567 | metroPackageVersion: 568 | metroCertificatePath: 569 | metroCertificatePassword: 570 | metroCertificateSubject: 571 | metroCertificateIssuer: 572 | metroCertificateNotAfter: 0000000000000000 573 | metroApplicationDescription: Template_3D 574 | wsaImages: {} 575 | metroTileShortName: 576 | metroTileShowName: 0 577 | metroMediumTileShowName: 0 578 | metroLargeTileShowName: 0 579 | metroWideTileShowName: 0 580 | metroSupportStreamingInstall: 0 581 | metroLastRequiredScene: 0 582 | metroDefaultTileSize: 1 583 | metroTileForegroundText: 2 584 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 585 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 586 | a: 1} 587 | metroSplashScreenUseBackgroundColor: 0 588 | platformCapabilities: {} 589 | metroTargetDeviceFamilies: {} 590 | metroFTAName: 591 | metroFTAFileTypes: [] 592 | metroProtocolName: 593 | XboxOneProductId: 594 | XboxOneUpdateKey: 595 | XboxOneSandboxId: 596 | XboxOneContentId: 597 | XboxOneTitleId: 598 | XboxOneSCId: 599 | XboxOneGameOsOverridePath: 600 | XboxOnePackagingOverridePath: 601 | XboxOneAppManifestOverridePath: 602 | XboxOneVersion: 1.0.0.0 603 | XboxOnePackageEncryption: 0 604 | XboxOnePackageUpdateGranularity: 2 605 | XboxOneDescription: 606 | XboxOneLanguage: 607 | - enus 608 | XboxOneCapability: [] 609 | XboxOneGameRating: {} 610 | XboxOneIsContentPackage: 0 611 | XboxOneEnableGPUVariability: 1 612 | XboxOneSockets: {} 613 | XboxOneSplashScreen: {fileID: 0} 614 | XboxOneAllowedProductIds: [] 615 | XboxOnePersistentLocalStorageSize: 0 616 | XboxOneXTitleMemory: 8 617 | xboxOneScriptCompiler: 1 618 | XboxOneOverrideIdentityName: 619 | vrEditorSettings: 620 | daydream: 621 | daydreamIconForeground: {fileID: 0} 622 | daydreamIconBackground: {fileID: 0} 623 | cloudServicesEnabled: 624 | UNet: 1 625 | luminIcon: 626 | m_Name: 627 | m_ModelFolderPath: 628 | m_PortalFolderPath: 629 | luminCert: 630 | m_CertPath: 631 | m_SignPackage: 1 632 | luminIsChannelApp: 0 633 | luminVersion: 634 | m_VersionCode: 1 635 | m_VersionName: 636 | facebookSdkVersion: 7.9.4 637 | facebookAppId: 638 | facebookCookies: 1 639 | facebookLogging: 1 640 | facebookStatus: 1 641 | facebookXfbml: 0 642 | facebookFrictionlessRequests: 1 643 | apiCompatibilityLevel: 6 644 | cloudProjectId: 645 | framebufferDepthMemorylessMode: 0 646 | projectName: 647 | organizationId: 648 | cloudEnabled: 0 649 | enableNativePlatformBackendsForNewInputSystem: 0 650 | disableOldInputManagerSupport: 0 651 | legacyClampBlendShapeWeights: 0 652 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.2.9f1 2 | m_EditorVersionWithRevision: 2019.2.9f1 (ebce4d76e6e8) 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | excludedTargetPlatforms: [] 44 | - serializedVersion: 2 45 | name: Low 46 | pixelLightCount: 0 47 | shadows: 0 48 | shadowResolution: 0 49 | shadowProjection: 1 50 | shadowCascades: 1 51 | shadowDistance: 20 52 | shadowNearPlaneOffset: 3 53 | shadowCascade2Split: 0.33333334 54 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 55 | shadowmaskMode: 0 56 | blendWeights: 2 57 | textureQuality: 0 58 | anisotropicTextures: 0 59 | antiAliasing: 0 60 | softParticles: 0 61 | softVegetation: 0 62 | realtimeReflectionProbes: 0 63 | billboardsFaceCameraPosition: 0 64 | vSyncCount: 0 65 | lodBias: 0.4 66 | maximumLODLevel: 0 67 | streamingMipmapsActive: 0 68 | streamingMipmapsAddAllCameras: 1 69 | streamingMipmapsMemoryBudget: 512 70 | streamingMipmapsRenderersPerFrame: 512 71 | streamingMipmapsMaxLevelReduction: 2 72 | streamingMipmapsMaxFileIORequests: 1024 73 | particleRaycastBudget: 16 74 | asyncUploadTimeSlice: 2 75 | asyncUploadBufferSize: 16 76 | asyncUploadPersistentBuffer: 1 77 | resolutionScalingFixedDPIFactor: 1 78 | excludedTargetPlatforms: [] 79 | - serializedVersion: 2 80 | name: Medium 81 | pixelLightCount: 1 82 | shadows: 1 83 | shadowResolution: 0 84 | shadowProjection: 1 85 | shadowCascades: 1 86 | shadowDistance: 20 87 | shadowNearPlaneOffset: 3 88 | shadowCascade2Split: 0.33333334 89 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 90 | shadowmaskMode: 0 91 | blendWeights: 2 92 | textureQuality: 0 93 | anisotropicTextures: 1 94 | antiAliasing: 0 95 | softParticles: 0 96 | softVegetation: 0 97 | realtimeReflectionProbes: 0 98 | billboardsFaceCameraPosition: 0 99 | vSyncCount: 1 100 | lodBias: 0.7 101 | maximumLODLevel: 0 102 | streamingMipmapsActive: 0 103 | streamingMipmapsAddAllCameras: 1 104 | streamingMipmapsMemoryBudget: 512 105 | streamingMipmapsRenderersPerFrame: 512 106 | streamingMipmapsMaxLevelReduction: 2 107 | streamingMipmapsMaxFileIORequests: 1024 108 | particleRaycastBudget: 64 109 | asyncUploadTimeSlice: 2 110 | asyncUploadBufferSize: 16 111 | asyncUploadPersistentBuffer: 1 112 | resolutionScalingFixedDPIFactor: 1 113 | excludedTargetPlatforms: [] 114 | - serializedVersion: 2 115 | name: High 116 | pixelLightCount: 2 117 | shadows: 2 118 | shadowResolution: 1 119 | shadowProjection: 1 120 | shadowCascades: 2 121 | shadowDistance: 40 122 | shadowNearPlaneOffset: 3 123 | shadowCascade2Split: 0.33333334 124 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 125 | shadowmaskMode: 1 126 | blendWeights: 2 127 | textureQuality: 0 128 | anisotropicTextures: 1 129 | antiAliasing: 0 130 | softParticles: 0 131 | softVegetation: 1 132 | realtimeReflectionProbes: 1 133 | billboardsFaceCameraPosition: 1 134 | vSyncCount: 1 135 | lodBias: 1 136 | maximumLODLevel: 0 137 | streamingMipmapsActive: 0 138 | streamingMipmapsAddAllCameras: 1 139 | streamingMipmapsMemoryBudget: 512 140 | streamingMipmapsRenderersPerFrame: 512 141 | streamingMipmapsMaxLevelReduction: 2 142 | streamingMipmapsMaxFileIORequests: 1024 143 | particleRaycastBudget: 256 144 | asyncUploadTimeSlice: 2 145 | asyncUploadBufferSize: 16 146 | asyncUploadPersistentBuffer: 1 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Very High 151 | pixelLightCount: 3 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 2 156 | shadowDistance: 70 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 1.5 171 | maximumLODLevel: 0 172 | streamingMipmapsActive: 0 173 | streamingMipmapsAddAllCameras: 1 174 | streamingMipmapsMemoryBudget: 512 175 | streamingMipmapsRenderersPerFrame: 512 176 | streamingMipmapsMaxLevelReduction: 2 177 | streamingMipmapsMaxFileIORequests: 1024 178 | particleRaycastBudget: 1024 179 | asyncUploadTimeSlice: 2 180 | asyncUploadBufferSize: 16 181 | asyncUploadPersistentBuffer: 1 182 | resolutionScalingFixedDPIFactor: 1 183 | excludedTargetPlatforms: [] 184 | - serializedVersion: 2 185 | name: Ultra 186 | pixelLightCount: 4 187 | shadows: 2 188 | shadowResolution: 2 189 | shadowProjection: 1 190 | shadowCascades: 4 191 | shadowDistance: 150 192 | shadowNearPlaneOffset: 3 193 | shadowCascade2Split: 0.33333334 194 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 195 | shadowmaskMode: 1 196 | blendWeights: 4 197 | textureQuality: 0 198 | anisotropicTextures: 2 199 | antiAliasing: 2 200 | softParticles: 1 201 | softVegetation: 1 202 | realtimeReflectionProbes: 1 203 | billboardsFaceCameraPosition: 1 204 | vSyncCount: 1 205 | lodBias: 2 206 | maximumLODLevel: 0 207 | streamingMipmapsActive: 0 208 | streamingMipmapsAddAllCameras: 1 209 | streamingMipmapsMemoryBudget: 512 210 | streamingMipmapsRenderersPerFrame: 512 211 | streamingMipmapsMaxLevelReduction: 2 212 | streamingMipmapsMaxFileIORequests: 1024 213 | particleRaycastBudget: 4096 214 | asyncUploadTimeSlice: 2 215 | asyncUploadBufferSize: 16 216 | asyncUploadPersistentBuffer: 1 217 | resolutionScalingFixedDPIFactor: 1 218 | excludedTargetPlatforms: [] 219 | m_PerPlatformDefaultQuality: 220 | Android: 2 221 | Lumin: 5 222 | Nintendo 3DS: 5 223 | Nintendo Switch: 5 224 | PS4: 5 225 | PSP2: 2 226 | Standalone: 5 227 | WebGL: 3 228 | Windows Store Apps: 5 229 | XboxOne: 5 230 | iPhone: 2 231 | tvOS: 2 232 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | LittleHelper 2 | ==== 3 | 4 | This extension helps out people who suffer from Unity's poor UX.
5 | It mostly does not add particular features, it just make Unity editor to act more naturally. 6 | 7 | * Unity 2019 is strongly recommended 8 | 9 | Config 10 | ---- 11 | ![CONFIG](img/config.png) 12 | 13 | You can turn on/off each features in config window. 14 | 15 | UI 16 | ---- 17 | ### Distance Ruler 18 | ![img](img/ruler.png) 19 | 20 | Measuring ditance between more than 2 objects by selecting. This is useful when you are working with an UI guidelines (such as zepplin). 21 | 22 | ### Object Size 23 | ![img](img/sizeview.png) 24 | 25 | Unity does not show up object's size in fill mode(RectTransform). So I made it. 26 | 27 | ### Quick Select 28 | ![gif](gif/quickselect.gif) 29 | 30 | Press `Alt + 1` to select all texts with same __font__.
31 | Press `Alt + 2` to select all texts with same __size__. 32 | 33 | ### Remember last property for Text 34 | ![gif](gif/textdata.gif) 35 | 36 | Nobody wants to use `Arial` and ugly gray color as a default text property. 37 | 38 | ### AutoSize for Text 39 | ![gif](gif/autofit.gif) 40 | 41 | ### Unit(1px) movement with Keyboard 42 | ![gif](gif/ui_arrow.gif) 43 | 44 | A tiny joy for UI designers(devs). 45 | 46 | ### Keep inspector on empty selection 47 | ![gif](gif/keep_selection.gif) 48 | 49 | Editor 50 | ---- 51 | ### Restore inspector on Drag 52 | Most desired feature for me, and also the reason why I made this project.
53 | When you clicked the asset to drag, inspector window will be changed to the asset's config. This made me crazy all the time. 54 | 55 | ![gif](gif/drag.gif) 56 | 57 | ### Move to Top, Move to Bottom 58 | ![gif](gif/move_to_top.gif) 59 | 60 | You don't need to press `Move Up/Down` button multiple times! 61 | 62 | ### Stick to Ground 63 | ![gif](gif/sticktoground.gif) 64 | 65 | Press `SpaceBar` to place n floating object on nearest ground. 66 | 67 | 68 | Scripting 69 | ---- 70 | 71 | ### Script template 72 | Create a `template.tcs` file to override Untiy's default template. This can be applied to each directory. 73 | -------------------------------------------------------------------------------- /gif/autofit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/gif/autofit.gif -------------------------------------------------------------------------------- /gif/drag.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/gif/drag.gif -------------------------------------------------------------------------------- /gif/keep_selection.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/gif/keep_selection.gif -------------------------------------------------------------------------------- /gif/move_to_top.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/gif/move_to_top.gif -------------------------------------------------------------------------------- /gif/quickselect.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/gif/quickselect.gif -------------------------------------------------------------------------------- /gif/sticktoground.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/gif/sticktoground.gif -------------------------------------------------------------------------------- /gif/textdata.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/gif/textdata.gif -------------------------------------------------------------------------------- /gif/ui_arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/gif/ui_arrow.gif -------------------------------------------------------------------------------- /img/config.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/img/config.png -------------------------------------------------------------------------------- /img/ruler.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/img/ruler.png -------------------------------------------------------------------------------- /img/sizeview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/img/sizeview.png -------------------------------------------------------------------------------- /video/autofit.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/video/autofit.mp4 -------------------------------------------------------------------------------- /video/keep_selection.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/video/keep_selection.mp4 -------------------------------------------------------------------------------- /video/move_to_top.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/video/move_to_top.mp4 -------------------------------------------------------------------------------- /video/ui_arrow.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pjc0247/LittleHelperForUnity/dc6269004fd621d77f23d4250429050a9e2681bc/video/ui_arrow.mp4 --------------------------------------------------------------------------------