├── .gitignore ├── Assets ├── Hypertext.meta └── Hypertext │ ├── Examples.meta │ ├── Examples │ ├── RegexExample.cs │ ├── RegexExample.cs.meta │ ├── RegexExample.unity │ ├── RegexExample.unity.meta │ ├── RegexHypertext.cs │ └── RegexHypertext.cs.meta │ ├── Scripts.meta │ └── Scripts │ ├── HypertextBase.cs │ ├── HypertextBase.cs.meta │ ├── ObjectPool.cs │ ├── ObjectPool.cs.meta │ ├── jp.setchi.ugui-hypertext.asmdef │ └── jp.setchi.ugui-hypertext.asmdef.meta ├── LICENSE ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset └── VFXManager.asset ├── README.md └── screencast.gif /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | [Ll]ogs/ 7 | Assets/AssetStoreTools* 8 | 9 | # Windows 10 | Thumbs.db 11 | Desktop.ini 12 | 13 | # macOS 14 | .DS_Store 15 | 16 | # Uncomment this line if you wish to ignore the asset store tools plugin 17 | # [Aa]ssets/AssetStoreTools* 18 | 19 | # TextMesh Pro files 20 | [Aa]ssets/TextMesh*Pro/ 21 | 22 | # Visual Studio cache directory 23 | .vs/ 24 | 25 | # Gradle cache directory 26 | .gradle/ 27 | 28 | # Autogenerated VS/MD/Consulo solution and project files 29 | ExportedObj/ 30 | .consulo/ 31 | *.csproj 32 | *.unityproj 33 | *.sln 34 | *.suo 35 | *.tmp 36 | *.user 37 | *.userprefs 38 | *.pidb 39 | *.booproj 40 | *.svd 41 | *.pdb 42 | *.mdb 43 | *.opendb 44 | *.VC.db 45 | 46 | # Unity3D generated meta files 47 | *.pidb.meta 48 | *.pdb.meta 49 | *.mdb.meta 50 | 51 | # Unity3D generated file on crash reports 52 | sysinfo.txt 53 | 54 | # Builds 55 | *.apk 56 | *.unitypackage 57 | 58 | # Crashlytics generated file 59 | crashlytics-build.properties 60 | -------------------------------------------------------------------------------- /Assets/Hypertext.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 691fea07839e1484fb6142b43848e5fc 3 | folderAsset: yes 4 | timeCreated: 1469957936 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Hypertext/Examples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b00a308880c0de4ea4f3757a1a8fd30 3 | folderAsset: yes 4 | timeCreated: 1469957949 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Hypertext/Examples/RegexExample.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * uGUI-Hypertext (https://github.com/setchi/uGUI-Hypertext) 3 | * Copyright (c) 2019 setchi 4 | * Licensed under MIT (https://github.com/setchi/uGUI-Hypertext/blob/master/LICENSE) 5 | */ 6 | 7 | using UnityEngine; 8 | 9 | namespace Hypertext 10 | { 11 | public class RegexExample : MonoBehaviour 12 | { 13 | [SerializeField] RegexHypertext text = default; 14 | 15 | const string RegexUrl = @"https?://(?:[!-~]+\.)+[!-~]+"; 16 | const string RegexHashtag = @"[\s^][##]\w+"; 17 | 18 | void Start() 19 | { 20 | text.OnClick(RegexUrl, Color.cyan, url => Debug.Log(url)); 21 | text.OnClick(RegexHashtag, Color.green, hashtag => Debug.Log(hashtag)); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/Hypertext/Examples/RegexExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f421d3e9d8463c439c53f37747a7dd2 3 | timeCreated: 1469948521 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Hypertext/Examples/RegexExample.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: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 0 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 10 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 0 64 | m_CompAOExponentDirect: 0 65 | m_Padding: 2 66 | m_LightmapParameters: {fileID: 0} 67 | m_LightmapsBakeMode: 1 68 | m_TextureCompression: 1 69 | m_FinalGather: 0 70 | m_FinalGatherFiltering: 1 71 | m_FinalGatherRayCount: 1024 72 | m_ReflectionCompression: 2 73 | m_MixedBakeMode: 1 74 | m_BakeBackend: 0 75 | m_PVRSampling: 1 76 | m_PVRDirectSampleCount: 32 77 | m_PVRSampleCount: 500 78 | m_PVRBounces: 2 79 | m_PVRFilterTypeDirect: 0 80 | m_PVRFilterTypeIndirect: 0 81 | m_PVRFilterTypeAO: 0 82 | m_PVRFilteringMode: 0 83 | m_PVRCulling: 1 84 | m_PVRFilteringGaussRadiusDirect: 1 85 | m_PVRFilteringGaussRadiusIndirect: 5 86 | m_PVRFilteringGaussRadiusAO: 2 87 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 88 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 89 | m_PVRFilteringAtrousPositionSigmaAO: 1 90 | m_ShowResolutionOverlay: 1 91 | m_LightingDataAsset: {fileID: 0} 92 | m_UseShadowmask: 0 93 | --- !u!196 &4 94 | NavMeshSettings: 95 | serializedVersion: 2 96 | m_ObjectHideFlags: 0 97 | m_BuildSettings: 98 | serializedVersion: 2 99 | agentTypeID: 0 100 | agentRadius: 0.5 101 | agentHeight: 2 102 | agentSlope: 45 103 | agentClimb: 0.4 104 | ledgeDropHeight: 0 105 | maxJumpAcrossDistance: 0 106 | minRegionArea: 2 107 | manualCellSize: 0 108 | cellSize: 0.16666667 109 | manualTileSize: 0 110 | tileSize: 256 111 | accuratePlacement: 0 112 | debug: 113 | m_Flags: 0 114 | m_NavMeshData: {fileID: 0} 115 | --- !u!1 &836813868 116 | GameObject: 117 | m_ObjectHideFlags: 0 118 | m_CorrespondingSourceObject: {fileID: 0} 119 | m_PrefabInstance: {fileID: 0} 120 | m_PrefabAsset: {fileID: 0} 121 | serializedVersion: 6 122 | m_Component: 123 | - component: {fileID: 836813873} 124 | - component: {fileID: 836813872} 125 | - component: {fileID: 836813870} 126 | - component: {fileID: 836813869} 127 | m_Layer: 0 128 | m_Name: Main Camera 129 | m_TagString: MainCamera 130 | m_Icon: {fileID: 0} 131 | m_NavMeshLayer: 0 132 | m_StaticEditorFlags: 0 133 | m_IsActive: 1 134 | --- !u!81 &836813869 135 | AudioListener: 136 | m_ObjectHideFlags: 0 137 | m_CorrespondingSourceObject: {fileID: 0} 138 | m_PrefabInstance: {fileID: 0} 139 | m_PrefabAsset: {fileID: 0} 140 | m_GameObject: {fileID: 836813868} 141 | m_Enabled: 1 142 | --- !u!124 &836813870 143 | Behaviour: 144 | m_ObjectHideFlags: 0 145 | m_CorrespondingSourceObject: {fileID: 0} 146 | m_PrefabInstance: {fileID: 0} 147 | m_PrefabAsset: {fileID: 0} 148 | m_GameObject: {fileID: 836813868} 149 | m_Enabled: 1 150 | --- !u!20 &836813872 151 | Camera: 152 | m_ObjectHideFlags: 0 153 | m_CorrespondingSourceObject: {fileID: 0} 154 | m_PrefabInstance: {fileID: 0} 155 | m_PrefabAsset: {fileID: 0} 156 | m_GameObject: {fileID: 836813868} 157 | m_Enabled: 1 158 | serializedVersion: 2 159 | m_ClearFlags: 1 160 | m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0.019607844} 161 | m_projectionMatrixMode: 1 162 | m_SensorSize: {x: 36, y: 24} 163 | m_LensShift: {x: 0, y: 0} 164 | m_GateFitMode: 2 165 | m_FocalLength: 50 166 | m_NormalizedViewPortRect: 167 | serializedVersion: 2 168 | x: 0 169 | y: 0 170 | width: 1 171 | height: 1 172 | near clip plane: 0.3 173 | far clip plane: 1000 174 | field of view: 60 175 | orthographic: 1 176 | orthographic size: 5 177 | m_Depth: -1 178 | m_CullingMask: 179 | serializedVersion: 2 180 | m_Bits: 4294967295 181 | m_RenderingPath: -1 182 | m_TargetTexture: {fileID: 0} 183 | m_TargetDisplay: 0 184 | m_TargetEye: 3 185 | m_HDR: 0 186 | m_AllowMSAA: 1 187 | m_AllowDynamicResolution: 0 188 | m_ForceIntoRT: 0 189 | m_OcclusionCulling: 1 190 | m_StereoConvergence: 10 191 | m_StereoSeparation: 0.022 192 | --- !u!4 &836813873 193 | Transform: 194 | m_ObjectHideFlags: 0 195 | m_CorrespondingSourceObject: {fileID: 0} 196 | m_PrefabInstance: {fileID: 0} 197 | m_PrefabAsset: {fileID: 0} 198 | m_GameObject: {fileID: 836813868} 199 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 200 | m_LocalPosition: {x: 0, y: 0, z: -10} 201 | m_LocalScale: {x: 1, y: 1, z: 1} 202 | m_Children: [] 203 | m_Father: {fileID: 0} 204 | m_RootOrder: 0 205 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 206 | --- !u!1 &1089957325 207 | GameObject: 208 | m_ObjectHideFlags: 0 209 | m_CorrespondingSourceObject: {fileID: 0} 210 | m_PrefabInstance: {fileID: 0} 211 | m_PrefabAsset: {fileID: 0} 212 | serializedVersion: 6 213 | m_Component: 214 | - component: {fileID: 1089957327} 215 | - component: {fileID: 1089957326} 216 | m_Layer: 0 217 | m_Name: RegexExample 218 | m_TagString: Untagged 219 | m_Icon: {fileID: 0} 220 | m_NavMeshLayer: 0 221 | m_StaticEditorFlags: 0 222 | m_IsActive: 1 223 | --- !u!114 &1089957326 224 | MonoBehaviour: 225 | m_ObjectHideFlags: 0 226 | m_CorrespondingSourceObject: {fileID: 0} 227 | m_PrefabInstance: {fileID: 0} 228 | m_PrefabAsset: {fileID: 0} 229 | m_GameObject: {fileID: 1089957325} 230 | m_Enabled: 1 231 | m_EditorHideFlags: 0 232 | m_Script: {fileID: 11500000, guid: 4f421d3e9d8463c439c53f37747a7dd2, type: 3} 233 | m_Name: 234 | m_EditorClassIdentifier: 235 | text: {fileID: 1093713752} 236 | --- !u!4 &1089957327 237 | Transform: 238 | m_ObjectHideFlags: 0 239 | m_CorrespondingSourceObject: {fileID: 0} 240 | m_PrefabInstance: {fileID: 0} 241 | m_PrefabAsset: {fileID: 0} 242 | m_GameObject: {fileID: 1089957325} 243 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 244 | m_LocalPosition: {x: 410.52548, y: 162.99268, z: 0} 245 | m_LocalScale: {x: 1, y: 1, z: 1} 246 | m_Children: [] 247 | m_Father: {fileID: 0} 248 | m_RootOrder: 3 249 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 250 | --- !u!1 &1093713748 251 | GameObject: 252 | m_ObjectHideFlags: 0 253 | m_CorrespondingSourceObject: {fileID: 0} 254 | m_PrefabInstance: {fileID: 0} 255 | m_PrefabAsset: {fileID: 0} 256 | serializedVersion: 6 257 | m_Component: 258 | - component: {fileID: 1093713749} 259 | - component: {fileID: 1093713751} 260 | - component: {fileID: 1093713752} 261 | m_Layer: 5 262 | m_Name: RegexHypertext 263 | m_TagString: Untagged 264 | m_Icon: {fileID: 0} 265 | m_NavMeshLayer: 0 266 | m_StaticEditorFlags: 0 267 | m_IsActive: 1 268 | --- !u!224 &1093713749 269 | RectTransform: 270 | m_ObjectHideFlags: 0 271 | m_CorrespondingSourceObject: {fileID: 0} 272 | m_PrefabInstance: {fileID: 0} 273 | m_PrefabAsset: {fileID: 0} 274 | m_GameObject: {fileID: 1093713748} 275 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 276 | m_LocalPosition: {x: 0, y: 0, z: 0} 277 | m_LocalScale: {x: 1, y: 1, z: 1} 278 | m_Children: [] 279 | m_Father: {fileID: 1928692836} 280 | m_RootOrder: 0 281 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 282 | m_AnchorMin: {x: 0.5, y: 0.5} 283 | m_AnchorMax: {x: 0.5, y: 0.5} 284 | m_AnchoredPosition: {x: 0, y: 0} 285 | m_SizeDelta: {x: 400, y: 100} 286 | m_Pivot: {x: 0.5, y: 0.5} 287 | --- !u!222 &1093713751 288 | CanvasRenderer: 289 | m_ObjectHideFlags: 0 290 | m_CorrespondingSourceObject: {fileID: 0} 291 | m_PrefabInstance: {fileID: 0} 292 | m_PrefabAsset: {fileID: 0} 293 | m_GameObject: {fileID: 1093713748} 294 | m_CullTransparentMesh: 0 295 | --- !u!114 &1093713752 296 | MonoBehaviour: 297 | m_ObjectHideFlags: 0 298 | m_CorrespondingSourceObject: {fileID: 0} 299 | m_PrefabInstance: {fileID: 0} 300 | m_PrefabAsset: {fileID: 0} 301 | m_GameObject: {fileID: 1093713748} 302 | m_Enabled: 1 303 | m_EditorHideFlags: 0 304 | m_Script: {fileID: 11500000, guid: 41f9665ef01a0ce479555a0e5176f012, type: 3} 305 | m_Name: 306 | m_EditorClassIdentifier: 307 | m_Material: {fileID: 0} 308 | m_Color: {r: 1, g: 1, b: 1, a: 1} 309 | m_RaycastTarget: 1 310 | m_OnCullStateChanged: 311 | m_PersistentCalls: 312 | m_Calls: [] 313 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 314 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 315 | m_FontData: 316 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 317 | m_FontSize: 30 318 | m_FontStyle: 0 319 | m_BestFit: 0 320 | m_MinSize: 0 321 | m_MaxSize: 50 322 | m_Alignment: 0 323 | m_AlignByGeometry: 0 324 | m_RichText: 1 325 | m_HorizontalOverflow: 0 326 | m_VerticalOverflow: 0 327 | m_LineSpacing: 1 328 | m_Text: 'URL: https://example.com/ 329 | 330 | Hashtag: #hoge' 331 | --- !u!1 &1167677275 332 | GameObject: 333 | m_ObjectHideFlags: 0 334 | m_CorrespondingSourceObject: {fileID: 0} 335 | m_PrefabInstance: {fileID: 0} 336 | m_PrefabAsset: {fileID: 0} 337 | serializedVersion: 6 338 | m_Component: 339 | - component: {fileID: 1167677278} 340 | - component: {fileID: 1167677277} 341 | - component: {fileID: 1167677276} 342 | m_Layer: 0 343 | m_Name: EventSystem 344 | m_TagString: Untagged 345 | m_Icon: {fileID: 0} 346 | m_NavMeshLayer: 0 347 | m_StaticEditorFlags: 0 348 | m_IsActive: 1 349 | --- !u!114 &1167677276 350 | MonoBehaviour: 351 | m_ObjectHideFlags: 0 352 | m_CorrespondingSourceObject: {fileID: 0} 353 | m_PrefabInstance: {fileID: 0} 354 | m_PrefabAsset: {fileID: 0} 355 | m_GameObject: {fileID: 1167677275} 356 | m_Enabled: 1 357 | m_EditorHideFlags: 0 358 | m_Script: {fileID: 1077351063, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 359 | m_Name: 360 | m_EditorClassIdentifier: 361 | m_HorizontalAxis: Horizontal 362 | m_VerticalAxis: Vertical 363 | m_SubmitButton: Submit 364 | m_CancelButton: Cancel 365 | m_InputActionsPerSecond: 10 366 | m_RepeatDelay: 0.5 367 | m_ForceModuleActive: 0 368 | --- !u!114 &1167677277 369 | MonoBehaviour: 370 | m_ObjectHideFlags: 0 371 | m_CorrespondingSourceObject: {fileID: 0} 372 | m_PrefabInstance: {fileID: 0} 373 | m_PrefabAsset: {fileID: 0} 374 | m_GameObject: {fileID: 1167677275} 375 | m_Enabled: 1 376 | m_EditorHideFlags: 0 377 | m_Script: {fileID: -619905303, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 378 | m_Name: 379 | m_EditorClassIdentifier: 380 | m_FirstSelected: {fileID: 0} 381 | m_sendNavigationEvents: 1 382 | m_DragThreshold: 5 383 | --- !u!4 &1167677278 384 | Transform: 385 | m_ObjectHideFlags: 0 386 | m_CorrespondingSourceObject: {fileID: 0} 387 | m_PrefabInstance: {fileID: 0} 388 | m_PrefabAsset: {fileID: 0} 389 | m_GameObject: {fileID: 1167677275} 390 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 391 | m_LocalPosition: {x: 0, y: 0, z: 0} 392 | m_LocalScale: {x: 1, y: 1, z: 1} 393 | m_Children: [] 394 | m_Father: {fileID: 0} 395 | m_RootOrder: 2 396 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 397 | --- !u!1 &1928692832 398 | GameObject: 399 | m_ObjectHideFlags: 0 400 | m_CorrespondingSourceObject: {fileID: 0} 401 | m_PrefabInstance: {fileID: 0} 402 | m_PrefabAsset: {fileID: 0} 403 | serializedVersion: 6 404 | m_Component: 405 | - component: {fileID: 1928692836} 406 | - component: {fileID: 1928692835} 407 | - component: {fileID: 1928692834} 408 | - component: {fileID: 1928692833} 409 | m_Layer: 5 410 | m_Name: Canvas 411 | m_TagString: Untagged 412 | m_Icon: {fileID: 0} 413 | m_NavMeshLayer: 0 414 | m_StaticEditorFlags: 0 415 | m_IsActive: 1 416 | --- !u!114 &1928692833 417 | MonoBehaviour: 418 | m_ObjectHideFlags: 0 419 | m_CorrespondingSourceObject: {fileID: 0} 420 | m_PrefabInstance: {fileID: 0} 421 | m_PrefabAsset: {fileID: 0} 422 | m_GameObject: {fileID: 1928692832} 423 | m_Enabled: 1 424 | m_EditorHideFlags: 0 425 | m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 426 | m_Name: 427 | m_EditorClassIdentifier: 428 | m_IgnoreReversedGraphics: 1 429 | m_BlockingObjects: 0 430 | m_BlockingMask: 431 | serializedVersion: 2 432 | m_Bits: 4294967295 433 | --- !u!114 &1928692834 434 | MonoBehaviour: 435 | m_ObjectHideFlags: 0 436 | m_CorrespondingSourceObject: {fileID: 0} 437 | m_PrefabInstance: {fileID: 0} 438 | m_PrefabAsset: {fileID: 0} 439 | m_GameObject: {fileID: 1928692832} 440 | m_Enabled: 1 441 | m_EditorHideFlags: 0 442 | m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 443 | m_Name: 444 | m_EditorClassIdentifier: 445 | m_UiScaleMode: 1 446 | m_ReferencePixelsPerUnit: 100 447 | m_ScaleFactor: 1 448 | m_ReferenceResolution: {x: 800, y: 600} 449 | m_ScreenMatchMode: 0 450 | m_MatchWidthOrHeight: 0 451 | m_PhysicalUnit: 3 452 | m_FallbackScreenDPI: 96 453 | m_DefaultSpriteDPI: 96 454 | m_DynamicPixelsPerUnit: 1 455 | --- !u!223 &1928692835 456 | Canvas: 457 | m_ObjectHideFlags: 0 458 | m_CorrespondingSourceObject: {fileID: 0} 459 | m_PrefabInstance: {fileID: 0} 460 | m_PrefabAsset: {fileID: 0} 461 | m_GameObject: {fileID: 1928692832} 462 | m_Enabled: 1 463 | serializedVersion: 3 464 | m_RenderMode: 0 465 | m_Camera: {fileID: 0} 466 | m_PlaneDistance: 100 467 | m_PixelPerfect: 0 468 | m_ReceivesEvents: 1 469 | m_OverrideSorting: 0 470 | m_OverridePixelPerfect: 0 471 | m_SortingBucketNormalizedSize: 0 472 | m_AdditionalShaderChannelsFlag: 25 473 | m_SortingLayerID: 0 474 | m_SortingOrder: 0 475 | m_TargetDisplay: 0 476 | --- !u!224 &1928692836 477 | RectTransform: 478 | m_ObjectHideFlags: 0 479 | m_CorrespondingSourceObject: {fileID: 0} 480 | m_PrefabInstance: {fileID: 0} 481 | m_PrefabAsset: {fileID: 0} 482 | m_GameObject: {fileID: 1928692832} 483 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 484 | m_LocalPosition: {x: 0, y: 0, z: 0} 485 | m_LocalScale: {x: 0, y: 0, z: 0} 486 | m_Children: 487 | - {fileID: 1093713749} 488 | m_Father: {fileID: 0} 489 | m_RootOrder: 1 490 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 491 | m_AnchorMin: {x: 0, y: 0} 492 | m_AnchorMax: {x: 0, y: 0} 493 | m_AnchoredPosition: {x: 0, y: 0} 494 | m_SizeDelta: {x: 0, y: 0} 495 | m_Pivot: {x: 0, y: 0} 496 | -------------------------------------------------------------------------------- /Assets/Hypertext/Examples/RegexExample.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce1400fed52822641a6e43c55893f101 3 | timeCreated: 1469857015 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Hypertext/Examples/RegexHypertext.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * uGUI-Hypertext (https://github.com/setchi/uGUI-Hypertext) 3 | * Copyright (c) 2019 setchi 4 | * Licensed under MIT (https://github.com/setchi/uGUI-Hypertext/blob/master/LICENSE) 5 | */ 6 | 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Text.RegularExpressions; 10 | using UnityEngine; 11 | 12 | namespace Hypertext 13 | { 14 | public class RegexHypertext : HypertextBase 15 | { 16 | readonly List entries = new List(); 17 | 18 | struct Entry 19 | { 20 | public readonly string RegexPattern; 21 | public readonly Color Color; 22 | public readonly Action Callback; 23 | 24 | public Entry(string regexPattern, Color color, Action callback) 25 | { 26 | RegexPattern = regexPattern; 27 | Color = color; 28 | Callback = callback; 29 | } 30 | } 31 | 32 | /// 33 | /// 正規表現にマッチした部分文字列にクリックイベントリスナを登録します 34 | /// 35 | /// 正規表現 36 | /// クリック時のコールバック 37 | public void OnClick(string regexPattern, Action onClick) 38 | { 39 | OnClick(regexPattern, color, onClick); 40 | } 41 | 42 | /// 43 | /// 正規表現にマッチした部分文字列に色とクリックイベントリスナを登録します 44 | /// 45 | /// 正規表現 46 | /// テキストカラー 47 | /// クリック時のコールバック 48 | public void OnClick(string regexPattern, Color color, Action onClick) 49 | { 50 | if (string.IsNullOrEmpty(regexPattern) || onClick == null) 51 | { 52 | return; 53 | } 54 | 55 | entries.Add(new Entry(regexPattern, color, onClick)); 56 | } 57 | 58 | public override void RemoveListeners() 59 | { 60 | base.RemoveListeners(); 61 | entries.Clear(); 62 | } 63 | 64 | /// 65 | /// イベントリスナを追加します 66 | /// テキストの変更などでイベントの再登録が必要なときにも呼び出されます 67 | /// を使ってクリックイベントリスナを登録してください 68 | /// 69 | protected override void AddListeners() 70 | { 71 | foreach (var entry in entries) 72 | { 73 | foreach (Match match in Regex.Matches(text, entry.RegexPattern)) 74 | { 75 | OnClick(match.Index, match.Value.Length, entry.Color, entry.Callback); 76 | } 77 | } 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /Assets/Hypertext/Examples/RegexHypertext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41f9665ef01a0ce479555a0e5176f012 3 | timeCreated: 1469955073 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Hypertext/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ed612c41acf769468322e630fca58c3 3 | folderAsset: yes 4 | timeCreated: 1469969611 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Hypertext/Scripts/HypertextBase.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * uGUI-Hypertext (https://github.com/setchi/uGUI-Hypertext) 3 | * Copyright (c) 2019 setchi 4 | * Licensed under MIT (https://github.com/setchi/uGUI-Hypertext/blob/master/LICENSE) 5 | */ 6 | 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using UnityEngine; 11 | using UnityEngine.EventSystems; 12 | using UnityEngine.UI; 13 | 14 | namespace Hypertext 15 | { 16 | public abstract class HypertextBase : Text, IPointerClickHandler 17 | { 18 | class Span 19 | { 20 | public readonly int StartIndex; 21 | public readonly int Length; 22 | public readonly Color Color; 23 | public readonly Action Callback; 24 | public List BoundingBoxes; 25 | 26 | public Span(int startIndex, int length, Color color, Action callback) 27 | { 28 | StartIndex = startIndex; 29 | Length = length; 30 | Color = color; 31 | Callback = callback; 32 | BoundingBoxes = new List(); 33 | } 34 | }; 35 | 36 | readonly List spans = new List(); 37 | 38 | // TODO: 頂点が生成されない空白文字をすべて洗い出す 39 | readonly char[] invisibleChars = 40 | { 41 | Space, 42 | Tab, 43 | LineFeed 44 | }; 45 | static readonly ObjectPool> verticesPool = new ObjectPool>(null, l => l.Clear()); 46 | 47 | const int CharVerts = 6; 48 | const char 49 | Tab = '\t', 50 | LineFeed = '\n', 51 | Space = ' ', 52 | LesserThan = '<', 53 | GreaterThan = '>'; 54 | 55 | int[] visibleCharIndexMap; 56 | 57 | Canvas rootCanvas; 58 | Canvas RootCanvas => rootCanvas ?? (rootCanvas = GetComponentInParent()); 59 | 60 | /// 61 | /// 指定した部分文字列にクリックイベントリスナを登録します 62 | /// 63 | /// 部分文字列の開始文字位置 64 | /// 部分文字列の長さ 65 | /// 部分文字列につける色 66 | /// 部分文字列がクリックされたときのコールバック 67 | protected void OnClick(int startIndex, int length, Color color, Action onClick) 68 | { 69 | if (onClick == null) 70 | { 71 | throw new ArgumentNullException(nameof(onClick)); 72 | } 73 | 74 | if (startIndex < 0 || startIndex > text.Length - 1) 75 | { 76 | throw new ArgumentOutOfRangeException(nameof(startIndex)); 77 | } 78 | 79 | if (length < 1 || startIndex + length > text.Length) 80 | { 81 | throw new ArgumentOutOfRangeException(nameof(length)); 82 | } 83 | 84 | spans.Add(new Span(startIndex, length, color, onClick)); 85 | } 86 | 87 | /// 88 | /// イベントリスナを削除します 89 | /// 90 | public virtual void RemoveListeners() 91 | { 92 | spans.Clear(); 93 | } 94 | 95 | /// 96 | /// イベントリスナを追加します 97 | /// テキストの変更などでイベントリスナの再登録が必要なときにも呼び出されます 98 | /// を使ってクリックイベントリスナを登録してください 99 | /// 100 | protected abstract void AddListeners(); 101 | 102 | readonly UIVertex[] tempVerts = new UIVertex[4]; 103 | protected override void OnPopulateMesh(VertexHelper toFill) 104 | { 105 | if (font == null) 106 | { 107 | return; 108 | } 109 | 110 | m_DisableFontTextureRebuiltCallback = true; 111 | 112 | var extents = rectTransform.rect.size; 113 | 114 | var settings = GetGenerationSettings(extents); 115 | settings.generateOutOfBounds = true; 116 | cachedTextGenerator.PopulateWithErrors(text, settings, gameObject); 117 | 118 | var verts = cachedTextGenerator.verts; 119 | var unitsPerPixel = 1 / pixelsPerUnit; 120 | int vertCount = verts.Count; 121 | 122 | if (vertCount <= 0) 123 | { 124 | toFill.Clear(); 125 | return; 126 | } 127 | 128 | var roundingOffset = new Vector2(verts[0].position.x, verts[0].position.y) * unitsPerPixel; 129 | roundingOffset = PixelAdjustPoint(roundingOffset) - roundingOffset; 130 | toFill.Clear(); 131 | 132 | if (roundingOffset != Vector2.zero) 133 | { 134 | for (int i = 0; i < vertCount; ++i) 135 | { 136 | int tempVertsIndex = i & 3; 137 | tempVerts[tempVertsIndex] = verts[i]; 138 | tempVerts[tempVertsIndex].position *= unitsPerPixel; 139 | tempVerts[tempVertsIndex].position.x += roundingOffset.x; 140 | tempVerts[tempVertsIndex].position.y += roundingOffset.y; 141 | 142 | if (tempVertsIndex == 3) 143 | { 144 | toFill.AddUIVertexQuad(tempVerts); 145 | } 146 | } 147 | } 148 | else 149 | { 150 | for (int i = 0; i < vertCount; ++i) 151 | { 152 | int tempVertsIndex = i & 3; 153 | tempVerts[tempVertsIndex] = verts[i]; 154 | tempVerts[tempVertsIndex].position *= unitsPerPixel; 155 | 156 | if (tempVertsIndex == 3) 157 | { 158 | toFill.AddUIVertexQuad(tempVerts); 159 | } 160 | } 161 | } 162 | 163 | var vertices = verticesPool.Get(); 164 | toFill.GetUIVertexStream(vertices); 165 | 166 | GenerateVisibleCharIndexMap(vertices.Count < text.Length * CharVerts); 167 | 168 | spans.Clear(); 169 | AddListeners(); 170 | GenerateHrefBoundingBoxes(ref vertices); 171 | 172 | toFill.Clear(); 173 | toFill.AddUIVertexTriangleStream(vertices); 174 | verticesPool.Release(vertices); 175 | 176 | m_DisableFontTextureRebuiltCallback = false; 177 | } 178 | 179 | void GenerateHrefBoundingBoxes(ref List vertices) 180 | { 181 | var verticesCount = vertices.Count; 182 | 183 | for (var i = 0; i < spans.Count; i++) 184 | { 185 | var span = spans[i]; 186 | 187 | var startIndex = visibleCharIndexMap[span.StartIndex]; 188 | var endIndex = visibleCharIndexMap[span.StartIndex + span.Length - 1]; 189 | 190 | for (var textIndex = startIndex; textIndex <= endIndex; textIndex++) 191 | { 192 | var vertexStartIndex = textIndex * CharVerts; 193 | if (vertexStartIndex + CharVerts > verticesCount) 194 | { 195 | break; 196 | } 197 | 198 | var min = Vector2.one * float.MaxValue; 199 | var max = Vector2.one * float.MinValue; 200 | 201 | for (var vertexIndex = 0; vertexIndex < CharVerts; vertexIndex++) 202 | { 203 | var vertex = vertices[vertexStartIndex + vertexIndex]; 204 | vertex.color = span.Color; 205 | vertices[vertexStartIndex + vertexIndex] = vertex; 206 | 207 | var pos = vertices[vertexStartIndex + vertexIndex].position; 208 | 209 | if (pos.y < min.y) 210 | { 211 | min.y = pos.y; 212 | } 213 | 214 | if (pos.x < min.x) 215 | { 216 | min.x = pos.x; 217 | } 218 | 219 | if (pos.y > max.y) 220 | { 221 | max.y = pos.y; 222 | } 223 | 224 | if (pos.x > max.x) 225 | { 226 | max.x = pos.x; 227 | } 228 | } 229 | 230 | span.BoundingBoxes.Add(new Rect {min = min, max = max}); 231 | } 232 | 233 | // 文字ごとのバウンディングボックスを行ごとのバウンディングボックスにまとめる 234 | span.BoundingBoxes = CalculateLineBoundingBoxes(span.BoundingBoxes); 235 | } 236 | } 237 | 238 | static List CalculateLineBoundingBoxes(List charBoundingBoxes) 239 | { 240 | var lineBoundingBoxes = new List(); 241 | var lineStartIndex = 0; 242 | 243 | for (var i = 1; i < charBoundingBoxes.Count; i++) 244 | { 245 | if (charBoundingBoxes[i].xMin >= charBoundingBoxes[i - 1].xMin) 246 | { 247 | continue; 248 | } 249 | 250 | lineBoundingBoxes.Add(CalculateAABB(charBoundingBoxes.GetRange(lineStartIndex, i - lineStartIndex))); 251 | lineStartIndex = i; 252 | } 253 | 254 | if (lineStartIndex < charBoundingBoxes.Count) 255 | { 256 | lineBoundingBoxes.Add(CalculateAABB(charBoundingBoxes.GetRange(lineStartIndex, charBoundingBoxes.Count - lineStartIndex))); 257 | } 258 | 259 | return lineBoundingBoxes; 260 | } 261 | 262 | static Rect CalculateAABB(IReadOnlyList rects) 263 | { 264 | var min = Vector2.one * float.MaxValue; 265 | var max = Vector2.one * float.MinValue; 266 | 267 | for (var i = 0; i < rects.Count; i++) 268 | { 269 | if (rects[i].xMin < min.x) 270 | { 271 | min.x = rects[i].xMin; 272 | } 273 | 274 | if (rects[i].yMin < min.y) 275 | { 276 | min.y = rects[i].yMin; 277 | } 278 | 279 | if (rects[i].xMax > max.x) 280 | { 281 | max.x = rects[i].xMax; 282 | } 283 | 284 | if (rects[i].yMax > max.y) 285 | { 286 | max.y = rects[i].yMax; 287 | } 288 | } 289 | 290 | return new Rect {min = min, max = max}; 291 | } 292 | 293 | void GenerateVisibleCharIndexMap(bool verticesReduced) 294 | { 295 | if (visibleCharIndexMap == null || visibleCharIndexMap.Length < text.Length) 296 | { 297 | Array.Resize(ref visibleCharIndexMap, text.Length); 298 | } 299 | 300 | if (!verticesReduced) 301 | { 302 | for (var i = 0; i < visibleCharIndexMap.Length; i++) 303 | { 304 | visibleCharIndexMap[i] = i; 305 | } 306 | return; 307 | } 308 | 309 | var offset = 0; 310 | var inTag = false; 311 | 312 | for (var i = 0; i < text.Length; i++) 313 | { 314 | var character = text[i]; 315 | 316 | if (inTag) 317 | { 318 | offset--; 319 | 320 | if (character == GreaterThan) 321 | { 322 | inTag = false; 323 | } 324 | } 325 | else if (supportRichText && character == LesserThan) 326 | { 327 | offset--; 328 | inTag = true; 329 | } 330 | else if (invisibleChars.Contains(character)) 331 | { 332 | offset--; 333 | } 334 | 335 | visibleCharIndexMap[i] = Mathf.Max(0, i + offset); 336 | } 337 | } 338 | 339 | Vector3 CalculateLocalPosition(Vector3 position, Camera pressEventCamera) 340 | { 341 | if (!RootCanvas) 342 | { 343 | return Vector3.zero; 344 | } 345 | 346 | if (RootCanvas.renderMode == RenderMode.ScreenSpaceOverlay) 347 | { 348 | return transform.InverseTransformPoint(position); 349 | } 350 | 351 | RectTransformUtility.ScreenPointToLocalPointInRectangle( 352 | rectTransform, 353 | position, 354 | pressEventCamera, 355 | out var localPosition 356 | ); 357 | 358 | return localPosition; 359 | } 360 | 361 | void IPointerClickHandler.OnPointerClick(PointerEventData eventData) 362 | { 363 | var localPosition = CalculateLocalPosition(eventData.position, eventData.pressEventCamera); 364 | 365 | for (var s = 0; s < spans.Count; s++) 366 | { 367 | for (var b = 0; b < spans[s].BoundingBoxes.Count; b++) 368 | { 369 | if (spans[s].BoundingBoxes[b].Contains(localPosition)) 370 | { 371 | spans[s].Callback(text.Substring(spans[s].StartIndex, spans[s].Length)); 372 | break; 373 | } 374 | } 375 | } 376 | } 377 | } 378 | } 379 | -------------------------------------------------------------------------------- /Assets/Hypertext/Scripts/HypertextBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1630563d351aa11448ada07754c08a01 3 | timeCreated: 1469856899 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Hypertext/Scripts/ObjectPool.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * uGUI-Hypertext (https://github.com/setchi/uGUI-Hypertext) 3 | * Copyright (c) 2019 setchi 4 | * Licensed under MIT (https://github.com/setchi/uGUI-Hypertext/blob/master/LICENSE) 5 | */ 6 | 7 | using System; 8 | using System.Collections.Generic; 9 | 10 | namespace Hypertext 11 | { 12 | public class ObjectPool where T : new() 13 | { 14 | readonly Stack stack = new Stack(); 15 | readonly Action onGet; 16 | readonly Action onRelease; 17 | 18 | public int CountAll { get; set; } 19 | public int CountActive => CountAll - CountInactive; 20 | public int CountInactive => stack.Count; 21 | 22 | public ObjectPool(Action onGet, Action onRelease) 23 | { 24 | this.onGet = onGet; 25 | this.onRelease = onRelease; 26 | } 27 | 28 | public T Get() 29 | { 30 | T element; 31 | if (stack.Count == 0) 32 | { 33 | element = new T(); 34 | CountAll++; 35 | } 36 | else 37 | { 38 | element = stack.Pop(); 39 | } 40 | 41 | onGet?.Invoke(element); 42 | 43 | return element; 44 | } 45 | 46 | public void Release(T element) 47 | { 48 | if (stack.Count > 0 && ReferenceEquals(stack.Peek(), element)) 49 | { 50 | UnityEngine.Debug.LogError("Internal error. Trying to destroy object that is already released to pool."); 51 | } 52 | 53 | onRelease?.Invoke(element); 54 | 55 | stack.Push(element); 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Assets/Hypertext/Scripts/ObjectPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06055595051070b4ea26c6a0dafddf07 3 | timeCreated: 1469859231 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Hypertext/Scripts/jp.setchi.ugui-hypertext.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jp.setchi.ugui-hypertext" 3 | } -------------------------------------------------------------------------------- /Assets/Hypertext/Scripts/jp.setchi.ugui-hypertext.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6af4091547e7d40c7aac9292ae986a52 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 setchi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /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 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_DisableAudio: 0 16 | m_VirtualizeEffects: 1 17 | -------------------------------------------------------------------------------- /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: 2 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_SolverIterationCount: 6 13 | m_SolverVelocityIterations: 1 14 | m_QueriesHitTriggers: 1 15 | m_EnableAdaptiveForce: 0 16 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 17 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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: 3 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_WebSecurityEmulationEnabled: 0 10 | m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d 11 | m_DefaultBehaviorMode: 1 12 | m_SpritePackerMode: 2 13 | m_SpritePackerPaddingPower: 1 14 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 15 | m_ProjectGenerationRootNamespace: 16 | -------------------------------------------------------------------------------- /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: 10770, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} 40 | m_PreloadedShaders: [] 41 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 42 | type: 0} 43 | m_CustomRenderPipeline: {fileID: 0} 44 | m_TransparencySortMode: 0 45 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 46 | m_DefaultRenderingPath: 1 47 | m_DefaultMobileRenderingPath: 1 48 | m_TierSettings: [] 49 | m_LightmapStripping: 0 50 | m_FogStripping: 0 51 | m_InstancingStripping: 0 52 | m_LightmapKeepPlain: 1 53 | m_LightmapKeepDirCombined: 1 54 | m_LightmapKeepDynamicPlain: 1 55 | m_LightmapKeepDynamicDirCombined: 1 56 | m_LightmapKeepShadowMask: 1 57 | m_LightmapKeepSubtractive: 1 58 | m_FogKeepLinear: 1 59 | m_FogKeepExp: 1 60 | m_FogKeepExp2: 1 61 | m_AlbedoSwatchInfos: [] 62 | m_LightsUseLinearIntensity: 0 63 | m_LightsUseColorTemperature: 0 64 | -------------------------------------------------------------------------------- /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 | NavMeshAreas: 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 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /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: 2 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_MinPenetrationForPenalty: 0.01 17 | m_BaumgarteScale: 0.2 18 | m_BaumgarteTimeOfImpactScale: 0.75 19 | m_TimeToSleep: 0.5 20 | m_LinearSleepTolerance: 0.01 21 | m_AngularSleepTolerance: 2 22 | m_QueriesHitTriggers: 1 23 | m_QueriesStartInColliders: 1 24 | m_ChangeStopsCallbacks: 0 25 | m_AlwaysShowColliders: 0 26 | m_ShowColliderSleep: 1 27 | m_ShowColliderContacts: 0 28 | m_ContactArrowScale: 0.2 29 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 30 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 31 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 32 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 33 | -------------------------------------------------------------------------------- /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: 15 7 | productGUID: 0ca1630dd6de2a643b06a9c5a09efd27 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: uGUI_Hypertext 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 | iosAppInBackgroundBehavior: 0 56 | displayResolutionDialog: 1 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 | androidBlitType: 0 68 | defaultIsNativeResolution: 1 69 | macRetinaSupport: 1 70 | runInBackground: 0 71 | captureSingleScreen: 0 72 | muteOtherAudioSources: 0 73 | Prepare IOS For Recording: 0 74 | Force IOS Speakers When Recording: 0 75 | deferSystemGesturesMode: 0 76 | hideHomeButton: 0 77 | submitAnalytics: 1 78 | usePlayerLog: 1 79 | bakeCollisionMeshes: 0 80 | forceSingleInstance: 0 81 | resizableWindow: 0 82 | useMacAppStoreValidation: 0 83 | macAppStoreCategory: public.app-category.games 84 | gpuSkinning: 0 85 | graphicsJobs: 0 86 | xboxPIXTextureCapture: 0 87 | xboxEnableAvatar: 0 88 | xboxEnableKinect: 0 89 | xboxEnableKinectAutoTracking: 0 90 | xboxEnableFitness: 0 91 | visibleInBackground: 0 92 | allowFullscreenSwitch: 1 93 | graphicsJobMode: 0 94 | fullscreenMode: 2 95 | xboxSpeechDB: 0 96 | xboxEnableHeadOrientation: 0 97 | xboxEnableGuest: 0 98 | xboxEnablePIXSampling: 0 99 | metalFramebufferOnly: 0 100 | xboxOneResolution: 0 101 | xboxOneSResolution: 0 102 | xboxOneXResolution: 3 103 | xboxOneMonoLoggingLevel: 0 104 | xboxOneLoggingLevel: 1 105 | xboxOneDisableEsram: 0 106 | xboxOnePresentImmediateThreshold: 0 107 | switchQueueCommandMemory: 0 108 | vulkanEnableSetSRGBWrite: 0 109 | m_SupportedAspectRatios: 110 | 4:3: 1 111 | 5:4: 1 112 | 16:10: 1 113 | 16:9: 1 114 | Others: 1 115 | bundleVersion: 1.0 116 | preloadedAssets: [] 117 | metroInputSource: 0 118 | wsaTransparentSwapchain: 0 119 | m_HolographicPauseOnTrackingLoss: 1 120 | xboxOneDisableKinectGpuReservation: 0 121 | xboxOneEnable7thCore: 0 122 | isWsaHolographicRemotingEnabled: 0 123 | vrSettings: 124 | cardboard: 125 | depthFormat: 0 126 | enableTransitionView: 0 127 | daydream: 128 | depthFormat: 0 129 | useSustainedPerformanceMode: 0 130 | enableVideoLayer: 0 131 | useProtectedVideoMemory: 0 132 | minimumSupportedHeadTracking: 0 133 | maximumSupportedHeadTracking: 1 134 | hololens: 135 | depthFormat: 1 136 | depthBufferSharingEnabled: 0 137 | oculus: 138 | sharedDepthBuffer: 1 139 | dashSupport: 1 140 | enable360StereoCapture: 0 141 | protectGraphicsMemory: 0 142 | enableFrameTimingStats: 0 143 | useHDRDisplay: 0 144 | m_ColorGamuts: 00000000 145 | targetPixelDensity: 30 146 | resolutionScalingMode: 0 147 | androidSupportedAspectRatio: 1 148 | androidMaxAspectRatio: 2.1 149 | applicationIdentifier: 150 | Android: com.Company.ProductName 151 | Standalone: unity.DefaultCompany.uGUI_Hypertext 152 | Tizen: com.Company.ProductName 153 | iOS: com.Company.ProductName 154 | tvOS: com.Company.ProductName 155 | buildNumber: 156 | iOS: 0 157 | AndroidBundleVersionCode: 1 158 | AndroidMinSdkVersion: 16 159 | AndroidTargetSdkVersion: 0 160 | AndroidPreferredInstallLocation: 1 161 | aotOptions: 162 | stripEngineCode: 1 163 | iPhoneStrippingLevel: 0 164 | iPhoneScriptCallOptimization: 0 165 | ForceInternetPermission: 0 166 | ForceSDCardPermission: 0 167 | CreateWallpaper: 0 168 | APKExpansionFiles: 0 169 | keepLoadedShadersAlive: 0 170 | StripUnusedMeshComponents: 0 171 | VertexChannelCompressionMask: 214 172 | iPhoneSdkVersion: 988 173 | iOSTargetOSVersionString: 9.0 174 | tvOSSdkVersion: 0 175 | tvOSRequireExtendedGameController: 0 176 | tvOSTargetOSVersionString: 9.0 177 | uIPrerenderedIcon: 0 178 | uIRequiresPersistentWiFi: 0 179 | uIRequiresFullScreen: 1 180 | uIStatusBarHidden: 1 181 | uIExitOnSuspend: 0 182 | uIStatusBarStyle: 0 183 | iPhoneSplashScreen: {fileID: 0} 184 | iPhoneHighResSplashScreen: {fileID: 0} 185 | iPhoneTallHighResSplashScreen: {fileID: 0} 186 | iPhone47inSplashScreen: {fileID: 0} 187 | iPhone55inPortraitSplashScreen: {fileID: 0} 188 | iPhone55inLandscapeSplashScreen: {fileID: 0} 189 | iPhone58inPortraitSplashScreen: {fileID: 0} 190 | iPhone58inLandscapeSplashScreen: {fileID: 0} 191 | iPadPortraitSplashScreen: {fileID: 0} 192 | iPadHighResPortraitSplashScreen: {fileID: 0} 193 | iPadLandscapeSplashScreen: {fileID: 0} 194 | iPadHighResLandscapeSplashScreen: {fileID: 0} 195 | appleTVSplashScreen: {fileID: 0} 196 | appleTVSplashScreen2x: {fileID: 0} 197 | tvOSSmallIconLayers: [] 198 | tvOSSmallIconLayers2x: [] 199 | tvOSLargeIconLayers: [] 200 | tvOSLargeIconLayers2x: [] 201 | tvOSTopShelfImageLayers: [] 202 | tvOSTopShelfImageLayers2x: [] 203 | tvOSTopShelfImageWideLayers: [] 204 | tvOSTopShelfImageWideLayers2x: [] 205 | iOSLaunchScreenType: 0 206 | iOSLaunchScreenPortrait: {fileID: 0} 207 | iOSLaunchScreenLandscape: {fileID: 0} 208 | iOSLaunchScreenBackgroundColor: 209 | serializedVersion: 2 210 | rgba: 0 211 | iOSLaunchScreenFillPct: 100 212 | iOSLaunchScreenSize: 100 213 | iOSLaunchScreenCustomXibPath: 214 | iOSLaunchScreeniPadType: 0 215 | iOSLaunchScreeniPadImage: {fileID: 0} 216 | iOSLaunchScreeniPadBackgroundColor: 217 | serializedVersion: 2 218 | rgba: 0 219 | iOSLaunchScreeniPadFillPct: 100 220 | iOSLaunchScreeniPadSize: 100 221 | iOSLaunchScreeniPadCustomXibPath: 222 | iOSUseLaunchScreenStoryboard: 0 223 | iOSLaunchScreenCustomStoryboardPath: 224 | iOSDeviceRequirements: [] 225 | iOSURLSchemes: [] 226 | iOSBackgroundModes: 0 227 | iOSMetalForceHardShadows: 0 228 | metalEditorSupport: 0 229 | metalAPIValidation: 1 230 | iOSRenderExtraFrameOnPause: 1 231 | appleDeveloperTeamID: 232 | iOSManualSigningProvisioningProfileID: 233 | tvOSManualSigningProvisioningProfileID: 234 | iOSManualSigningProvisioningProfileType: 0 235 | tvOSManualSigningProvisioningProfileType: 0 236 | appleEnableAutomaticSigning: 0 237 | iOSRequireARKit: 0 238 | appleEnableProMotion: 0 239 | clonedFromGUID: 00000000000000000000000000000000 240 | templatePackageId: 241 | templateDefaultScene: 242 | AndroidTargetArchitectures: 5 243 | AndroidSplashScreenScale: 0 244 | androidSplashScreen: {fileID: 0} 245 | AndroidKeystoreName: 246 | AndroidKeyaliasName: 247 | AndroidBuildApkPerCpuArchitecture: 0 248 | AndroidTVCompatibility: 1 249 | AndroidIsGame: 1 250 | AndroidEnableTango: 0 251 | androidEnableBanner: 1 252 | androidUseLowAccuracyLocation: 0 253 | m_AndroidBanners: 254 | - width: 320 255 | height: 180 256 | banner: {fileID: 0} 257 | androidGamepadSupportLevel: 0 258 | resolutionDialogBanner: {fileID: 0} 259 | m_BuildTargetIcons: 260 | - m_BuildTarget: 261 | m_Icons: 262 | - serializedVersion: 2 263 | m_Icon: {fileID: 0} 264 | m_Width: 128 265 | m_Height: 128 266 | m_Kind: 0 267 | m_BuildTargetPlatformIcons: [] 268 | m_BuildTargetBatching: [] 269 | m_BuildTargetGraphicsAPIs: [] 270 | m_BuildTargetVRSettings: 271 | - m_BuildTarget: Android 272 | m_Enabled: 0 273 | m_Devices: 274 | - Oculus 275 | - m_BuildTarget: Metro 276 | m_Enabled: 0 277 | m_Devices: [] 278 | - m_BuildTarget: N3DS 279 | m_Enabled: 0 280 | m_Devices: [] 281 | - m_BuildTarget: PS3 282 | m_Enabled: 0 283 | m_Devices: [] 284 | - m_BuildTarget: PS4 285 | m_Enabled: 0 286 | m_Devices: 287 | - PlayStationVR 288 | - m_BuildTarget: PSM 289 | m_Enabled: 0 290 | m_Devices: [] 291 | - m_BuildTarget: PSP2 292 | m_Enabled: 0 293 | m_Devices: [] 294 | - m_BuildTarget: SamsungTV 295 | m_Enabled: 0 296 | m_Devices: [] 297 | - m_BuildTarget: Standalone 298 | m_Enabled: 0 299 | m_Devices: 300 | - Oculus 301 | - m_BuildTarget: Tizen 302 | m_Enabled: 0 303 | m_Devices: [] 304 | - m_BuildTarget: WebGL 305 | m_Enabled: 0 306 | m_Devices: [] 307 | - m_BuildTarget: WebPlayer 308 | m_Enabled: 0 309 | m_Devices: [] 310 | - m_BuildTarget: WiiU 311 | m_Enabled: 0 312 | m_Devices: [] 313 | - m_BuildTarget: Xbox360 314 | m_Enabled: 0 315 | m_Devices: [] 316 | - m_BuildTarget: XboxOne 317 | m_Enabled: 0 318 | m_Devices: [] 319 | - m_BuildTarget: iOS 320 | m_Enabled: 0 321 | m_Devices: [] 322 | - m_BuildTarget: tvOS 323 | m_Enabled: 0 324 | m_Devices: [] 325 | m_BuildTargetEnableVuforiaSettings: [] 326 | openGLRequireES31: 0 327 | openGLRequireES31AEP: 0 328 | m_TemplateCustomTags: {} 329 | mobileMTRendering: 330 | iPhone: 1 331 | tvOS: 1 332 | m_BuildTargetGroupLightmapEncodingQuality: 333 | - m_BuildTarget: Standalone 334 | m_EncodingQuality: 1 335 | - m_BuildTarget: XboxOne 336 | m_EncodingQuality: 1 337 | - m_BuildTarget: PS4 338 | m_EncodingQuality: 1 339 | m_BuildTargetGroupLightmapSettings: [] 340 | playModeTestRunnerEnabled: 0 341 | runPlayModeTestAsEditModeTest: 0 342 | actionOnDotNetUnhandledException: 1 343 | enableInternalProfiler: 0 344 | logObjCUncaughtExceptions: 1 345 | enableCrashReportAPI: 0 346 | cameraUsageDescription: 347 | locationUsageDescription: 348 | microphoneUsageDescription: 349 | switchNetLibKey: 350 | switchSocketMemoryPoolSize: 6144 351 | switchSocketAllocatorPoolSize: 128 352 | switchSocketConcurrencyLimit: 14 353 | switchScreenResolutionBehavior: 2 354 | switchUseCPUProfiler: 0 355 | switchApplicationID: 0x01004b9000490000 356 | switchNSODependencies: 357 | switchTitleNames_0: 358 | switchTitleNames_1: 359 | switchTitleNames_2: 360 | switchTitleNames_3: 361 | switchTitleNames_4: 362 | switchTitleNames_5: 363 | switchTitleNames_6: 364 | switchTitleNames_7: 365 | switchTitleNames_8: 366 | switchTitleNames_9: 367 | switchTitleNames_10: 368 | switchTitleNames_11: 369 | switchTitleNames_12: 370 | switchTitleNames_13: 371 | switchTitleNames_14: 372 | switchPublisherNames_0: 373 | switchPublisherNames_1: 374 | switchPublisherNames_2: 375 | switchPublisherNames_3: 376 | switchPublisherNames_4: 377 | switchPublisherNames_5: 378 | switchPublisherNames_6: 379 | switchPublisherNames_7: 380 | switchPublisherNames_8: 381 | switchPublisherNames_9: 382 | switchPublisherNames_10: 383 | switchPublisherNames_11: 384 | switchPublisherNames_12: 385 | switchPublisherNames_13: 386 | switchPublisherNames_14: 387 | switchIcons_0: {fileID: 0} 388 | switchIcons_1: {fileID: 0} 389 | switchIcons_2: {fileID: 0} 390 | switchIcons_3: {fileID: 0} 391 | switchIcons_4: {fileID: 0} 392 | switchIcons_5: {fileID: 0} 393 | switchIcons_6: {fileID: 0} 394 | switchIcons_7: {fileID: 0} 395 | switchIcons_8: {fileID: 0} 396 | switchIcons_9: {fileID: 0} 397 | switchIcons_10: {fileID: 0} 398 | switchIcons_11: {fileID: 0} 399 | switchIcons_12: {fileID: 0} 400 | switchIcons_13: {fileID: 0} 401 | switchIcons_14: {fileID: 0} 402 | switchSmallIcons_0: {fileID: 0} 403 | switchSmallIcons_1: {fileID: 0} 404 | switchSmallIcons_2: {fileID: 0} 405 | switchSmallIcons_3: {fileID: 0} 406 | switchSmallIcons_4: {fileID: 0} 407 | switchSmallIcons_5: {fileID: 0} 408 | switchSmallIcons_6: {fileID: 0} 409 | switchSmallIcons_7: {fileID: 0} 410 | switchSmallIcons_8: {fileID: 0} 411 | switchSmallIcons_9: {fileID: 0} 412 | switchSmallIcons_10: {fileID: 0} 413 | switchSmallIcons_11: {fileID: 0} 414 | switchSmallIcons_12: {fileID: 0} 415 | switchSmallIcons_13: {fileID: 0} 416 | switchSmallIcons_14: {fileID: 0} 417 | switchManualHTML: 418 | switchAccessibleURLs: 419 | switchLegalInformation: 420 | switchMainThreadStackSize: 1048576 421 | switchPresenceGroupId: 0x01004b9000490000 422 | switchLogoHandling: 0 423 | switchReleaseVersion: 0 424 | switchDisplayVersion: 1.0.0 425 | switchStartupUserAccount: 0 426 | switchTouchScreenUsage: 0 427 | switchSupportedLanguagesMask: 0 428 | switchLogoType: 0 429 | switchApplicationErrorCodeCategory: 430 | switchUserAccountSaveDataSize: 0 431 | switchUserAccountSaveDataJournalSize: 0 432 | switchApplicationAttribute: 0 433 | switchCardSpecSize: 4 434 | switchCardSpecClock: 25 435 | switchRatingsMask: 0 436 | switchRatingsInt_0: 0 437 | switchRatingsInt_1: 0 438 | switchRatingsInt_2: 0 439 | switchRatingsInt_3: 0 440 | switchRatingsInt_4: 0 441 | switchRatingsInt_5: 0 442 | switchRatingsInt_6: 0 443 | switchRatingsInt_7: 0 444 | switchRatingsInt_8: 0 445 | switchRatingsInt_9: 0 446 | switchRatingsInt_10: 0 447 | switchRatingsInt_11: 0 448 | switchLocalCommunicationIds_0: 0x01004b9000490000 449 | switchLocalCommunicationIds_1: 450 | switchLocalCommunicationIds_2: 451 | switchLocalCommunicationIds_3: 452 | switchLocalCommunicationIds_4: 453 | switchLocalCommunicationIds_5: 454 | switchLocalCommunicationIds_6: 455 | switchLocalCommunicationIds_7: 456 | switchParentalControl: 0 457 | switchAllowsScreenshot: 1 458 | switchAllowsVideoCapturing: 1 459 | switchAllowsRuntimeAddOnContentInstall: 0 460 | switchDataLossConfirmation: 0 461 | switchUserAccountLockEnabled: 0 462 | switchSupportedNpadStyles: 3 463 | switchNativeFsCacheSize: 32 464 | switchIsHoldTypeHorizontal: 0 465 | switchSupportedNpadCount: 8 466 | switchSocketConfigEnabled: 0 467 | switchTcpInitialSendBufferSize: 32 468 | switchTcpInitialReceiveBufferSize: 64 469 | switchTcpAutoSendBufferSizeMax: 256 470 | switchTcpAutoReceiveBufferSizeMax: 256 471 | switchUdpSendBufferSize: 9 472 | switchUdpReceiveBufferSize: 42 473 | switchSocketBufferEfficiency: 4 474 | switchSocketInitializeEnabled: 1 475 | switchNetworkInterfaceManagerInitializeEnabled: 1 476 | switchPlayerConnectionEnabled: 1 477 | ps4NPAgeRating: 12 478 | ps4NPTitleSecret: 479 | ps4NPTrophyPackPath: 480 | ps4ParentalLevel: 1 481 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 482 | ps4Category: 0 483 | ps4MasterVersion: 01.00 484 | ps4AppVersion: 01.00 485 | ps4AppType: 0 486 | ps4ParamSfxPath: 487 | ps4VideoOutPixelFormat: 0 488 | ps4VideoOutInitialWidth: 1920 489 | ps4VideoOutBaseModeInitialWidth: 1920 490 | ps4VideoOutReprojectionRate: 120 491 | ps4PronunciationXMLPath: 492 | ps4PronunciationSIGPath: 493 | ps4BackgroundImagePath: 494 | ps4StartupImagePath: 495 | ps4StartupImagesFolder: 496 | ps4IconImagesFolder: 497 | ps4SaveDataImagePath: 498 | ps4SdkOverride: 499 | ps4BGMPath: 500 | ps4ShareFilePath: 501 | ps4ShareOverlayImagePath: 502 | ps4PrivacyGuardImagePath: 503 | ps4NPtitleDatPath: 504 | ps4RemotePlayKeyAssignment: -1 505 | ps4RemotePlayKeyMappingDir: 506 | ps4PlayTogetherPlayerCount: 0 507 | ps4EnterButtonAssignment: 1 508 | ps4ApplicationParam1: 0 509 | ps4ApplicationParam2: 0 510 | ps4ApplicationParam3: 0 511 | ps4ApplicationParam4: 0 512 | ps4DownloadDataSize: 0 513 | ps4GarlicHeapSize: 2048 514 | ps4ProGarlicHeapSize: 2560 515 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 516 | ps4pnSessions: 1 517 | ps4pnPresence: 1 518 | ps4pnFriends: 1 519 | ps4pnGameCustomData: 1 520 | playerPrefsSupport: 0 521 | enableApplicationExit: 0 522 | resetTempFolder: 1 523 | restrictedAudioUsageRights: 0 524 | ps4UseResolutionFallback: 0 525 | ps4ReprojectionSupport: 0 526 | ps4UseAudio3dBackend: 0 527 | ps4SocialScreenEnabled: 0 528 | ps4ScriptOptimizationLevel: 0 529 | ps4Audio3dVirtualSpeakerCount: 14 530 | ps4attribCpuUsage: 0 531 | ps4PatchPkgPath: 532 | ps4PatchLatestPkgPath: 533 | ps4PatchChangeinfoPath: 534 | ps4PatchDayOne: 0 535 | ps4attribUserManagement: 0 536 | ps4attribMoveSupport: 0 537 | ps4attrib3DSupport: 0 538 | ps4attribShareSupport: 0 539 | ps4attribExclusiveVR: 0 540 | ps4disableAutoHideSplash: 0 541 | ps4videoRecordingFeaturesUsed: 0 542 | ps4contentSearchFeaturesUsed: 0 543 | ps4attribEyeToEyeDistanceSettingVR: 0 544 | ps4IncludedModules: [] 545 | monoEnv: 546 | splashScreenBackgroundSourceLandscape: {fileID: 0} 547 | splashScreenBackgroundSourcePortrait: {fileID: 0} 548 | spritePackerPolicy: 549 | webGLMemorySize: 256 550 | webGLExceptionSupport: 1 551 | webGLNameFilesAsHashes: 0 552 | webGLDataCaching: 0 553 | webGLDebugSymbols: 0 554 | webGLEmscriptenArgs: 555 | webGLModulesDirectory: 556 | webGLTemplate: APPLICATION:Default 557 | webGLAnalyzeBuildSize: 0 558 | webGLUseEmbeddedResources: 0 559 | webGLCompressionFormat: 1 560 | webGLLinkerTarget: 1 561 | webGLThreadsSupport: 0 562 | scriptingDefineSymbols: {} 563 | platformArchitecture: 564 | iOS: 2 565 | scriptingBackend: 566 | Android: 0 567 | Standalone: 0 568 | WebGL: 1 569 | WebPlayer: 0 570 | iOS: 1 571 | il2cppCompilerConfiguration: {} 572 | managedStrippingLevel: {} 573 | incrementalIl2cppBuild: {} 574 | allowUnsafeCode: 0 575 | additionalIl2CppArgs: 576 | scriptingRuntimeVersion: 1 577 | apiCompatibilityLevelPerPlatform: {} 578 | m_RenderingPath: 1 579 | m_MobileRenderingPath: 1 580 | metroPackageName: uGUI_Hypertext 581 | metroPackageVersion: 582 | metroCertificatePath: 583 | metroCertificatePassword: 584 | metroCertificateSubject: 585 | metroCertificateIssuer: 586 | metroCertificateNotAfter: 0000000000000000 587 | metroApplicationDescription: uGUI_Hypertext 588 | wsaImages: {} 589 | metroTileShortName: 590 | metroTileShowName: 0 591 | metroMediumTileShowName: 0 592 | metroLargeTileShowName: 0 593 | metroWideTileShowName: 0 594 | metroSupportStreamingInstall: 0 595 | metroLastRequiredScene: 0 596 | metroDefaultTileSize: 1 597 | metroTileForegroundText: 1 598 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 599 | metroSplashScreenBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, 600 | a: 1} 601 | metroSplashScreenUseBackgroundColor: 1 602 | platformCapabilities: {} 603 | metroTargetDeviceFamilies: {} 604 | metroFTAName: 605 | metroFTAFileTypes: [] 606 | metroProtocolName: 607 | metroCompilationOverrides: 1 608 | XboxOneProductId: 609 | XboxOneUpdateKey: 610 | XboxOneSandboxId: 611 | XboxOneContentId: 612 | XboxOneTitleId: 613 | XboxOneSCId: 614 | XboxOneGameOsOverridePath: 615 | XboxOnePackagingOverridePath: 616 | XboxOneAppManifestOverridePath: 617 | XboxOneVersion: 1.0.0.0 618 | XboxOnePackageEncryption: 0 619 | XboxOnePackageUpdateGranularity: 2 620 | XboxOneDescription: 621 | XboxOneLanguage: 622 | - enus 623 | XboxOneCapability: [] 624 | XboxOneGameRating: {} 625 | XboxOneIsContentPackage: 0 626 | XboxOneEnableGPUVariability: 0 627 | XboxOneSockets: {} 628 | XboxOneSplashScreen: {fileID: 0} 629 | XboxOneAllowedProductIds: [] 630 | XboxOnePersistentLocalStorageSize: 0 631 | XboxOneXTitleMemory: 8 632 | xboxOneScriptCompiler: 0 633 | XboxOneOverrideIdentityName: 634 | vrEditorSettings: 635 | daydream: 636 | daydreamIconForeground: {fileID: 0} 637 | daydreamIconBackground: {fileID: 0} 638 | cloudServicesEnabled: 639 | Analytics: 0 640 | Build: 0 641 | Collab: 0 642 | ErrorHub: 0 643 | Game_Performance: 0 644 | Hub: 0 645 | Purchasing: 0 646 | UNet: 0 647 | Unity_Ads: 0 648 | luminIcon: 649 | m_Name: 650 | m_ModelFolderPath: 651 | m_PortalFolderPath: 652 | luminCert: 653 | m_CertPath: 654 | m_PrivateKeyPath: 655 | luminIsChannelApp: 0 656 | luminVersion: 657 | m_VersionCode: 1 658 | m_VersionName: 659 | facebookSdkVersion: 7.9.4 660 | facebookAppId: 661 | facebookCookies: 1 662 | facebookLogging: 1 663 | facebookStatus: 1 664 | facebookXfbml: 0 665 | facebookFrictionlessRequests: 1 666 | apiCompatibilityLevel: 2 667 | cloudProjectId: 668 | framebufferDepthMemorylessMode: 0 669 | projectName: 670 | organizationId: 671 | cloudEnabled: 0 672 | enableNativePlatformBackendsForNewInputSystem: 0 673 | disableOldInputManagerSupport: 0 674 | legacyClampBlendShapeWeights: 1 675 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.2.10f1 2 | m_EditorVersionWithRevision: 2019.2.10f1 (923acd2d43aa) 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: Fastest 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 2 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | blendWeights: 1 21 | textureQuality: 1 22 | anisotropicTextures: 0 23 | antiAliasing: 0 24 | softParticles: 0 25 | softVegetation: 0 26 | realtimeReflectionProbes: 0 27 | billboardsFaceCameraPosition: 0 28 | vSyncCount: 0 29 | lodBias: 0.3 30 | maximumLODLevel: 0 31 | particleRaycastBudget: 4 32 | asyncUploadTimeSlice: 2 33 | asyncUploadBufferSize: 4 34 | excludedTargetPlatforms: [] 35 | - serializedVersion: 2 36 | name: Fast 37 | pixelLightCount: 0 38 | shadows: 0 39 | shadowResolution: 0 40 | shadowProjection: 1 41 | shadowCascades: 1 42 | shadowDistance: 20 43 | shadowNearPlaneOffset: 2 44 | shadowCascade2Split: 0.33333334 45 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 46 | blendWeights: 2 47 | textureQuality: 0 48 | anisotropicTextures: 0 49 | antiAliasing: 0 50 | softParticles: 0 51 | softVegetation: 0 52 | realtimeReflectionProbes: 0 53 | billboardsFaceCameraPosition: 0 54 | vSyncCount: 0 55 | lodBias: 0.4 56 | maximumLODLevel: 0 57 | particleRaycastBudget: 16 58 | asyncUploadTimeSlice: 2 59 | asyncUploadBufferSize: 4 60 | excludedTargetPlatforms: [] 61 | - serializedVersion: 2 62 | name: Simple 63 | pixelLightCount: 1 64 | shadows: 1 65 | shadowResolution: 0 66 | shadowProjection: 1 67 | shadowCascades: 1 68 | shadowDistance: 20 69 | shadowNearPlaneOffset: 2 70 | shadowCascade2Split: 0.33333334 71 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 72 | blendWeights: 2 73 | textureQuality: 0 74 | anisotropicTextures: 1 75 | antiAliasing: 0 76 | softParticles: 0 77 | softVegetation: 0 78 | realtimeReflectionProbes: 0 79 | billboardsFaceCameraPosition: 0 80 | vSyncCount: 0 81 | lodBias: 0.7 82 | maximumLODLevel: 0 83 | particleRaycastBudget: 64 84 | asyncUploadTimeSlice: 2 85 | asyncUploadBufferSize: 4 86 | excludedTargetPlatforms: [] 87 | - serializedVersion: 2 88 | name: Good 89 | pixelLightCount: 2 90 | shadows: 2 91 | shadowResolution: 1 92 | shadowProjection: 1 93 | shadowCascades: 2 94 | shadowDistance: 40 95 | shadowNearPlaneOffset: 2 96 | shadowCascade2Split: 0.33333334 97 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 98 | blendWeights: 2 99 | textureQuality: 0 100 | anisotropicTextures: 1 101 | antiAliasing: 0 102 | softParticles: 0 103 | softVegetation: 1 104 | realtimeReflectionProbes: 1 105 | billboardsFaceCameraPosition: 1 106 | vSyncCount: 1 107 | lodBias: 1 108 | maximumLODLevel: 0 109 | particleRaycastBudget: 256 110 | asyncUploadTimeSlice: 2 111 | asyncUploadBufferSize: 4 112 | excludedTargetPlatforms: [] 113 | - serializedVersion: 2 114 | name: Beautiful 115 | pixelLightCount: 3 116 | shadows: 2 117 | shadowResolution: 2 118 | shadowProjection: 1 119 | shadowCascades: 2 120 | shadowDistance: 70 121 | shadowNearPlaneOffset: 2 122 | shadowCascade2Split: 0.33333334 123 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 124 | blendWeights: 4 125 | textureQuality: 0 126 | anisotropicTextures: 2 127 | antiAliasing: 2 128 | softParticles: 1 129 | softVegetation: 1 130 | realtimeReflectionProbes: 1 131 | billboardsFaceCameraPosition: 1 132 | vSyncCount: 1 133 | lodBias: 1.5 134 | maximumLODLevel: 0 135 | particleRaycastBudget: 1024 136 | asyncUploadTimeSlice: 2 137 | asyncUploadBufferSize: 4 138 | excludedTargetPlatforms: [] 139 | - serializedVersion: 2 140 | name: Fantastic 141 | pixelLightCount: 4 142 | shadows: 2 143 | shadowResolution: 2 144 | shadowProjection: 1 145 | shadowCascades: 4 146 | shadowDistance: 150 147 | shadowNearPlaneOffset: 2 148 | shadowCascade2Split: 0.33333334 149 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 150 | blendWeights: 4 151 | textureQuality: 0 152 | anisotropicTextures: 2 153 | antiAliasing: 2 154 | softParticles: 1 155 | softVegetation: 1 156 | realtimeReflectionProbes: 1 157 | billboardsFaceCameraPosition: 1 158 | vSyncCount: 1 159 | lodBias: 2 160 | maximumLODLevel: 0 161 | particleRaycastBudget: 4096 162 | asyncUploadTimeSlice: 2 163 | asyncUploadBufferSize: 4 164 | excludedTargetPlatforms: [] 165 | m_PerPlatformDefaultQuality: 166 | Android: 2 167 | BlackBerry: 2 168 | GLES Emulation: 5 169 | Nintendo 3DS: 5 170 | PS3: 5 171 | PS4: 5 172 | PSM: 5 173 | PSP2: 2 174 | Samsung TV: 2 175 | Standalone: 5 176 | Tizen: 2 177 | WP8: 5 178 | Web: 5 179 | WebGL: 3 180 | WiiU: 5 181 | Windows Store Apps: 5 182 | XBOX360: 5 183 | XboxOne: 5 184 | iPhone: 2 185 | tvOS: 5 186 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_Enabled: 0 14 | m_CaptureEditorExceptions: 1 15 | UnityPurchasingSettings: 16 | m_Enabled: 0 17 | m_TestMode: 0 18 | UnityAnalyticsSettings: 19 | m_Enabled: 0 20 | m_InitializeOnStartup: 1 21 | m_TestMode: 0 22 | m_TestEventUrl: 23 | m_TestConfigUrl: 24 | UnityAdsSettings: 25 | m_Enabled: 0 26 | m_InitializeOnStartup: 1 27 | m_TestMode: 0 28 | m_EnabledPlatforms: 4294967295 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | PerformanceReportingSettings: 32 | m_Enabled: 0 33 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # uGUI-Hypertext [![license](https://img.shields.io/badge/license-MIT-green.svg?style=flat-square)](https://github.com/setchi/uGUI-Hypertext/blob/master/LICENSE) [![Release](https://img.shields.io/github/release/setchi/uGUI-Hypertext.svg?style=flat-square&logo=github)](https://github.com/setchi/uGUI-Hypertext/releases/latest) 2 | 3 | `UnityEngine.UI.Text` で任意の部分文字列をクリック可能にするコンポーネントです。[English](https://translate.google.com/translate?sl=ja&tl=en&u=https://github.com/setchi/uGUI-Hypertext) (by Google Translate) 4 | 5 | ![screencast](screencast.gif) 6 | 7 | ```csharp 8 | public class RegexExample : MonoBehaviour 9 | { 10 | [SerializeField] RegexHypertext text = default; 11 | 12 | const string RegexUrl = @"https?://(?:[!-~]+\.)+[!-~]+"; 13 | const string RegexHashtag = @"[\s^][##]\w+"; 14 | 15 | void Start() 16 | { 17 | text.OnClick(RegexUrl, Color.cyan, url => Debug.Log(url)); 18 | text.OnClick(RegexHashtag, Color.green, hashtag => Debug.Log(hashtag)); 19 | } 20 | } 21 | ``` 22 | 23 | ## 導入 24 | [Releases](https://github.com/setchi/uGUI-Hypertext/releases/latest) から `Hypertext.unitypackage` をダウンロードして Unity Project にインポートします。 25 | 26 | ## サンプル 27 | [Hypertext/Examples](Assets/Hypertext/Examples/) に正規表現によるパターンマッチで任意の部分文字列をクリック可能にする実装例があるので参考にしてください。 28 | 29 | ## 使い方 30 | [HypertextBase](Assets/Hypertext/Scripts/HypertextBase.cs) を継承したクラスを作成し、`OnClick` メソッドを使って任意の部分文字列がクリックされた時のコールバックを登録できます。詳細はサンプルの [RegexHypertext](Assets/Hypertext/Examples/RegexHypertext.cs) を参考にしてください。 31 | 32 | ```csharp 33 | /// 34 | /// 指定した部分文字列にクリックイベントを登録します 35 | /// 36 | /// 部分文字列の開始文字位置 37 | /// 部分文字列の長さ 38 | /// 部分文字列につける色 39 | /// 部分文字列がクリックされたときのコールバック 40 | protected void OnClick(int startIndex, int length, Color color, Action onClick) 41 | ``` 42 | 43 | ## 開発環境 44 | Unity 2019.2.10f1 45 | 46 | ## Author 47 | [setchi](https://github.com/setchi) 48 | 49 | ## License 50 | [MIT](https://github.com/setchi/uGUI-Hypertext/blob/master/LICENSE) 51 | -------------------------------------------------------------------------------- /screencast.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/setchi/uGUI-Hypertext/5ca1614670cc5994b8f70e22848032adf22a51ec/screencast.gif --------------------------------------------------------------------------------