├── .gitignore ├── .idea └── .idea.UniFader │ └── .idea │ ├── indexLayout.xml │ └── vcs.xml ├── Assets ├── UniFader.meta └── UniFader │ ├── Materials.meta │ ├── Materials │ ├── UI_GradientMaskTransition.mat │ └── UI_GradientMaskTransition.mat.meta │ ├── Prefabs.meta │ ├── Prefabs │ ├── FadeCanvas.prefab │ └── FadeCanvas.prefab.meta │ ├── Sample.meta │ ├── Sample │ ├── FadeTest.cs │ ├── FadeTest.cs.meta │ ├── Sample.unity │ ├── Sample.unity.meta │ ├── Textures.meta │ └── Textures │ │ ├── Readme.txt │ │ ├── Readme.txt.meta │ │ ├── SampleGradientMasks.meta │ │ ├── SampleGradientMasks │ │ ├── rule_circle.png │ │ ├── rule_circle.png.meta │ │ ├── rule_diamond.png │ │ ├── rule_diamond.png.meta │ │ ├── rule_horizontal.png │ │ ├── rule_horizontal.png.meta │ │ ├── rule_rotate.png │ │ ├── rule_rotate.png.meta │ │ ├── rule_vertical.png │ │ └── rule_vertical.png.meta │ │ ├── unitychan_hbd.jpg │ │ └── unitychan_hbd.jpg.meta │ ├── Scripts.meta │ ├── Scripts │ ├── Editor.meta │ ├── Editor │ │ ├── CustomSerializeReferenceDrawer.cs │ │ ├── CustomSerializeReferenceDrawer.cs.meta │ │ ├── GradientMaskFadeDrawer.cs │ │ ├── GradientMaskFadeDrawer.cs.meta │ │ ├── UniFaderEditor.cs │ │ ├── UniFaderEditor.cs.meta │ │ ├── Utility.meta │ │ └── Utility │ │ │ ├── DrawUtility.cs │ │ │ ├── DrawUtility.cs.meta │ │ │ ├── TypeUtility.cs │ │ │ └── TypeUtility.cs.meta │ ├── FadePatterns.meta │ ├── FadePatterns │ │ ├── ColorFade.cs │ │ ├── ColorFade.cs.meta │ │ ├── GradientMaskFade.cs │ │ ├── GradientMaskFade.cs.meta │ │ ├── IFadePatern.cs │ │ └── IFadePatern.cs.meta │ ├── UniFader.cs │ └── UniFader.cs.meta │ ├── Shader.meta │ └── Shader │ ├── GradientMaskTransition.shader │ └── GradientMaskTransition.shader.meta ├── LICENSE ├── 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 /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | Assets/AssetStoreTools* 7 | 8 | # Visual Studio cache directory 9 | .vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | *.opendb 26 | 27 | # Unity3D generated meta files 28 | *.pidb.meta 29 | *.pdb.meta 30 | 31 | # Unity3D Generated File On Crash Reports 32 | sysinfo.txt 33 | 34 | # Builds 35 | *.apk 36 | *.unitypackage 37 | -------------------------------------------------------------------------------- /.idea/.idea.UniFader/.idea/indexLayout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Library/PackageCache/com.unity.2d.common@2.0.2 7 | Library/PackageCache/com.unity.collab-proxy@1.2.16 8 | Library/PackageCache/com.unity.ext.nunit@1.0.0 9 | Library/PackageCache/com.unity.ide.rider@1.1.0 10 | Library/PackageCache/com.unity.ide.vscode@1.1.2 11 | Library/PackageCache/com.unity.test-framework@1.1.3 12 | Library/PackageCache/com.unity.textmeshpro@2.0.1 13 | Library/PackageCache/com.unity.timeline@1.2.6 14 | Packages 15 | ProjectSettings 16 | 17 | 18 | .git 19 | .idea 20 | Library 21 | Logs 22 | Temp 23 | obj 24 | 25 | 26 | -------------------------------------------------------------------------------- /.idea/.idea.UniFader/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Assets/UniFader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a301a5407132e4e4c88879e3012d026f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniFader/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da7d0c51506934b2287d81da22a39225 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniFader/Materials/UI_GradientMaskTransition.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: UI_GradientMaskTransition 11 | m_Shader: {fileID: 4800000, guid: c3c429942dc6e455f93787e7ef006e38, type: 3} 12 | m_ShaderKeywords: Cutout FADE FADEMODE_CUTOUT Fade _FADEMODE_CUTOUT 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _GradientMaskTex: 23 | m_Texture: {fileID: 2800000, guid: e87ec6eaebb7343c6a0bb3e53de305b6, type: 3} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _MainTex: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | m_Floats: 31 | - FadeMode: 1 32 | - _AlphaRate: 0.5 33 | - _ColorMask: 15 34 | - _CutoutEdgeFactor: 0.02 35 | - _FadeMode: 1 36 | - _RegularDirection: 1 37 | - _Stencil: 0 38 | - _StencilComp: 8 39 | - _StencilOp: 0 40 | - _StencilReadMask: 255 41 | - _StencilWriteMask: 255 42 | - _UseUIAlphaClip: 0 43 | m_Colors: [] 44 | -------------------------------------------------------------------------------- /Assets/UniFader/Materials/UI_GradientMaskTransition.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b793591b72b494598a45ff7c123f8cb8 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniFader/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 487103d88011c4098ab9b2ca7d2bcfc3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniFader/Prefabs/FadeCanvas.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &6524962257752176795 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: 6524962257752176774} 12 | - component: {fileID: 6524962257752176773} 13 | - component: {fileID: 6524962257752176772} 14 | m_Layer: 5 15 | m_Name: Panel 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!224 &6524962257752176774 22 | RectTransform: 23 | m_ObjectHideFlags: 0 24 | m_CorrespondingSourceObject: {fileID: 0} 25 | m_PrefabInstance: {fileID: 0} 26 | m_PrefabAsset: {fileID: 0} 27 | m_GameObject: {fileID: 6524962257752176795} 28 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 29 | m_LocalPosition: {x: 0, y: 0, z: 0} 30 | m_LocalScale: {x: 1, y: 1, z: 1} 31 | m_Children: [] 32 | m_Father: {fileID: 6524962258379280615} 33 | m_RootOrder: 0 34 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 35 | m_AnchorMin: {x: 0, y: 0} 36 | m_AnchorMax: {x: 1, y: 1} 37 | m_AnchoredPosition: {x: 0, y: 0} 38 | m_SizeDelta: {x: 0, y: 0} 39 | m_Pivot: {x: 0.5, y: 0.5} 40 | --- !u!222 &6524962257752176773 41 | CanvasRenderer: 42 | m_ObjectHideFlags: 0 43 | m_CorrespondingSourceObject: {fileID: 0} 44 | m_PrefabInstance: {fileID: 0} 45 | m_PrefabAsset: {fileID: 0} 46 | m_GameObject: {fileID: 6524962257752176795} 47 | m_CullTransparentMesh: 0 48 | --- !u!114 &6524962257752176772 49 | MonoBehaviour: 50 | m_ObjectHideFlags: 0 51 | m_CorrespondingSourceObject: {fileID: 0} 52 | m_PrefabInstance: {fileID: 0} 53 | m_PrefabAsset: {fileID: 0} 54 | m_GameObject: {fileID: 6524962257752176795} 55 | m_Enabled: 1 56 | m_EditorHideFlags: 0 57 | m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} 58 | m_Name: 59 | m_EditorClassIdentifier: 60 | m_Material: {fileID: 2100000, guid: b793591b72b494598a45ff7c123f8cb8, type: 2} 61 | m_Color: {r: 1, g: 1, b: 1, a: 1} 62 | m_RaycastTarget: 1 63 | m_OnCullStateChanged: 64 | m_PersistentCalls: 65 | m_Calls: [] 66 | m_Sprite: {fileID: 21300000, guid: e2f8c3ce25a5640bd9f7579f8af06c8f, type: 3} 67 | m_Type: 0 68 | m_PreserveAspect: 0 69 | m_FillCenter: 1 70 | m_FillMethod: 4 71 | m_FillAmount: 1 72 | m_FillClockwise: 1 73 | m_FillOrigin: 0 74 | m_UseSpriteMesh: 0 75 | m_PixelsPerUnitMultiplier: 1 76 | --- !u!1 &6524962258379280634 77 | GameObject: 78 | m_ObjectHideFlags: 0 79 | m_CorrespondingSourceObject: {fileID: 0} 80 | m_PrefabInstance: {fileID: 0} 81 | m_PrefabAsset: {fileID: 0} 82 | serializedVersion: 6 83 | m_Component: 84 | - component: {fileID: 6524962258379280615} 85 | - component: {fileID: 6524962258379280614} 86 | - component: {fileID: 6524962258379280613} 87 | - component: {fileID: 6524962258379280612} 88 | - component: {fileID: 6524962258379280635} 89 | m_Layer: 5 90 | m_Name: FadeCanvas 91 | m_TagString: Untagged 92 | m_Icon: {fileID: 0} 93 | m_NavMeshLayer: 0 94 | m_StaticEditorFlags: 0 95 | m_IsActive: 1 96 | --- !u!224 &6524962258379280615 97 | RectTransform: 98 | m_ObjectHideFlags: 0 99 | m_CorrespondingSourceObject: {fileID: 0} 100 | m_PrefabInstance: {fileID: 0} 101 | m_PrefabAsset: {fileID: 0} 102 | m_GameObject: {fileID: 6524962258379280634} 103 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 104 | m_LocalPosition: {x: 0, y: 0, z: 0} 105 | m_LocalScale: {x: 0, y: 0, z: 0} 106 | m_Children: 107 | - {fileID: 6524962257752176774} 108 | m_Father: {fileID: 0} 109 | m_RootOrder: 0 110 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 111 | m_AnchorMin: {x: 0, y: 0} 112 | m_AnchorMax: {x: 0, y: 0} 113 | m_AnchoredPosition: {x: 0, y: 0} 114 | m_SizeDelta: {x: 0, y: 0} 115 | m_Pivot: {x: 0, y: 0} 116 | --- !u!223 &6524962258379280614 117 | Canvas: 118 | m_ObjectHideFlags: 0 119 | m_CorrespondingSourceObject: {fileID: 0} 120 | m_PrefabInstance: {fileID: 0} 121 | m_PrefabAsset: {fileID: 0} 122 | m_GameObject: {fileID: 6524962258379280634} 123 | m_Enabled: 1 124 | serializedVersion: 3 125 | m_RenderMode: 0 126 | m_Camera: {fileID: 0} 127 | m_PlaneDistance: 100 128 | m_PixelPerfect: 0 129 | m_ReceivesEvents: 1 130 | m_OverrideSorting: 0 131 | m_OverridePixelPerfect: 0 132 | m_SortingBucketNormalizedSize: 0 133 | m_AdditionalShaderChannelsFlag: 0 134 | m_SortingLayerID: 0 135 | m_SortingOrder: 10000 136 | m_TargetDisplay: 0 137 | --- !u!114 &6524962258379280613 138 | MonoBehaviour: 139 | m_ObjectHideFlags: 0 140 | m_CorrespondingSourceObject: {fileID: 0} 141 | m_PrefabInstance: {fileID: 0} 142 | m_PrefabAsset: {fileID: 0} 143 | m_GameObject: {fileID: 6524962258379280634} 144 | m_Enabled: 1 145 | m_EditorHideFlags: 0 146 | m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} 147 | m_Name: 148 | m_EditorClassIdentifier: 149 | m_UiScaleMode: 1 150 | m_ReferencePixelsPerUnit: 100 151 | m_ScaleFactor: 1 152 | m_ReferenceResolution: {x: 1600, y: 900} 153 | m_ScreenMatchMode: 0 154 | m_MatchWidthOrHeight: 0 155 | m_PhysicalUnit: 3 156 | m_FallbackScreenDPI: 96 157 | m_DefaultSpriteDPI: 96 158 | m_DynamicPixelsPerUnit: 1 159 | --- !u!114 &6524962258379280612 160 | MonoBehaviour: 161 | m_ObjectHideFlags: 0 162 | m_CorrespondingSourceObject: {fileID: 0} 163 | m_PrefabInstance: {fileID: 0} 164 | m_PrefabAsset: {fileID: 0} 165 | m_GameObject: {fileID: 6524962258379280634} 166 | m_Enabled: 1 167 | m_EditorHideFlags: 0 168 | m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} 169 | m_Name: 170 | m_EditorClassIdentifier: 171 | m_IgnoreReversedGraphics: 1 172 | m_BlockingObjects: 0 173 | m_BlockingMask: 174 | serializedVersion: 2 175 | m_Bits: 4294967295 176 | --- !u!114 &6524962258379280635 177 | MonoBehaviour: 178 | m_ObjectHideFlags: 0 179 | m_CorrespondingSourceObject: {fileID: 0} 180 | m_PrefabInstance: {fileID: 0} 181 | m_PrefabAsset: {fileID: 0} 182 | m_GameObject: {fileID: 6524962258379280634} 183 | m_Enabled: 1 184 | m_EditorHideFlags: 0 185 | m_Script: {fileID: 11500000, guid: 25182c06418a14ab7a1c83fc80a7f923, type: 3} 186 | m_Name: 187 | m_EditorClassIdentifier: 188 | usedAsInstance: 1 189 | fadeTarget: {fileID: 6524962257752176772} 190 | defaultDuration: 1 191 | fadeOutCurve: 192 | serializedVersion: 2 193 | m_Curve: 194 | - serializedVersion: 3 195 | time: 0 196 | value: 0 197 | inSlope: 1 198 | outSlope: 1 199 | tangentMode: 0 200 | weightedMode: 0 201 | inWeight: 0.33333334 202 | outWeight: 0.33333334 203 | - serializedVersion: 3 204 | time: 1 205 | value: 1 206 | inSlope: 1 207 | outSlope: 1 208 | tangentMode: 0 209 | weightedMode: 0 210 | inWeight: 0.33333334 211 | outWeight: 0.33333334 212 | m_PreInfinity: 2 213 | m_PostInfinity: 2 214 | m_RotationOrder: 4 215 | fadeInCurve: 216 | serializedVersion: 2 217 | m_Curve: 218 | - serializedVersion: 3 219 | time: 0 220 | value: 1 221 | inSlope: 0 222 | outSlope: -1 223 | tangentMode: 0 224 | weightedMode: 0 225 | inWeight: 0 226 | outWeight: 0 227 | - serializedVersion: 3 228 | time: 1 229 | value: 0 230 | inSlope: -1 231 | outSlope: 0 232 | tangentMode: 0 233 | weightedMode: 0 234 | inWeight: 0 235 | outWeight: 0 236 | m_PreInfinity: 2 237 | m_PostInfinity: 2 238 | m_RotationOrder: 4 239 | sortingOrder: 10000 240 | ignoreTimeScale: 0 241 | onFadeOut: 242 | m_PersistentCalls: 243 | m_Calls: [] 244 | onFadeIn: 245 | m_PersistentCalls: 246 | m_Calls: [] 247 | fadePattern: 248 | id: 0 249 | references: 250 | version: 1 251 | 00000000: 252 | type: {class: GradientMaskFade, ns: MB.UniFader, asm: Assembly-CSharp} 253 | data: 254 | ruleMaterial: {fileID: 2100000, guid: b793591b72b494598a45ff7c123f8cb8, type: 2} 255 | ruleTexture: {fileID: 2800000, guid: e87ec6eaebb7343c6a0bb3e53de305b6, type: 3} 256 | fadeOutInMode: 2 257 | -------------------------------------------------------------------------------- /Assets/UniFader/Prefabs/FadeCanvas.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8569c3623587f48de9f22fbd146c1236 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UniFader/Sample.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1174f1c2c594f4fd1bec303f919b4219 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniFader/Sample/FadeTest.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using UnityEngine; 3 | using MB.UniFader; 4 | 5 | public class FadeTest : MonoBehaviour 6 | { 7 | void Update() 8 | { 9 | if (Input.GetButtonDown("Jump")) 10 | { 11 | UniFader.Instance.LoadSceneWithFade(0); 12 | } 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Assets/UniFader/Sample/FadeTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87ffdeb2227b1499eb2e4f5c70b4f798 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Sample.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.37311953, g: 0.38074, b: 0.35872698, 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_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_UseShadowmask: 1 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | debug: 122 | m_Flags: 0 123 | m_NavMeshData: {fileID: 0} 124 | --- !u!1 &254322574 125 | GameObject: 126 | m_ObjectHideFlags: 0 127 | m_CorrespondingSourceObject: {fileID: 0} 128 | m_PrefabInstance: {fileID: 0} 129 | m_PrefabAsset: {fileID: 0} 130 | serializedVersion: 6 131 | m_Component: 132 | - component: {fileID: 254322577} 133 | - component: {fileID: 254322576} 134 | - component: {fileID: 254322575} 135 | m_Layer: 0 136 | m_Name: EventSystem 137 | m_TagString: Untagged 138 | m_Icon: {fileID: 0} 139 | m_NavMeshLayer: 0 140 | m_StaticEditorFlags: 0 141 | m_IsActive: 1 142 | --- !u!114 &254322575 143 | MonoBehaviour: 144 | m_ObjectHideFlags: 0 145 | m_CorrespondingSourceObject: {fileID: 0} 146 | m_PrefabInstance: {fileID: 0} 147 | m_PrefabAsset: {fileID: 0} 148 | m_GameObject: {fileID: 254322574} 149 | m_Enabled: 1 150 | m_EditorHideFlags: 0 151 | m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} 152 | m_Name: 153 | m_EditorClassIdentifier: 154 | m_HorizontalAxis: Horizontal 155 | m_VerticalAxis: Vertical 156 | m_SubmitButton: Submit 157 | m_CancelButton: Cancel 158 | m_InputActionsPerSecond: 10 159 | m_RepeatDelay: 0.5 160 | m_ForceModuleActive: 0 161 | --- !u!114 &254322576 162 | MonoBehaviour: 163 | m_ObjectHideFlags: 0 164 | m_CorrespondingSourceObject: {fileID: 0} 165 | m_PrefabInstance: {fileID: 0} 166 | m_PrefabAsset: {fileID: 0} 167 | m_GameObject: {fileID: 254322574} 168 | m_Enabled: 1 169 | m_EditorHideFlags: 0 170 | m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} 171 | m_Name: 172 | m_EditorClassIdentifier: 173 | m_FirstSelected: {fileID: 0} 174 | m_sendNavigationEvents: 1 175 | m_DragThreshold: 10 176 | --- !u!4 &254322577 177 | Transform: 178 | m_ObjectHideFlags: 0 179 | m_CorrespondingSourceObject: {fileID: 0} 180 | m_PrefabInstance: {fileID: 0} 181 | m_PrefabAsset: {fileID: 0} 182 | m_GameObject: {fileID: 254322574} 183 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 184 | m_LocalPosition: {x: 0, y: 0, z: 0} 185 | m_LocalScale: {x: 1, y: 1, z: 1} 186 | m_Children: [] 187 | m_Father: {fileID: 0} 188 | m_RootOrder: 2 189 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 190 | --- !u!1 &963194225 191 | GameObject: 192 | m_ObjectHideFlags: 0 193 | m_CorrespondingSourceObject: {fileID: 0} 194 | m_PrefabInstance: {fileID: 0} 195 | m_PrefabAsset: {fileID: 0} 196 | serializedVersion: 6 197 | m_Component: 198 | - component: {fileID: 963194228} 199 | - component: {fileID: 963194227} 200 | - component: {fileID: 963194226} 201 | m_Layer: 0 202 | m_Name: Main Camera 203 | m_TagString: MainCamera 204 | m_Icon: {fileID: 0} 205 | m_NavMeshLayer: 0 206 | m_StaticEditorFlags: 0 207 | m_IsActive: 1 208 | --- !u!81 &963194226 209 | AudioListener: 210 | m_ObjectHideFlags: 0 211 | m_CorrespondingSourceObject: {fileID: 0} 212 | m_PrefabInstance: {fileID: 0} 213 | m_PrefabAsset: {fileID: 0} 214 | m_GameObject: {fileID: 963194225} 215 | m_Enabled: 1 216 | --- !u!20 &963194227 217 | Camera: 218 | m_ObjectHideFlags: 0 219 | m_CorrespondingSourceObject: {fileID: 0} 220 | m_PrefabInstance: {fileID: 0} 221 | m_PrefabAsset: {fileID: 0} 222 | m_GameObject: {fileID: 963194225} 223 | m_Enabled: 1 224 | serializedVersion: 2 225 | m_ClearFlags: 2 226 | m_BackGroundColor: {r: 0.3962264, g: 0.3962264, b: 0.3962264, a: 0} 227 | m_projectionMatrixMode: 1 228 | m_GateFitMode: 2 229 | m_FOVAxisMode: 0 230 | m_SensorSize: {x: 36, y: 24} 231 | m_LensShift: {x: 0, y: 0} 232 | m_FocalLength: 50 233 | m_NormalizedViewPortRect: 234 | serializedVersion: 2 235 | x: 0 236 | y: 0 237 | width: 1 238 | height: 1 239 | near clip plane: 0.3 240 | far clip plane: 1000 241 | field of view: 60 242 | orthographic: 0 243 | orthographic size: 5 244 | m_Depth: -1 245 | m_CullingMask: 246 | serializedVersion: 2 247 | m_Bits: 4294967295 248 | m_RenderingPath: -1 249 | m_TargetTexture: {fileID: 0} 250 | m_TargetDisplay: 0 251 | m_TargetEye: 3 252 | m_HDR: 1 253 | m_AllowMSAA: 1 254 | m_AllowDynamicResolution: 0 255 | m_ForceIntoRT: 0 256 | m_OcclusionCulling: 1 257 | m_StereoConvergence: 10 258 | m_StereoSeparation: 0.022 259 | --- !u!4 &963194228 260 | Transform: 261 | m_ObjectHideFlags: 0 262 | m_CorrespondingSourceObject: {fileID: 0} 263 | m_PrefabInstance: {fileID: 0} 264 | m_PrefabAsset: {fileID: 0} 265 | m_GameObject: {fileID: 963194225} 266 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 267 | m_LocalPosition: {x: 0, y: 1, z: -10} 268 | m_LocalScale: {x: 1, y: 1, z: 1} 269 | m_Children: [] 270 | m_Father: {fileID: 0} 271 | m_RootOrder: 0 272 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 273 | --- !u!1 &1837252146 274 | GameObject: 275 | m_ObjectHideFlags: 0 276 | m_CorrespondingSourceObject: {fileID: 0} 277 | m_PrefabInstance: {fileID: 0} 278 | m_PrefabAsset: {fileID: 0} 279 | serializedVersion: 6 280 | m_Component: 281 | - component: {fileID: 1837252148} 282 | - component: {fileID: 1837252147} 283 | m_Layer: 0 284 | m_Name: FadeTest 285 | m_TagString: Untagged 286 | m_Icon: {fileID: 0} 287 | m_NavMeshLayer: 0 288 | m_StaticEditorFlags: 0 289 | m_IsActive: 1 290 | --- !u!114 &1837252147 291 | MonoBehaviour: 292 | m_ObjectHideFlags: 0 293 | m_CorrespondingSourceObject: {fileID: 0} 294 | m_PrefabInstance: {fileID: 0} 295 | m_PrefabAsset: {fileID: 0} 296 | m_GameObject: {fileID: 1837252146} 297 | m_Enabled: 1 298 | m_EditorHideFlags: 0 299 | m_Script: {fileID: 11500000, guid: 87ffdeb2227b1499eb2e4f5c70b4f798, type: 3} 300 | m_Name: 301 | m_EditorClassIdentifier: 302 | --- !u!4 &1837252148 303 | Transform: 304 | m_ObjectHideFlags: 0 305 | m_CorrespondingSourceObject: {fileID: 0} 306 | m_PrefabInstance: {fileID: 0} 307 | m_PrefabAsset: {fileID: 0} 308 | m_GameObject: {fileID: 1837252146} 309 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 310 | m_LocalPosition: {x: 0, y: 0, z: 0} 311 | m_LocalScale: {x: 1, y: 1, z: 1} 312 | m_Children: [] 313 | m_Father: {fileID: 0} 314 | m_RootOrder: 3 315 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 316 | --- !u!1001 &6524962256749068788 317 | PrefabInstance: 318 | m_ObjectHideFlags: 0 319 | serializedVersion: 2 320 | m_Modification: 321 | m_TransformParent: {fileID: 0} 322 | m_Modifications: 323 | - target: {fileID: 6524962258379280634, guid: 8569c3623587f48de9f22fbd146c1236, 324 | type: 3} 325 | propertyPath: m_Name 326 | value: FadeCanvas 327 | objectReference: {fileID: 0} 328 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 329 | type: 3} 330 | propertyPath: m_LocalPosition.x 331 | value: 0 332 | objectReference: {fileID: 0} 333 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 334 | type: 3} 335 | propertyPath: m_LocalPosition.y 336 | value: 0 337 | objectReference: {fileID: 0} 338 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 339 | type: 3} 340 | propertyPath: m_LocalPosition.z 341 | value: 0 342 | objectReference: {fileID: 0} 343 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 344 | type: 3} 345 | propertyPath: m_LocalRotation.x 346 | value: 0 347 | objectReference: {fileID: 0} 348 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 349 | type: 3} 350 | propertyPath: m_LocalRotation.y 351 | value: 0 352 | objectReference: {fileID: 0} 353 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 354 | type: 3} 355 | propertyPath: m_LocalRotation.z 356 | value: 0 357 | objectReference: {fileID: 0} 358 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 359 | type: 3} 360 | propertyPath: m_LocalRotation.w 361 | value: 1 362 | objectReference: {fileID: 0} 363 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 364 | type: 3} 365 | propertyPath: m_RootOrder 366 | value: 1 367 | objectReference: {fileID: 0} 368 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 369 | type: 3} 370 | propertyPath: m_LocalEulerAnglesHint.x 371 | value: 0 372 | objectReference: {fileID: 0} 373 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 374 | type: 3} 375 | propertyPath: m_LocalEulerAnglesHint.y 376 | value: 0 377 | objectReference: {fileID: 0} 378 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 379 | type: 3} 380 | propertyPath: m_LocalEulerAnglesHint.z 381 | value: 0 382 | objectReference: {fileID: 0} 383 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 384 | type: 3} 385 | propertyPath: m_AnchoredPosition.x 386 | value: 0 387 | objectReference: {fileID: 0} 388 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 389 | type: 3} 390 | propertyPath: m_AnchoredPosition.y 391 | value: 0 392 | objectReference: {fileID: 0} 393 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 394 | type: 3} 395 | propertyPath: m_SizeDelta.x 396 | value: 0 397 | objectReference: {fileID: 0} 398 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 399 | type: 3} 400 | propertyPath: m_SizeDelta.y 401 | value: 0 402 | objectReference: {fileID: 0} 403 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 404 | type: 3} 405 | propertyPath: m_AnchorMin.x 406 | value: 0 407 | objectReference: {fileID: 0} 408 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 409 | type: 3} 410 | propertyPath: m_AnchorMin.y 411 | value: 0 412 | objectReference: {fileID: 0} 413 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 414 | type: 3} 415 | propertyPath: m_AnchorMax.x 416 | value: 0 417 | objectReference: {fileID: 0} 418 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 419 | type: 3} 420 | propertyPath: m_AnchorMax.y 421 | value: 0 422 | objectReference: {fileID: 0} 423 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 424 | type: 3} 425 | propertyPath: m_Pivot.x 426 | value: 0 427 | objectReference: {fileID: 0} 428 | - target: {fileID: 6524962258379280615, guid: 8569c3623587f48de9f22fbd146c1236, 429 | type: 3} 430 | propertyPath: m_Pivot.y 431 | value: 0 432 | objectReference: {fileID: 0} 433 | m_RemovedComponents: [] 434 | m_SourcePrefab: {fileID: 100100000, guid: 8569c3623587f48de9f22fbd146c1236, type: 3} 435 | -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Sample.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fc0d4010bbf28b4594072e72b8655ab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c35a0a5bda20d456d9fa34697cfcf776 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/Readme.txt: -------------------------------------------------------------------------------- 1 | # License 2 | 3 | unitychan_hbd.jpg 4 | © Unity Technologies Japan/UCL -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/Readme.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ccc07991415e4b56b3467da24ba6935 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/SampleGradientMasks.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 527ab3af1d01241ddb44c8c9fbfa6813 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gok11/UniFader/df453e965e99c9eace58cd757c8f17efd36ef68d/Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_circle.png -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_circle.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 986a9ce97243c409d8211f3d7bfbdf73 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 2 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 3 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | forceMaximumCompressionQuality_BC6H_BC7: 0 73 | - serializedVersion: 3 74 | buildTarget: Standalone 75 | maxTextureSize: 2048 76 | resizeAlgorithm: 0 77 | textureFormat: -1 78 | textureCompression: 1 79 | compressionQuality: 50 80 | crunchedCompression: 0 81 | allowsAlphaSplitting: 0 82 | overridden: 0 83 | androidETC2FallbackOverride: 0 84 | forceMaximumCompressionQuality_BC6H_BC7: 0 85 | spriteSheet: 86 | serializedVersion: 2 87 | sprites: [] 88 | outline: [] 89 | physicsShape: [] 90 | bones: [] 91 | spriteID: 5e97eb03825dee720800000000000000 92 | internalID: 0 93 | vertices: [] 94 | indices: 95 | edges: [] 96 | weights: [] 97 | secondaryTextures: [] 98 | spritePackingTag: 99 | pSDRemoveMatte: 0 100 | pSDShowRemoveMatteOption: 0 101 | userData: 102 | assetBundleName: 103 | assetBundleVariant: 104 | -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_diamond.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gok11/UniFader/df453e965e99c9eace58cd757c8f17efd36ef68d/Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_diamond.png -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_diamond.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a8a38232dfb64e8d931267edf4fd8bc 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 2 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 3 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | forceMaximumCompressionQuality_BC6H_BC7: 0 73 | - serializedVersion: 3 74 | buildTarget: Standalone 75 | maxTextureSize: 2048 76 | resizeAlgorithm: 0 77 | textureFormat: -1 78 | textureCompression: 1 79 | compressionQuality: 50 80 | crunchedCompression: 0 81 | allowsAlphaSplitting: 0 82 | overridden: 0 83 | androidETC2FallbackOverride: 0 84 | forceMaximumCompressionQuality_BC6H_BC7: 0 85 | spriteSheet: 86 | serializedVersion: 2 87 | sprites: [] 88 | outline: [] 89 | physicsShape: [] 90 | bones: [] 91 | spriteID: 5e97eb03825dee720800000000000000 92 | internalID: 0 93 | vertices: [] 94 | indices: 95 | edges: [] 96 | weights: [] 97 | secondaryTextures: [] 98 | spritePackingTag: 99 | pSDRemoveMatte: 0 100 | pSDShowRemoveMatteOption: 0 101 | userData: 102 | assetBundleName: 103 | assetBundleVariant: 104 | -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_horizontal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gok11/UniFader/df453e965e99c9eace58cd757c8f17efd36ef68d/Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_horizontal.png -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_horizontal.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e87ec6eaebb7343c6a0bb3e53de305b6 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 2 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 3 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | forceMaximumCompressionQuality_BC6H_BC7: 0 73 | - serializedVersion: 3 74 | buildTarget: Standalone 75 | maxTextureSize: 2048 76 | resizeAlgorithm: 0 77 | textureFormat: -1 78 | textureCompression: 1 79 | compressionQuality: 50 80 | crunchedCompression: 0 81 | allowsAlphaSplitting: 0 82 | overridden: 0 83 | androidETC2FallbackOverride: 0 84 | forceMaximumCompressionQuality_BC6H_BC7: 0 85 | spriteSheet: 86 | serializedVersion: 2 87 | sprites: [] 88 | outline: [] 89 | physicsShape: [] 90 | bones: [] 91 | spriteID: 5e97eb03825dee720800000000000000 92 | internalID: 0 93 | vertices: [] 94 | indices: 95 | edges: [] 96 | weights: [] 97 | secondaryTextures: [] 98 | spritePackingTag: 99 | pSDRemoveMatte: 0 100 | pSDShowRemoveMatteOption: 0 101 | userData: 102 | assetBundleName: 103 | assetBundleVariant: 104 | -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gok11/UniFader/df453e965e99c9eace58cd757c8f17efd36ef68d/Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_rotate.png -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_rotate.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 177c66bdce0194ebda152b25d4ba4e56 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 2 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 3 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | forceMaximumCompressionQuality_BC6H_BC7: 0 73 | - serializedVersion: 3 74 | buildTarget: Standalone 75 | maxTextureSize: 2048 76 | resizeAlgorithm: 0 77 | textureFormat: -1 78 | textureCompression: 1 79 | compressionQuality: 50 80 | crunchedCompression: 0 81 | allowsAlphaSplitting: 0 82 | overridden: 0 83 | androidETC2FallbackOverride: 0 84 | forceMaximumCompressionQuality_BC6H_BC7: 0 85 | spriteSheet: 86 | serializedVersion: 2 87 | sprites: [] 88 | outline: [] 89 | physicsShape: [] 90 | bones: [] 91 | spriteID: 5e97eb03825dee720800000000000000 92 | internalID: 0 93 | vertices: [] 94 | indices: 95 | edges: [] 96 | weights: [] 97 | secondaryTextures: [] 98 | spritePackingTag: 99 | pSDRemoveMatte: 0 100 | pSDShowRemoveMatteOption: 0 101 | userData: 102 | assetBundleName: 103 | assetBundleVariant: 104 | -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_vertical.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gok11/UniFader/df453e965e99c9eace58cd757c8f17efd36ef68d/Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_vertical.png -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/SampleGradientMasks/rule_vertical.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 10f11773287e848e689606f0d0e56685 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 2 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 3 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | forceMaximumCompressionQuality_BC6H_BC7: 0 73 | - serializedVersion: 3 74 | buildTarget: Standalone 75 | maxTextureSize: 2048 76 | resizeAlgorithm: 0 77 | textureFormat: -1 78 | textureCompression: 1 79 | compressionQuality: 50 80 | crunchedCompression: 0 81 | allowsAlphaSplitting: 0 82 | overridden: 0 83 | androidETC2FallbackOverride: 0 84 | forceMaximumCompressionQuality_BC6H_BC7: 0 85 | spriteSheet: 86 | serializedVersion: 2 87 | sprites: [] 88 | outline: [] 89 | physicsShape: [] 90 | bones: [] 91 | spriteID: 5e97eb03825dee720800000000000000 92 | internalID: 0 93 | vertices: [] 94 | indices: 95 | edges: [] 96 | weights: [] 97 | secondaryTextures: [] 98 | spritePackingTag: 99 | pSDRemoveMatte: 0 100 | pSDShowRemoveMatteOption: 0 101 | userData: 102 | assetBundleName: 103 | assetBundleVariant: 104 | -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/unitychan_hbd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gok11/UniFader/df453e965e99c9eace58cd757c8f17efd36ef68d/Assets/UniFader/Sample/Textures/unitychan_hbd.jpg -------------------------------------------------------------------------------- /Assets/UniFader/Sample/Textures/unitychan_hbd.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2f8c3ce25a5640bd9f7579f8af06c8f 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 3 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | forceMaximumCompressionQuality_BC6H_BC7: 0 73 | - serializedVersion: 3 74 | buildTarget: Standalone 75 | maxTextureSize: 2048 76 | resizeAlgorithm: 0 77 | textureFormat: -1 78 | textureCompression: 1 79 | compressionQuality: 50 80 | crunchedCompression: 0 81 | allowsAlphaSplitting: 0 82 | overridden: 0 83 | androidETC2FallbackOverride: 0 84 | forceMaximumCompressionQuality_BC6H_BC7: 0 85 | spriteSheet: 86 | serializedVersion: 2 87 | sprites: [] 88 | outline: [] 89 | physicsShape: [] 90 | bones: [] 91 | spriteID: 5e97eb03825dee720800000000000000 92 | internalID: 0 93 | vertices: [] 94 | indices: 95 | edges: [] 96 | weights: [] 97 | secondaryTextures: [] 98 | spritePackingTag: 99 | pSDRemoveMatte: 0 100 | pSDShowRemoveMatteOption: 0 101 | userData: 102 | assetBundleName: 103 | assetBundleVariant: 104 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 055163d25fd6c44f094dd034d21b7f86 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f86998d2652ad476796b545d3824c686 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/Editor/CustomSerializeReferenceDrawer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MB.UniFader 4 | { 5 | public class CustomSerializeReferenceDrawer : Attribute 6 | { 7 | public Type type; 8 | 9 | public CustomSerializeReferenceDrawer(Type type) 10 | { 11 | this.type = type; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/Editor/CustomSerializeReferenceDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 58e70e263a3b74213a97ce7a74fcdef1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/Editor/GradientMaskFadeDrawer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEditor; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | 6 | namespace MB.UniFader 7 | { 8 | [CustomSerializeReferenceDrawer(typeof(GradientMaskFade))] 9 | public class GradientMaskFadeDrawer : PropertyDrawer 10 | { 11 | private static readonly int FadeMode = Shader.PropertyToID("_FadeMode"); 12 | private static readonly int AlphaRate = Shader.PropertyToID("_AlphaRate"); 13 | private static readonly int RegularDirection = Shader.PropertyToID("_RegularDirection"); 14 | private static readonly int GradientMaskTex = Shader.PropertyToID("GradientMaskTex"); 15 | private static readonly int CutoutEdgeFactor = Shader.PropertyToID("_CutoutEdgeFactor"); 16 | 17 | private enum TransitionMode 18 | { 19 | Fade, Cutout 20 | } 21 | 22 | private float LineHeight => EditorGUIUtility.singleLineHeight + EditorGUIUtility.standardVerticalSpacing; 23 | 24 | public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) 25 | { 26 | var ruleMaterial = property.FindPropertyRelative("ruleMaterial"); 27 | var ruleTexture = property.FindPropertyRelative("ruleTexture"); 28 | var fadeOutInMode = property.FindPropertyRelative("fadeOutInMode"); 29 | var ruleMaterialObj = (ruleMaterial.objectReferenceValue as System.Object) as Material; 30 | 31 | var fieldRect = position; 32 | fieldRect.height = EditorGUIUtility.singleLineHeight; 33 | 34 | // Set material 35 | fieldRect.y += LineHeight; 36 | EditorGUI.BeginChangeCheck(); 37 | EditorGUI.PropertyField(fieldRect, ruleMaterial, new GUIContent("Transition Material")); 38 | if (EditorGUI.EndChangeCheck()) 39 | { 40 | var fadeTarget = property.serializedObject.FindProperty("fadeTarget"); 41 | var image = (fadeTarget.objectReferenceValue as System.Object) as Image; 42 | image.material = (ruleMaterial.objectReferenceValue as System.Object) as Material; 43 | } 44 | 45 | // Set texture 46 | fieldRect.y += LineHeight; 47 | //var prevTexture = ruleTexture.objectReferenceValue; 48 | EditorGUI.BeginChangeCheck(); 49 | EditorGUI.PropertyField(fieldRect, ruleTexture, new GUIContent("Mask Texture")); 50 | if (EditorGUI.EndChangeCheck() && ruleMaterialObj != null) 51 | { 52 | ruleMaterialObj.SetTexture(GradientMaskTex, ruleTexture.objectReferenceValue as Texture); 53 | } 54 | 55 | // -- draw transition mode -- 56 | fieldRect.y += LineHeight; 57 | GUI.enabled = ruleMaterialObj != null; 58 | 59 | var transitionModeRect = fieldRect; 60 | EditorGUI.PrefixLabel(transitionModeRect, new GUIContent("Transition Mode")); 61 | 62 | transitionModeRect.x += EditorGUIUtility.labelWidth + 2; 63 | transitionModeRect.width -= EditorGUIUtility.labelWidth + 2; 64 | 65 | if (ruleMaterialObj != null) 66 | { 67 | // set transition mode 68 | var prevMode = (TransitionMode) ruleMaterialObj.GetInt(FadeMode); 69 | var newMode = 70 | (TransitionMode) EditorGUI.EnumPopup(transitionModeRect, (TransitionMode) ruleMaterialObj.GetInt(FadeMode)); 71 | if (prevMode != newMode) 72 | { 73 | Undo.RecordObject(ruleMaterialObj, "Edit Transition Mode"); 74 | ruleMaterialObj.SetInt(FadeMode, (int) newMode); 75 | 76 | // update material keyword 77 | var values = Enum.GetValues(typeof(TransitionMode)); 78 | foreach (var value in values) 79 | { 80 | if ((int)value == (int) newMode) 81 | { 82 | ruleMaterialObj.EnableKeyword("_FADEMODE_" + newMode.ToString().ToUpper()); 83 | } 84 | else 85 | { 86 | var disabledName = Enum.GetName(typeof(TransitionMode), value); 87 | ruleMaterialObj.DisableKeyword("_FADEMODE_" + disabledName.ToUpper()); 88 | } 89 | } 90 | } 91 | 92 | // Set cutout edge factor 93 | if ((TransitionMode) ruleMaterialObj.GetInt(FadeMode) == TransitionMode.Cutout) 94 | { 95 | fieldRect.y += LineHeight; 96 | 97 | var edgeFactor = ruleMaterialObj.GetFloat(CutoutEdgeFactor); 98 | 99 | EditorGUI.BeginChangeCheck(); 100 | var newFactor = EditorGUI.Slider(fieldRect, new GUIContent("Cutout Edge Smoothness"), 101 | edgeFactor, 0, 0.1f); 102 | if (EditorGUI.EndChangeCheck()) 103 | { 104 | Undo.RecordObject(ruleMaterialObj, "Edit Edge Factor"); 105 | ruleMaterialObj.SetFloat(CutoutEdgeFactor, newFactor); 106 | } 107 | } 108 | } 109 | else 110 | { 111 | // only showing button 112 | GUI.Button(transitionModeRect, "Fade", "MiniPopup"); 113 | } 114 | 115 | // EnumPopup in SerializeReferenced interface doesn't work on 2019.3 116 | fieldRect.y += LineHeight; 117 | fadeOutInMode.intValue = (int) (GradientMaskFade.FadeOutInMode) EditorGUI.EnumPopup( 118 | fieldRect, "Fade Out In Mode", 119 | (GradientMaskFade.FadeOutInMode) fadeOutInMode.intValue); 120 | 121 | // debug function 122 | fieldRect.y += LineHeight; 123 | var boxRect = fieldRect; 124 | boxRect.height *= 2; 125 | GUI.Box(boxRect, ""); 126 | 127 | var alphaRateRect = fieldRect; 128 | alphaRateRect.x += 2; 129 | GUI.Label(alphaRateRect, new GUIContent("Debug"), EditorStyles.boldLabel); // EditorGUI.PrefixLabel doesn't work correctly 130 | 131 | alphaRateRect.y += LineHeight; 132 | alphaRateRect.width -= 4; 133 | if (ruleMaterialObj != null) 134 | { 135 | var currentRate = ruleMaterialObj.GetFloat(AlphaRate); 136 | EditorGUI.BeginChangeCheck(); 137 | var newRate = EditorGUI.Slider(alphaRateRect, new GUIContent("Alpha Rate"), currentRate, 0, 1f); 138 | if (currentRate != newRate) 139 | { 140 | Undo.RecordObject(ruleMaterialObj, "Edit Fade Values"); 141 | var direction = CalcDirection((GradientMaskFade.FadeOutInMode) fadeOutInMode.intValue); 142 | ruleMaterialObj.SetFloat(RegularDirection, direction); 143 | ruleMaterialObj.SetFloat(AlphaRate, newRate); 144 | } 145 | } 146 | else 147 | { 148 | EditorGUI.Slider(alphaRateRect, new GUIContent("Alpha Rate"), 0, 0, 1f); 149 | } 150 | 151 | GUI.enabled = true; 152 | } 153 | 154 | public override float GetPropertyHeight(SerializedProperty property, GUIContent label) 155 | { 156 | var height = LineHeight * 4; // 4 props 157 | height += LineHeight * 2; // debug height 158 | 159 | var ruleMaterial = property.FindPropertyRelative("ruleMaterial"); 160 | var ruleMaterialObj = (ruleMaterial.objectReferenceValue as System.Object) as Material; 161 | 162 | if (ruleMaterialObj && 163 | (TransitionMode) ruleMaterialObj.GetInt(FadeMode) == TransitionMode.Cutout) 164 | { 165 | height += LineHeight; 166 | } 167 | 168 | return height; 169 | } 170 | 171 | private int CalcDirection(GradientMaskFade.FadeOutInMode fadeOutInMode) 172 | { 173 | var direction = 0; 174 | 175 | switch (fadeOutInMode) 176 | { 177 | case GradientMaskFade.FadeOutInMode.Yoyo: 178 | case GradientMaskFade.FadeOutInMode.RepeatTwice: 179 | direction = 0; 180 | break; 181 | 182 | case GradientMaskFade.FadeOutInMode.InvertYoyo: 183 | case GradientMaskFade.FadeOutInMode.InvertRepeatTwice: 184 | direction = 1; 185 | break; 186 | } 187 | 188 | return direction; 189 | } 190 | } 191 | } 192 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/Editor/GradientMaskFadeDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e68bad77b4d274d5f82a90a3b9a05597 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/Editor/UniFaderEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using UnityEditor; 5 | using UnityEngine; 6 | using UnityEngine.UI; 7 | 8 | namespace MB.UniFader 9 | { 10 | [CustomEditor(typeof(UniFader))] 11 | public class UniFaderEditor : Editor 12 | { 13 | private SerializedProperty m_Script; 14 | private SerializedProperty usedAsInstance; 15 | private SerializedProperty fadeTarget; 16 | private SerializedProperty defaultDuration; 17 | private SerializedProperty fadeOutCurve; 18 | private SerializedProperty fadeInCurve; 19 | private SerializedProperty sortingOrder; 20 | private SerializedProperty ignoreTimeScale; 21 | private SerializedProperty onFadeOut; 22 | private SerializedProperty onFadeIn; 23 | private SerializedProperty fadePattern; 24 | 25 | private FadeMode fadeMode = FadeMode.FadeOutIn; 26 | private Dictionary serializeDrawerDictionary; 27 | 28 | void OnEnable() 29 | { 30 | m_Script = serializedObject.FindProperty("m_Script"); 31 | usedAsInstance = serializedObject.FindProperty("usedAsInstance"); 32 | fadeTarget = serializedObject.FindProperty("fadeTarget"); 33 | defaultDuration = serializedObject.FindProperty("defaultDuration"); 34 | fadeOutCurve = serializedObject.FindProperty("fadeOutCurve"); 35 | fadeInCurve = serializedObject.FindProperty("fadeInCurve"); 36 | sortingOrder = serializedObject.FindProperty("sortingOrder"); 37 | ignoreTimeScale = serializedObject.FindProperty("ignoreTimeScale"); 38 | onFadeOut = serializedObject.FindProperty("onFadeOut"); 39 | onFadeIn = serializedObject.FindProperty("onFadeIn"); 40 | fadePattern = serializedObject.FindProperty("fadePattern"); 41 | } 42 | 43 | public override void OnInspectorGUI() 44 | { 45 | serializedObject.Update(); 46 | 47 | var uniFader = serializedObject.targetObject as UniFader; 48 | 49 | using (new EditorGUI.DisabledScope(true)) 50 | { 51 | EditorGUILayout.PropertyField(m_Script); 52 | } 53 | 54 | EditorGUILayout.PropertyField(usedAsInstance); 55 | 56 | if (CheckIfMultiFaderHasDefaultSettings()) 57 | { 58 | EditorGUILayout.HelpBox("There are some UniFader marked as \"Used By Default\". One of them is used by static functions at random.", MessageType.Warning); 59 | } 60 | 61 | EditorGUILayout.PropertyField(fadeTarget); 62 | EditorGUILayout.PropertyField(defaultDuration); 63 | 64 | using (new EditorGUILayout.HorizontalScope()) 65 | { 66 | EditorGUILayout.PropertyField(fadeOutCurve); 67 | ShowContextButton("Copy Mirror Curve To Fade In", fadeOutCurve); 68 | } 69 | 70 | using (new EditorGUILayout.HorizontalScope()) 71 | { 72 | EditorGUILayout.PropertyField(fadeInCurve); 73 | ShowContextButton("Copy Mirror Curve To Fade Out", fadeInCurve); 74 | } 75 | 76 | EditorGUILayout.PropertyField(sortingOrder); 77 | EditorGUILayout.PropertyField(ignoreTimeScale); 78 | 79 | DrawUtility.DrawSeparator(3); 80 | 81 | // create fade pattern menu 82 | using (new EditorGUILayout.HorizontalScope()) 83 | { 84 | EditorGUILayout.PrefixLabel("Fade Pattern"); 85 | if (GUILayout.Button(fadePattern.type, "MiniPopup")) 86 | { 87 | var menu = new GenericMenu(); 88 | var names = TypeUtility.GetAllFadePatternNames(); 89 | 90 | for (var i = 0; i < names.Length; ++i) 91 | { 92 | var idx = i; 93 | menu.AddItem(new GUIContent(names[i]), false, 94 | () => 95 | { 96 | if (fadePattern.type == names[idx]) return; 97 | 98 | // Type.GetType doesn't work 99 | Undo.RegisterCompleteObjectUndo(uniFader, "Change Fade Pattern"); 100 | var fadeType = TypeUtility.GetTypeByName(names[idx]); 101 | var fadeInstance = (IFadePattern)Activator.CreateInstance(fadeType); 102 | uniFader.FadePattern = fadeInstance; 103 | 104 | var image = (fadeTarget.objectReferenceValue as System.Object) as Image; 105 | image.material = null; 106 | }); 107 | } 108 | menu.ShowAsContext(); 109 | } 110 | } 111 | 112 | DrawFaderItem(fadePattern); 113 | 114 | // Draw preview button 115 | using (new EditorGUILayout.VerticalScope("box")) 116 | { 117 | var titleLabel = Application.isPlaying ? "Debug" : "Debug (Runtime Only)"; 118 | GUILayout.Label(titleLabel, EditorStyles.boldLabel); 119 | 120 | EditorGUI.BeginDisabledGroup(!Application.isPlaying); 121 | EditorGUILayout.BeginHorizontal(); 122 | 123 | if (GUILayout.Button("Preview:", GUILayout.Width(EditorGUIUtility.labelWidth))) 124 | { 125 | switch (fadeMode) 126 | { 127 | case FadeMode.FadeIn: uniFader.FadeIn(); break; 128 | case FadeMode.FadeOut: uniFader.FadeOut(); break; 129 | case FadeMode.FadeInOut: uniFader.FadeIn(() => uniFader.FadeOut()); break; 130 | case FadeMode.FadeOutIn: uniFader.FadeOut(() => uniFader.FadeIn()); break; 131 | } 132 | } 133 | 134 | fadeMode = (FadeMode)EditorGUILayout.EnumPopup(fadeMode); 135 | 136 | EditorGUI.EndDisabledGroup(); 137 | EditorGUILayout.EndHorizontal(); 138 | } 139 | 140 | EditorGUILayout.PropertyField(onFadeOut); 141 | EditorGUILayout.PropertyField(onFadeIn); 142 | 143 | serializedObject.ApplyModifiedProperties(); 144 | } 145 | 146 | bool CheckIfMultiFaderHasDefaultSettings() 147 | { 148 | var faderHasUsedByDefaultCount = 149 | FindObjectsOfType().Count(t => t.UsedAsInstance); 150 | return faderHasUsedByDefaultCount > 1; 151 | } 152 | 153 | void ShowContextButton(string itemContent, SerializedProperty baseCurve) 154 | { 155 | if (GUILayout.Button("…", GUILayout.Width(30))) 156 | { 157 | var uniFader = serializedObject.targetObject as UniFader; 158 | 159 | var menu = new GenericMenu(); 160 | 161 | // add reversed copy button 162 | menu.AddItem(new GUIContent(itemContent), false, () => 163 | { 164 | // https://issuetracker.unity3d.com/issues/animationcurve-value-cannot-be-changed-in-custom-inspector-when-it-is-accessed-as-serialized-propertys-animationcurvevalue 165 | var fader = serializedObject.targetObject as UniFader; 166 | 167 | var baseKeys = baseCurve.animationCurveValue.keys; 168 | var keyLength = baseKeys.Length; 169 | var newKeys = new Keyframe[keyLength]; 170 | 171 | for (int i = 0; i < keyLength; ++i) 172 | { 173 | newKeys[i].time = baseKeys[i].time; 174 | newKeys[i].value = baseKeys[keyLength - 1 - i].value; 175 | 176 | newKeys[i].inWeight = baseKeys[keyLength - 1 - i].outWeight; 177 | newKeys[i].outWeight = baseKeys[keyLength - 1 - i].inWeight; 178 | 179 | newKeys[i].inTangent = baseKeys[keyLength - 1 - i].outTangent * -1; 180 | newKeys[i].outTangent = baseKeys[keyLength - 1 - i].inTangent * -1; 181 | } 182 | 183 | var newCurve = new AnimationCurve(newKeys); 184 | 185 | if (baseCurve.name == "fadeOutCurve") 186 | uniFader.FadeInCurve = newCurve; 187 | else 188 | uniFader.FadeOutCurve = newCurve; 189 | 190 | // force update animation curve 191 | AssetDatabase.Refresh(); 192 | }); 193 | 194 | // add reset button 195 | menu.AddItem(new GUIContent("Reset"), false, () => 196 | { 197 | // https://issuetracker.unity3d.com/issues/animationcurve-value-cannot-be-changed-in-custom-inspector-when-it-is-accessed-as-serialized-propertys-animationcurvevalue 198 | var fader = serializedObject.targetObject as UniFader; 199 | 200 | if (baseCurve.name == "fadeOutCurve") 201 | uniFader.FadeOutCurve = AnimationCurve.Linear(0, 0, 1, 1); 202 | else 203 | uniFader.FadeInCurve = AnimationCurve.Linear(0, 1, 1, 0); 204 | 205 | // force update animation curve 206 | AssetDatabase.Refresh(); 207 | }); 208 | 209 | menu.ShowAsContext(); 210 | } 211 | } 212 | 213 | void DrawFaderItem(SerializedProperty prop) 214 | { 215 | // CustomPropertyDrawer in SerializeReferenced interface seems not worked on 2019.3...(?) 216 | if (serializeDrawerDictionary == null) 217 | { 218 | serializeDrawerDictionary = TypeUtility.GetTypeDictWithCustomDrawerAttribute(); 219 | } 220 | 221 | var drawerType = serializeDrawerDictionary.ContainsKey(fadePattern.type) 222 | ? serializeDrawerDictionary[fadePattern.type] : null; 223 | 224 | if (drawerType != null) 225 | { 226 | var drawer = (PropertyDrawer)Activator.CreateInstance(drawerType); 227 | drawer.OnGUI(GUILayoutUtility.GetLastRect(), prop, null); 228 | EditorGUILayout.Space(drawer.GetPropertyHeight(prop, null)); 229 | } 230 | else 231 | { 232 | var fadeContent = prop.Copy(); 233 | while (fadeContent.NextVisible(true)) 234 | { 235 | EditorGUILayout.PropertyField(fadeContent, true); 236 | } 237 | } 238 | } 239 | } 240 | } 241 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/Editor/UniFaderEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5e14c6559f8f47f687f2acf346ba636 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/Editor/Utility.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 906086dbaa65244e0837acd97e44529f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/Editor/Utility/DrawUtility.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace MB.UniFader 4 | { 5 | public class DrawUtility 6 | { 7 | public static void DrawSeparator(float height) 8 | { 9 | GUILayout.Box("", GUILayout.ExpandWidth(true), GUILayout.Height(height)); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/Editor/Utility/DrawUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9496cb30ad60c4ff59c67fdefa9603ef 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/Editor/Utility/TypeUtility.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | namespace MB.UniFader 6 | { 7 | public class TypeUtility 8 | { 9 | public static Dictionary GetTypeDictWithCustomDrawerAttribute() 10 | { 11 | var drawerDict = new Dictionary(); 12 | 13 | foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) 14 | { 15 | foreach (var type in assembly.GetTypes()) 16 | { 17 | if (type.GetCustomAttributes(typeof(CustomSerializeReferenceDrawer), false).Length <= 0) 18 | continue; 19 | 20 | var drawer = (CustomSerializeReferenceDrawer) Attribute.GetCustomAttribute(type, typeof(CustomSerializeReferenceDrawer)); 21 | drawerDict.Add(drawer.type.Name, type); 22 | } 23 | } 24 | 25 | return drawerDict; 26 | } 27 | 28 | // Type.GetType doesn't work on Unity 29 | public static Type GetTypeByName(string className) 30 | { 31 | return AppDomain.CurrentDomain.GetAssemblies() 32 | .SelectMany(assembly => assembly.GetTypes()) 33 | .FirstOrDefault(type => type.Name == className); 34 | } 35 | 36 | public static string[] GetAllFadePatternNames() where T : class 37 | { 38 | var allFadePatternNames = new List(); 39 | 40 | foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) 41 | { 42 | var types = assembly.GetTypes() 43 | .Where(t => t != typeof(T)) 44 | .Where(t => typeof(T).IsAssignableFrom(t)) 45 | .Select(t => t.Name); 46 | allFadePatternNames.AddRange(types); 47 | } 48 | 49 | return allFadePatternNames.ToArray(); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/Editor/Utility/TypeUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35be0b4acd4804b399a5620982fc9eb4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/FadePatterns.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da1f41e922fb64f9f91b82711f7126fc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/FadePatterns/ColorFade.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | 4 | namespace MB.UniFader 5 | { 6 | public class ColorFade : IFadePattern 7 | { 8 | [SerializeField] private Color backgroundColor = Color.white; 9 | private Image target; 10 | 11 | public ColorFade () {} 12 | 13 | public ColorFade(Color backgroundColor) 14 | { 15 | this.backgroundColor = backgroundColor; 16 | } 17 | 18 | public void Initialize(Image targetImage) 19 | { 20 | target = targetImage; 21 | target.color = backgroundColor; 22 | } 23 | 24 | public void ExecFade(float progress, bool fadeOut) 25 | { 26 | target.SetImageAlpha(progress); 27 | } 28 | } 29 | 30 | static class ImageExtensions 31 | { 32 | public static void SetImageAlpha(this Image target, float alpha) 33 | { 34 | var c = target.color; 35 | c.a = alpha; 36 | target.color = c; 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/FadePatterns/ColorFade.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8891f962c62164e958c744251b4e2949 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/FadePatterns/GradientMaskFade.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.UI; 4 | 5 | namespace MB.UniFader 6 | { 7 | public class GradientMaskFade : IFadePattern 8 | { 9 | [SerializeField] private Material ruleMaterial; 10 | [SerializeField] private Texture2D ruleTexture = null; 11 | [SerializeField] private FadeOutInMode fadeOutInMode = FadeOutInMode.Yoyo; 12 | 13 | public enum FadeOutInMode 14 | { 15 | Yoyo, 16 | InvertYoyo, 17 | RepeatTwice, 18 | InvertRepeatTwice 19 | } 20 | 21 | private static readonly int AlphaRate = Shader.PropertyToID("_AlphaRate"); 22 | private static readonly int RegularDirection = Shader.PropertyToID("_RegularDirection"); 23 | private static readonly int GradientMaskTex = Shader.PropertyToID("_GradientMaskTex"); 24 | 25 | public GradientMaskFade() {} 26 | 27 | public GradientMaskFade(Material ruleMaterial) 28 | { 29 | this.ruleMaterial = ruleMaterial; 30 | } 31 | 32 | public void Initialize(Image targetImage) 33 | { 34 | if (!ruleMaterial || !ruleTexture) return; 35 | 36 | targetImage.material = ruleMaterial; 37 | ruleMaterial.SetTexture(GradientMaskTex, ruleTexture); 38 | } 39 | 40 | public void ExecFade(float progress, bool fadeOut) 41 | { 42 | if (!ruleMaterial || !ruleTexture) 43 | { 44 | throw new NullReferenceException("should set Gradient material and texture in Scene Fader"); 45 | } 46 | 47 | var direction = CalcDirection(fadeOut); 48 | ruleMaterial.SetFloat(RegularDirection, direction); 49 | ruleMaterial.SetFloat(AlphaRate, progress); 50 | } 51 | 52 | private int CalcDirection(bool fadeOut) 53 | { 54 | var direction = 0; 55 | 56 | switch (fadeOutInMode) 57 | { 58 | case FadeOutInMode.Yoyo: 59 | direction = 0; 60 | break; 61 | 62 | case FadeOutInMode.InvertYoyo: 63 | direction = 1; 64 | break; 65 | 66 | case FadeOutInMode.RepeatTwice: 67 | direction = fadeOut ? 0 : 1; 68 | break; 69 | 70 | case FadeOutInMode.InvertRepeatTwice: 71 | direction = fadeOut ? 1 : 0; 72 | break; 73 | } 74 | 75 | return direction; 76 | } 77 | } 78 | } -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/FadePatterns/GradientMaskFade.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f88f6d2dc97db4a299ba8d87e3ab7a72 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/FadePatterns/IFadePatern.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine.UI; 2 | 3 | namespace MB.UniFader 4 | { 5 | public interface IFadePattern 6 | { 7 | void Initialize(Image targetImage); 8 | void ExecFade(float progress, bool fadeOut); 9 | } 10 | } -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/FadePatterns/IFadePatern.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 087c4cd88be774a618e42c1b6b0997e5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/UniFader.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Linq; 4 | using UnityEngine; 5 | using UnityEngine.Events; 6 | using UnityEngine.UI; 7 | using UnityEngine.SceneManagement; 8 | 9 | namespace MB.UniFader 10 | { 11 | public enum FadeMode 12 | { 13 | FadeIn, 14 | FadeOut, 15 | FadeInOut, 16 | FadeOutIn 17 | } 18 | 19 | [ExecuteAlways] 20 | public class UniFader : MonoBehaviour 21 | { 22 | private Canvas canvas; 23 | 24 | [Tooltip("If this is enabled, this fader is used by static functions")] 25 | [SerializeField] private bool usedAsInstance = true; 26 | 27 | [SerializeField] private Image fadeTarget; 28 | [SerializeField] private float defaultDuration = 1f; 29 | [SerializeField] private AnimationCurve fadeOutCurve = AnimationCurve.Linear(0, 0, 1, 1); 30 | [SerializeField] private AnimationCurve fadeInCurve = AnimationCurve.Linear(0, 1, 1, 0); 31 | [SerializeField] private int sortingOrder = 10000; 32 | [SerializeField] private bool ignoreTimeScale = false; 33 | 34 | [SerializeField] private UnityEvent onFadeOut = new UnityEvent(); 35 | [SerializeField] private UnityEvent onFadeIn = new UnityEvent(); 36 | 37 | [SerializeReference] private IFadePattern fadePattern = new ColorFade(); 38 | 39 | public bool UsedAsInstance => usedAsInstance; 40 | 41 | public Image FadeTarget 42 | { 43 | get => fadeTarget; 44 | set => fadeTarget = value; 45 | } 46 | 47 | public Sprite FadeContentSprite 48 | { 49 | set => fadeTarget.sprite = value; 50 | } 51 | 52 | public AnimationCurve FadeOutCurve 53 | { 54 | get => fadeOutCurve; 55 | set => fadeOutCurve = value; 56 | } 57 | 58 | public AnimationCurve FadeInCurve 59 | { 60 | get => fadeInCurve; 61 | set => fadeInCurve = value; 62 | } 63 | 64 | public int SortingOrder 65 | { 66 | get => sortingOrder; 67 | set => sortingOrder = value; 68 | } 69 | 70 | public bool IgnoreTimeScale 71 | { 72 | get => ignoreTimeScale; 73 | set => ignoreTimeScale = value; 74 | } 75 | 76 | public UnityEvent OnFadeOut 77 | { 78 | get => onFadeOut; 79 | set => onFadeOut = value; 80 | } 81 | 82 | public UnityEvent OnFadeIn 83 | { 84 | get => onFadeIn; 85 | set => onFadeIn = value; 86 | } 87 | 88 | public IFadePattern FadePattern 89 | { 90 | set 91 | { 92 | fadePattern = value; 93 | if (fadeTarget) 94 | fadePattern.Initialize(fadeTarget); 95 | } 96 | } 97 | 98 | public static UniFader Instance 99 | { 100 | get 101 | { 102 | if (_instance) return _instance; 103 | 104 | _instance = FindObjectsOfType() 105 | .FirstOrDefault(t => t.fadeTarget && t.usedAsInstance); 106 | if (_instance) return _instance; 107 | 108 | _instance = new GameObject("UniFader").AddComponent(); 109 | return _instance; 110 | } 111 | } 112 | private static UniFader _instance; 113 | private bool isFading = false; 114 | 115 | void Awake() 116 | { 117 | InitializeFadeTarget(); 118 | } 119 | 120 | void OnValidate() 121 | { 122 | if (canvas) canvas.sortingOrder = sortingOrder; 123 | if (fadePattern != null && fadeTarget) 124 | fadePattern.Initialize(fadeTarget); 125 | } 126 | 127 | /// 128 | /// Initialization. 129 | /// Create fade target panel and set color. 130 | /// 131 | void InitializeFadeTarget() 132 | { 133 | 134 | if (!fadeTarget) 135 | { 136 | canvas = new GameObject("FadeCanvas").AddComponent(); 137 | canvas.renderMode = RenderMode.ScreenSpaceOverlay; 138 | canvas.sortingOrder = sortingOrder; 139 | 140 | var canvasScaler = canvas.gameObject.AddComponent(); 141 | canvasScaler.uiScaleMode = CanvasScaler.ScaleMode.ScaleWithScreenSize; 142 | canvasScaler.referenceResolution = 143 | new Vector2(Screen.currentResolution.width, Screen.currentResolution.height);; 144 | canvas.gameObject.AddComponent(); 145 | 146 | var panel = new GameObject("FadePanel").AddComponent(); 147 | fadeTarget = panel; 148 | 149 | var panelRt = panel.GetComponent(); 150 | panelRt.SetParent(canvas.transform); 151 | 152 | var vector2Zero = Vector2.zero; 153 | panelRt.anchorMin = vector2Zero; 154 | panelRt.anchorMax = Vector2.one; 155 | panelRt.sizeDelta = vector2Zero; 156 | panelRt.anchoredPosition = vector2Zero; 157 | } 158 | else 159 | { 160 | canvas = fadeTarget.GetComponentInParent(); 161 | canvas.sortingOrder = sortingOrder; 162 | } 163 | 164 | // initialize fade pattern 165 | fadePattern.Initialize(fadeTarget); 166 | 167 | if (Application.isPlaying) 168 | { 169 | if (Instance == this) 170 | { 171 | DontDestroyOnLoad(gameObject); 172 | DontDestroyOnLoad(fadeTarget.GetComponentInParent().gameObject); 173 | } 174 | else 175 | { 176 | Destroy(gameObject); 177 | Destroy(fadeTarget.GetComponentInParent().gameObject); 178 | } 179 | } 180 | } 181 | 182 | // ----- Exec Loading Scene ----- 183 | 184 | public void LoadSceneWithFade(string sceneName, FadeMode fadeMode = FadeMode.FadeOutIn) 185 | { 186 | var index = SceneManager.GetSceneByName(sceneName).buildIndex; 187 | StartCoroutine(LoadSceneWithFadeCor(index, fadeMode, defaultDuration)); 188 | } 189 | 190 | public void LoadSceneWithFade(string sceneName, float fadeTime, FadeMode fadeMode = FadeMode.FadeOutIn) 191 | { 192 | var index = SceneManager.GetSceneByName(sceneName).buildIndex; 193 | StartCoroutine(LoadSceneWithFadeCor(index, fadeMode, fadeTime)); 194 | } 195 | 196 | public void LoadSceneWithFade(int sceneBuildIndex, FadeMode fadeMode = FadeMode.FadeOutIn) 197 | { 198 | StartCoroutine(LoadSceneWithFadeCor(sceneBuildIndex, fadeMode, defaultDuration)); 199 | } 200 | 201 | public void LoadSceneWithFade(int sceneBuildIndex, float fadeTime, FadeMode fadeMode = FadeMode.FadeOutIn) 202 | { 203 | StartCoroutine(LoadSceneWithFadeCor(sceneBuildIndex, fadeMode, fadeTime)); 204 | } 205 | 206 | public IEnumerator LoadSceneWithFadeCor(int sceneBuildIndex, FadeMode fadeMode, float fadeTime) 207 | { 208 | if (isFading) yield break; 209 | 210 | // Fade Out 211 | if (fadeMode == FadeMode.FadeOut || fadeMode == FadeMode.FadeOutIn) 212 | yield return ExecFade(true, fadeTime, null); 213 | 214 | var loadAsync = SceneManager.LoadSceneAsync(sceneBuildIndex); 215 | yield return new WaitUntil(() => loadAsync.isDone); 216 | 217 | if (fadeMode == FadeMode.FadeIn || fadeMode == FadeMode.FadeOutIn) 218 | yield return ExecFade(false, fadeTime, null); 219 | } 220 | 221 | // ----- Exec Fading ----- 222 | 223 | public void FadeOut(Action onFadeCompleted = null) 224 | { 225 | StartCoroutine(ExecFade(true, defaultDuration, onFadeCompleted)); 226 | } 227 | 228 | public void FadeOut(float fadeTime, Action onFadeCompleted = null) 229 | { 230 | StartCoroutine(ExecFade(true, fadeTime, onFadeCompleted)); 231 | } 232 | 233 | public IEnumerator FadeOutCor() 234 | { 235 | yield return ExecFade(true, defaultDuration, null); 236 | } 237 | 238 | public IEnumerator FadeOutCor(float fadeTime) 239 | { 240 | yield return ExecFade(true, fadeTime, null); 241 | } 242 | 243 | public void FadeIn(Action onFadeCompleted = null) 244 | { 245 | StartCoroutine(ExecFade(false, defaultDuration, onFadeCompleted)); 246 | } 247 | 248 | public void FadeIn(float fadeTime, Action onFadeCompleted = null) 249 | { 250 | StartCoroutine(ExecFade(false, fadeTime, onFadeCompleted)); 251 | } 252 | 253 | public IEnumerator FadeInCor() 254 | { 255 | yield return ExecFade(false, defaultDuration, null); 256 | } 257 | 258 | public IEnumerator FadeInCor(float fadeTime) 259 | { 260 | yield return ExecFade(false, fadeTime, null); 261 | } 262 | 263 | IEnumerator ExecFade(bool fadeOut, float fadeTime, Action onCompleted) 264 | { 265 | if (isFading) yield break; 266 | isFading = true; 267 | 268 | var end = fadeOut ? fadeOutCurve.Evaluate(1) : fadeInCurve.Evaluate(1); 269 | 270 | if (canvas && !canvas.enabled) 271 | canvas.enabled = true; 272 | 273 | fadeTime = Mathf.Max(fadeTime, 0f); 274 | if (fadeTime <= float.Epsilon) 275 | { 276 | 277 | fadePattern.ExecFade(end, fadeOut); 278 | yield break; 279 | } 280 | 281 | for (var t = 0f; t < fadeTime; t += ignoreTimeScale ? Time.unscaledDeltaTime : Time.deltaTime) 282 | { 283 | var alpha = fadeOut ? 284 | fadeOutCurve.Evaluate(t / fadeTime) : 285 | fadeInCurve.Evaluate(t / fadeTime); 286 | 287 | fadePattern.ExecFade(alpha, fadeOut); 288 | yield return null; 289 | } 290 | 291 | fadePattern.ExecFade(end, fadeOut); 292 | 293 | if (canvas && !fadeOut) 294 | canvas.enabled = false; 295 | 296 | isFading = false; 297 | 298 | if (fadeOut) onFadeOut?.Invoke(); 299 | if (!fadeOut) onFadeIn?.Invoke(); 300 | 301 | onCompleted?.Invoke(); 302 | } 303 | } 304 | } -------------------------------------------------------------------------------- /Assets/UniFader/Scripts/UniFader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25182c06418a14ab7a1c83fc80a7f923 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UniFader/Shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d4ce9b558806448a2ad9fda5701374c1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniFader/Shader/GradientMaskTransition.shader: -------------------------------------------------------------------------------- 1 | Shader "UI/GradientMaskTransition" 2 | { 3 | Properties 4 | { 5 | [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} 6 | 7 | _StencilComp ("Stencil Comparison", Float) = 8 8 | _Stencil ("Stencil ID", Float) = 0 9 | _StencilOp ("Stencil Operation", Float) = 0 10 | _StencilWriteMask ("Stencil Write Mask", Float) = 255 11 | _StencilReadMask ("Stencil Read Mask", Float) = 255 12 | _ColorMask ("Color Mask", Float) = 15 13 | [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 14 | 15 | _GradientMaskTex ("Gradient Mask Texture", 2D) = "white" {} 16 | [KeywordEnum(Fade, Cutout)] _FadeMode("Fade Mode", Int) = 0 17 | [HideInInspector] _RegularDirection ("Use Regular Direction", Float) = 1 18 | _CutoutEdgeFactor("Cutout Edge Factor", Range(0, 0.1)) = 0.02 19 | _AlphaRate ("Alpha Rate", Range(0, 1)) = 0 20 | } 21 | 22 | SubShader 23 | { 24 | Tags 25 | { 26 | "Queue" = "Transparent" 27 | "IgnoreProjector" = "True" 28 | "RenderType" = "Transparent" 29 | "PreviewType" = "Plane" 30 | "CanUseSpriteAtlas" = "True" 31 | } 32 | 33 | Stencil 34 | { 35 | Ref [_Stencil] 36 | Comp [_StencilComp] 37 | Pass [_StencilOp] 38 | ReadMask [_StencilReadMask] 39 | WriteMask [_StencilWriteMask] 40 | } 41 | 42 | Cull Off 43 | Lighting Off 44 | ZWrite Off 45 | ZTest[unity_GUIZTestMode] 46 | Fog{ Mode Off } 47 | Blend SrcAlpha OneMinusSrcAlpha 48 | ColorMask [_ColorMask] 49 | 50 | Pass 51 | { 52 | Name "GradientMaskTransition" 53 | CGPROGRAM 54 | #pragma vertex vert 55 | #pragma fragment frag 56 | #pragma target 2.0 57 | 58 | #include "UnityCG.cginc" 59 | #include "UnityUI.cginc" 60 | 61 | #pragma multi_compile_local _ UNITY_UI_CLIP_RECT 62 | #pragma multi_compile_local _ UNITY_UI_ALPHACLIP 63 | #pragma multi_compile _FADEMODE_FADE _FADEMODE_CUTOUT 64 | 65 | struct appdata_t 66 | { 67 | float4 vertex : POSITION; 68 | float4 color : COLOR; 69 | float2 texcoord : TEXCOORD0; 70 | UNITY_VERTEX_INPUT_INSTANCE_ID 71 | }; 72 | 73 | struct v2f 74 | { 75 | float4 vertex : SV_POSITION; 76 | fixed4 color : COLOR; 77 | half2 texcoord : TEXCOORD0; 78 | float4 worldPosition : TEXCOORD1; 79 | UNITY_VERTEX_OUTPUT_STEREO 80 | }; 81 | 82 | sampler2D _MainTex; 83 | sampler2D _GradientMaskTex; 84 | fixed _AlphaRate; 85 | fixed _CutoutEdgeFactor; 86 | fixed _RegularDirection; 87 | fixed4 _TextureSampleAdd; 88 | float4 _ClipRect; 89 | float4 _MainTex_ST; 90 | 91 | v2f vert(appdata_t v) 92 | { 93 | v2f OUT; 94 | UNITY_SETUP_INSTANCE_ID(v); 95 | UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(OUT); 96 | OUT.worldPosition = v.vertex; 97 | OUT.vertex = UnityObjectToClipPos(OUT.worldPosition); 98 | 99 | OUT.texcoord = TRANSFORM_TEX(v.texcoord, _MainTex); 100 | 101 | OUT.color = v.color; 102 | return OUT; 103 | } 104 | 105 | fixed4 frag(v2f IN) : SV_Target 106 | { 107 | half alpha = tex2D(_GradientMaskTex, IN.texcoord).a; 108 | half edge = 0.5; 109 | 110 | #ifdef _FADEMODE_FADE 111 | 112 | half rate = lerp(_AlphaRate, 1 - _AlphaRate, step(edge, _RegularDirection)); 113 | rate = rate * 2 - 1; 114 | 115 | alpha = lerp(alpha + rate, 1 - alpha - rate, step(edge, _RegularDirection)); 116 | alpha = saturate(alpha); 117 | 118 | #elif _FADEMODE_CUTOUT 119 | 120 | half rate = lerp(1 - _AlphaRate, _AlphaRate, step(edge, _RegularDirection)); 121 | half directionalizedAlpha = lerp(smoothstep(0.001, 0.001 + _CutoutEdgeFactor, alpha - rate), 122 | smoothstep(alpha - rate, alpha - rate + _CutoutEdgeFactor, 0.001), 123 | step(edge, _RegularDirection)); 124 | 125 | alpha = lerp (lerp (1, directionalizedAlpha, abs (sign(1 - _AlphaRate))), 126 | lerp (0, directionalizedAlpha, abs (sign(_AlphaRate))), 127 | step(edge, _RegularDirection)); 128 | 129 | #endif 130 | 131 | fixed4 color = (tex2D(_MainTex, IN.texcoord) + _TextureSampleAdd) * IN.color; 132 | color.a = alpha; 133 | 134 | #ifdef UNITY_UI_CLIP_RECT 135 | color.a *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect); 136 | #endif 137 | 138 | #ifdef UNITY_UI_ALPHACLIP 139 | clip (color.a - 0.001); 140 | #endif 141 | 142 | return color; 143 | } 144 | ENDCG 145 | } 146 | } 147 | } -------------------------------------------------------------------------------- /Assets/UniFader/Shader/GradientMaskTransition.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c3c429942dc6e455f93787e7ef006e38 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Hiroki Miyada 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 | -------------------------------------------------------------------------------- /Logs/Packages-Update.log: -------------------------------------------------------------------------------- 1 | 2 | === Wed Oct 30 00:22:39 2019 3 | 4 | Packages were changed. 5 | Update Mode: mergeDefaultDependencies 6 | 7 | The following packages were added: 8 | com.unity.package-manager-ui@2.2.0 9 | com.unity.ext.nunit@1.0.0 10 | com.unity.test-framework@1.0.13 11 | com.unity.ide.vscode@1.1.2 12 | com.unity.ide.rider@1.1.0 13 | com.unity.ugui@1.0.0 14 | com.unity.modules.androidjni@1.0.0 15 | The following packages were updated: 16 | com.unity.collab-proxy from version 1.2.9 to 1.2.16 17 | com.unity.textmeshpro from version 2.0.0 to 2.0.1 18 | com.unity.timeline from version 0.0.0-builtin to 1.1.0 19 | 20 | === Wed Oct 30 01:52:05 2019 21 | 22 | Packages were changed. 23 | Update Mode: updateDependencies 24 | 25 | The following packages were updated: 26 | com.unity.test-framework from version 1.0.13 to 1.1.3 27 | com.unity.timeline from version 1.1.0 to 1.2.4 28 | The following packages were removed: 29 | com.unity.package-manager-ui@2.2.0 30 | 31 | === Fri Nov 15 20:21:59 2019 32 | 33 | Packages were changed. 34 | Update Mode: updateDependencies 35 | 36 | The following packages were updated: 37 | com.unity.timeline from version 1.2.4 to 1.2.6 38 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.2d.common": "2.0.2", 4 | "com.unity.collab-proxy": "1.2.16", 5 | "com.unity.ext.nunit": "1.0.0", 6 | "com.unity.ide.rider": "1.1.0", 7 | "com.unity.ide.vscode": "1.1.2", 8 | "com.unity.test-framework": "1.1.3", 9 | "com.unity.textmeshpro": "2.0.1", 10 | "com.unity.timeline": "1.2.6", 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: 9 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_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 1 30 | m_AssetPipelineMode: 1 31 | m_CacheServerMode: 0 32 | m_CacheServerEndpoint: 33 | m_CacheServerNamespacePrefix: default 34 | m_CacheServerEnableDownload: 1 35 | m_CacheServerEnableUpload: 1 36 | -------------------------------------------------------------------------------- /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: 13 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 | m_AllowEnlightenSupportForUpgradedProject: 1 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 | 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 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /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: 20 7 | productGUID: 62a1ce6fc7da44bfa86d8227c649ee6f 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: SceneFader 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 | iosUseCustomAppBackgroundBehavior: 0 56 | iosAllowHTTPDownload: 1 57 | allowedAutorotateToPortrait: 1 58 | allowedAutorotateToPortraitUpsideDown: 1 59 | allowedAutorotateToLandscapeRight: 1 60 | allowedAutorotateToLandscapeLeft: 1 61 | useOSAutorotation: 1 62 | use32BitDisplayBuffer: 1 63 | preserveFramebufferAlpha: 0 64 | disableDepthAndStencilBuffers: 0 65 | androidStartInFullscreen: 1 66 | androidRenderOutsideSafeArea: 1 67 | androidUseSwappy: 0 68 | androidBlitType: 0 69 | defaultIsNativeResolution: 1 70 | macRetinaSupport: 1 71 | runInBackground: 1 72 | captureSingleScreen: 0 73 | muteOtherAudioSources: 0 74 | Prepare IOS For Recording: 0 75 | Force IOS Speakers When Recording: 0 76 | deferSystemGesturesMode: 0 77 | hideHomeButton: 0 78 | submitAnalytics: 1 79 | usePlayerLog: 1 80 | bakeCollisionMeshes: 0 81 | forceSingleInstance: 0 82 | useFlipModelSwapchain: 1 83 | resizableWindow: 0 84 | useMacAppStoreValidation: 0 85 | macAppStoreCategory: public.app-category.games 86 | gpuSkinning: 1 87 | xboxPIXTextureCapture: 0 88 | xboxEnableAvatar: 0 89 | xboxEnableKinect: 0 90 | xboxEnableKinectAutoTracking: 0 91 | xboxEnableFitness: 0 92 | visibleInBackground: 1 93 | allowFullscreenSwitch: 1 94 | fullscreenMode: 1 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 | switchQueueControlMemory: 16384 109 | switchQueueComputeMemory: 262144 110 | switchNVNShaderPoolsGranularity: 33554432 111 | switchNVNDefaultPoolsGranularity: 16777216 112 | switchNVNOtherPoolsGranularity: 16777216 113 | vulkanNumSwapchainBuffers: 3 114 | vulkanEnableSetSRGBWrite: 0 115 | m_SupportedAspectRatios: 116 | 4:3: 1 117 | 5:4: 1 118 | 16:10: 1 119 | 16:9: 1 120 | Others: 1 121 | bundleVersion: 0.1 122 | preloadedAssets: [] 123 | metroInputSource: 0 124 | wsaTransparentSwapchain: 0 125 | m_HolographicPauseOnTrackingLoss: 1 126 | xboxOneDisableKinectGpuReservation: 1 127 | xboxOneEnable7thCore: 1 128 | vrSettings: 129 | cardboard: 130 | depthFormat: 0 131 | enableTransitionView: 0 132 | daydream: 133 | depthFormat: 0 134 | useSustainedPerformanceMode: 0 135 | enableVideoLayer: 0 136 | useProtectedVideoMemory: 0 137 | minimumSupportedHeadTracking: 0 138 | maximumSupportedHeadTracking: 1 139 | hololens: 140 | depthFormat: 1 141 | depthBufferSharingEnabled: 1 142 | lumin: 143 | depthFormat: 0 144 | frameTiming: 2 145 | enableGLCache: 0 146 | glCacheMaxBlobSize: 524288 147 | glCacheMaxFileSize: 8388608 148 | oculus: 149 | sharedDepthBuffer: 1 150 | dashSupport: 1 151 | lowOverheadMode: 0 152 | protectedContext: 0 153 | v2Signing: 0 154 | enable360StereoCapture: 0 155 | isWsaHolographicRemotingEnabled: 0 156 | enableFrameTimingStats: 0 157 | useHDRDisplay: 0 158 | D3DHDRBitDepth: 0 159 | m_ColorGamuts: 00000000 160 | targetPixelDensity: 30 161 | resolutionScalingMode: 0 162 | androidSupportedAspectRatio: 1 163 | androidMaxAspectRatio: 2.1 164 | applicationIdentifier: {} 165 | buildNumber: {} 166 | AndroidBundleVersionCode: 1 167 | AndroidMinSdkVersion: 19 168 | AndroidTargetSdkVersion: 0 169 | AndroidPreferredInstallLocation: 1 170 | aotOptions: 171 | stripEngineCode: 1 172 | iPhoneStrippingLevel: 0 173 | iPhoneScriptCallOptimization: 0 174 | ForceInternetPermission: 0 175 | ForceSDCardPermission: 0 176 | CreateWallpaper: 0 177 | APKExpansionFiles: 0 178 | keepLoadedShadersAlive: 0 179 | StripUnusedMeshComponents: 1 180 | VertexChannelCompressionMask: 4054 181 | iPhoneSdkVersion: 988 182 | iOSTargetOSVersionString: 10.0 183 | tvOSSdkVersion: 0 184 | tvOSRequireExtendedGameController: 0 185 | tvOSTargetOSVersionString: 10.0 186 | uIPrerenderedIcon: 0 187 | uIRequiresPersistentWiFi: 0 188 | uIRequiresFullScreen: 1 189 | uIStatusBarHidden: 1 190 | uIExitOnSuspend: 0 191 | uIStatusBarStyle: 0 192 | iPhoneSplashScreen: {fileID: 0} 193 | iPhoneHighResSplashScreen: {fileID: 0} 194 | iPhoneTallHighResSplashScreen: {fileID: 0} 195 | iPhone47inSplashScreen: {fileID: 0} 196 | iPhone55inPortraitSplashScreen: {fileID: 0} 197 | iPhone55inLandscapeSplashScreen: {fileID: 0} 198 | iPhone58inPortraitSplashScreen: {fileID: 0} 199 | iPhone58inLandscapeSplashScreen: {fileID: 0} 200 | iPadPortraitSplashScreen: {fileID: 0} 201 | iPadHighResPortraitSplashScreen: {fileID: 0} 202 | iPadLandscapeSplashScreen: {fileID: 0} 203 | iPadHighResLandscapeSplashScreen: {fileID: 0} 204 | iPhone65inPortraitSplashScreen: {fileID: 0} 205 | iPhone65inLandscapeSplashScreen: {fileID: 0} 206 | iPhone61inPortraitSplashScreen: {fileID: 0} 207 | iPhone61inLandscapeSplashScreen: {fileID: 0} 208 | appleTVSplashScreen: {fileID: 0} 209 | appleTVSplashScreen2x: {fileID: 0} 210 | tvOSSmallIconLayers: [] 211 | tvOSSmallIconLayers2x: [] 212 | tvOSLargeIconLayers: [] 213 | tvOSLargeIconLayers2x: [] 214 | tvOSTopShelfImageLayers: [] 215 | tvOSTopShelfImageLayers2x: [] 216 | tvOSTopShelfImageWideLayers: [] 217 | tvOSTopShelfImageWideLayers2x: [] 218 | iOSLaunchScreenType: 0 219 | iOSLaunchScreenPortrait: {fileID: 0} 220 | iOSLaunchScreenLandscape: {fileID: 0} 221 | iOSLaunchScreenBackgroundColor: 222 | serializedVersion: 2 223 | rgba: 0 224 | iOSLaunchScreenFillPct: 100 225 | iOSLaunchScreenSize: 100 226 | iOSLaunchScreenCustomXibPath: 227 | iOSLaunchScreeniPadType: 0 228 | iOSLaunchScreeniPadImage: {fileID: 0} 229 | iOSLaunchScreeniPadBackgroundColor: 230 | serializedVersion: 2 231 | rgba: 0 232 | iOSLaunchScreeniPadFillPct: 100 233 | iOSLaunchScreeniPadSize: 100 234 | iOSLaunchScreeniPadCustomXibPath: 235 | iOSUseLaunchScreenStoryboard: 0 236 | iOSLaunchScreenCustomStoryboardPath: 237 | iOSDeviceRequirements: [] 238 | iOSURLSchemes: [] 239 | iOSBackgroundModes: 0 240 | iOSMetalForceHardShadows: 0 241 | metalEditorSupport: 1 242 | metalAPIValidation: 1 243 | iOSRenderExtraFrameOnPause: 0 244 | appleDeveloperTeamID: 245 | iOSManualSigningProvisioningProfileID: 246 | tvOSManualSigningProvisioningProfileID: 247 | iOSManualSigningProvisioningProfileType: 0 248 | tvOSManualSigningProvisioningProfileType: 0 249 | appleEnableAutomaticSigning: 0 250 | iOSRequireARKit: 0 251 | iOSAutomaticallyDetectAndAddCapabilities: 1 252 | appleEnableProMotion: 0 253 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 254 | templatePackageId: com.unity.template.3d@3.1.2 255 | templateDefaultScene: Assets/Scenes/SampleScene.unity 256 | AndroidTargetArchitectures: 1 257 | AndroidSplashScreenScale: 0 258 | androidSplashScreen: {fileID: 0} 259 | AndroidKeystoreName: '{inproject}: ' 260 | AndroidKeyaliasName: 261 | AndroidBuildApkPerCpuArchitecture: 0 262 | AndroidTVCompatibility: 0 263 | AndroidIsGame: 1 264 | AndroidEnableTango: 0 265 | androidEnableBanner: 1 266 | androidUseLowAccuracyLocation: 0 267 | androidUseCustomKeystore: 0 268 | m_AndroidBanners: 269 | - width: 320 270 | height: 180 271 | banner: {fileID: 0} 272 | androidGamepadSupportLevel: 0 273 | AndroidValidateAppBundleSize: 1 274 | AndroidAppBundleSizeToValidate: 150 275 | m_BuildTargetIcons: [] 276 | m_BuildTargetPlatformIcons: [] 277 | m_BuildTargetBatching: 278 | - m_BuildTarget: Standalone 279 | m_StaticBatching: 1 280 | m_DynamicBatching: 0 281 | - m_BuildTarget: tvOS 282 | m_StaticBatching: 1 283 | m_DynamicBatching: 0 284 | - m_BuildTarget: Android 285 | m_StaticBatching: 1 286 | m_DynamicBatching: 0 287 | - m_BuildTarget: iPhone 288 | m_StaticBatching: 1 289 | m_DynamicBatching: 0 290 | - m_BuildTarget: WebGL 291 | m_StaticBatching: 0 292 | m_DynamicBatching: 0 293 | m_BuildTargetGraphicsJobs: 294 | - m_BuildTarget: MacStandaloneSupport 295 | m_GraphicsJobs: 0 296 | - m_BuildTarget: Switch 297 | m_GraphicsJobs: 0 298 | - m_BuildTarget: MetroSupport 299 | m_GraphicsJobs: 0 300 | - m_BuildTarget: AppleTVSupport 301 | m_GraphicsJobs: 0 302 | - m_BuildTarget: BJMSupport 303 | m_GraphicsJobs: 0 304 | - m_BuildTarget: LinuxStandaloneSupport 305 | m_GraphicsJobs: 0 306 | - m_BuildTarget: PS4Player 307 | m_GraphicsJobs: 0 308 | - m_BuildTarget: iOSSupport 309 | m_GraphicsJobs: 0 310 | - m_BuildTarget: WindowsStandaloneSupport 311 | m_GraphicsJobs: 0 312 | - m_BuildTarget: XboxOnePlayer 313 | m_GraphicsJobs: 0 314 | - m_BuildTarget: LuminSupport 315 | m_GraphicsJobs: 0 316 | - m_BuildTarget: AndroidPlayer 317 | m_GraphicsJobs: 0 318 | - m_BuildTarget: WebGLSupport 319 | m_GraphicsJobs: 0 320 | m_BuildTargetGraphicsJobMode: 321 | - m_BuildTarget: PS4Player 322 | m_GraphicsJobMode: 0 323 | - m_BuildTarget: XboxOnePlayer 324 | m_GraphicsJobMode: 0 325 | m_BuildTargetGraphicsAPIs: 326 | - m_BuildTarget: AndroidPlayer 327 | m_APIs: 150000000b000000 328 | m_Automatic: 0 329 | - m_BuildTarget: iOSSupport 330 | m_APIs: 10000000 331 | m_Automatic: 1 332 | - m_BuildTarget: AppleTVSupport 333 | m_APIs: 10000000 334 | m_Automatic: 0 335 | - m_BuildTarget: WebGLSupport 336 | m_APIs: 0b000000 337 | m_Automatic: 1 338 | m_BuildTargetVRSettings: 339 | - m_BuildTarget: Standalone 340 | m_Enabled: 0 341 | m_Devices: 342 | - Oculus 343 | - OpenVR 344 | openGLRequireES31: 0 345 | openGLRequireES31AEP: 0 346 | openGLRequireES32: 0 347 | vuforiaEnabled: 0 348 | m_TemplateCustomTags: {} 349 | mobileMTRendering: 350 | Android: 1 351 | iPhone: 1 352 | tvOS: 1 353 | m_BuildTargetGroupLightmapEncodingQuality: [] 354 | m_BuildTargetGroupLightmapSettings: [] 355 | playModeTestRunnerEnabled: 0 356 | runPlayModeTestAsEditModeTest: 0 357 | actionOnDotNetUnhandledException: 1 358 | enableInternalProfiler: 0 359 | logObjCUncaughtExceptions: 1 360 | enableCrashReportAPI: 0 361 | cameraUsageDescription: 362 | locationUsageDescription: 363 | microphoneUsageDescription: 364 | switchNetLibKey: 365 | switchSocketMemoryPoolSize: 6144 366 | switchSocketAllocatorPoolSize: 128 367 | switchSocketConcurrencyLimit: 14 368 | switchScreenResolutionBehavior: 2 369 | switchUseCPUProfiler: 0 370 | switchApplicationID: 0x01004b9000490000 371 | switchNSODependencies: 372 | switchTitleNames_0: 373 | switchTitleNames_1: 374 | switchTitleNames_2: 375 | switchTitleNames_3: 376 | switchTitleNames_4: 377 | switchTitleNames_5: 378 | switchTitleNames_6: 379 | switchTitleNames_7: 380 | switchTitleNames_8: 381 | switchTitleNames_9: 382 | switchTitleNames_10: 383 | switchTitleNames_11: 384 | switchTitleNames_12: 385 | switchTitleNames_13: 386 | switchTitleNames_14: 387 | switchPublisherNames_0: 388 | switchPublisherNames_1: 389 | switchPublisherNames_2: 390 | switchPublisherNames_3: 391 | switchPublisherNames_4: 392 | switchPublisherNames_5: 393 | switchPublisherNames_6: 394 | switchPublisherNames_7: 395 | switchPublisherNames_8: 396 | switchPublisherNames_9: 397 | switchPublisherNames_10: 398 | switchPublisherNames_11: 399 | switchPublisherNames_12: 400 | switchPublisherNames_13: 401 | switchPublisherNames_14: 402 | switchIcons_0: {fileID: 0} 403 | switchIcons_1: {fileID: 0} 404 | switchIcons_2: {fileID: 0} 405 | switchIcons_3: {fileID: 0} 406 | switchIcons_4: {fileID: 0} 407 | switchIcons_5: {fileID: 0} 408 | switchIcons_6: {fileID: 0} 409 | switchIcons_7: {fileID: 0} 410 | switchIcons_8: {fileID: 0} 411 | switchIcons_9: {fileID: 0} 412 | switchIcons_10: {fileID: 0} 413 | switchIcons_11: {fileID: 0} 414 | switchIcons_12: {fileID: 0} 415 | switchIcons_13: {fileID: 0} 416 | switchIcons_14: {fileID: 0} 417 | switchSmallIcons_0: {fileID: 0} 418 | switchSmallIcons_1: {fileID: 0} 419 | switchSmallIcons_2: {fileID: 0} 420 | switchSmallIcons_3: {fileID: 0} 421 | switchSmallIcons_4: {fileID: 0} 422 | switchSmallIcons_5: {fileID: 0} 423 | switchSmallIcons_6: {fileID: 0} 424 | switchSmallIcons_7: {fileID: 0} 425 | switchSmallIcons_8: {fileID: 0} 426 | switchSmallIcons_9: {fileID: 0} 427 | switchSmallIcons_10: {fileID: 0} 428 | switchSmallIcons_11: {fileID: 0} 429 | switchSmallIcons_12: {fileID: 0} 430 | switchSmallIcons_13: {fileID: 0} 431 | switchSmallIcons_14: {fileID: 0} 432 | switchManualHTML: 433 | switchAccessibleURLs: 434 | switchLegalInformation: 435 | switchMainThreadStackSize: 1048576 436 | switchPresenceGroupId: 437 | switchLogoHandling: 0 438 | switchReleaseVersion: 0 439 | switchDisplayVersion: 1.0.0 440 | switchStartupUserAccount: 0 441 | switchTouchScreenUsage: 0 442 | switchSupportedLanguagesMask: 0 443 | switchLogoType: 0 444 | switchApplicationErrorCodeCategory: 445 | switchUserAccountSaveDataSize: 0 446 | switchUserAccountSaveDataJournalSize: 0 447 | switchApplicationAttribute: 0 448 | switchCardSpecSize: -1 449 | switchCardSpecClock: -1 450 | switchRatingsMask: 0 451 | switchRatingsInt_0: 0 452 | switchRatingsInt_1: 0 453 | switchRatingsInt_2: 0 454 | switchRatingsInt_3: 0 455 | switchRatingsInt_4: 0 456 | switchRatingsInt_5: 0 457 | switchRatingsInt_6: 0 458 | switchRatingsInt_7: 0 459 | switchRatingsInt_8: 0 460 | switchRatingsInt_9: 0 461 | switchRatingsInt_10: 0 462 | switchRatingsInt_11: 0 463 | switchLocalCommunicationIds_0: 464 | switchLocalCommunicationIds_1: 465 | switchLocalCommunicationIds_2: 466 | switchLocalCommunicationIds_3: 467 | switchLocalCommunicationIds_4: 468 | switchLocalCommunicationIds_5: 469 | switchLocalCommunicationIds_6: 470 | switchLocalCommunicationIds_7: 471 | switchParentalControl: 0 472 | switchAllowsScreenshot: 1 473 | switchAllowsVideoCapturing: 1 474 | switchAllowsRuntimeAddOnContentInstall: 0 475 | switchDataLossConfirmation: 0 476 | switchUserAccountLockEnabled: 0 477 | switchSystemResourceMemory: 16777216 478 | switchSupportedNpadStyles: 22 479 | switchNativeFsCacheSize: 32 480 | switchIsHoldTypeHorizontal: 0 481 | switchSupportedNpadCount: 8 482 | switchSocketConfigEnabled: 0 483 | switchTcpInitialSendBufferSize: 32 484 | switchTcpInitialReceiveBufferSize: 64 485 | switchTcpAutoSendBufferSizeMax: 256 486 | switchTcpAutoReceiveBufferSizeMax: 256 487 | switchUdpSendBufferSize: 9 488 | switchUdpReceiveBufferSize: 42 489 | switchSocketBufferEfficiency: 4 490 | switchSocketInitializeEnabled: 1 491 | switchNetworkInterfaceManagerInitializeEnabled: 1 492 | switchPlayerConnectionEnabled: 1 493 | ps4NPAgeRating: 12 494 | ps4NPTitleSecret: 495 | ps4NPTrophyPackPath: 496 | ps4ParentalLevel: 11 497 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 498 | ps4Category: 0 499 | ps4MasterVersion: 01.00 500 | ps4AppVersion: 01.00 501 | ps4AppType: 0 502 | ps4ParamSfxPath: 503 | ps4VideoOutPixelFormat: 0 504 | ps4VideoOutInitialWidth: 1920 505 | ps4VideoOutBaseModeInitialWidth: 1920 506 | ps4VideoOutReprojectionRate: 60 507 | ps4PronunciationXMLPath: 508 | ps4PronunciationSIGPath: 509 | ps4BackgroundImagePath: 510 | ps4StartupImagePath: 511 | ps4StartupImagesFolder: 512 | ps4IconImagesFolder: 513 | ps4SaveDataImagePath: 514 | ps4SdkOverride: 515 | ps4BGMPath: 516 | ps4ShareFilePath: 517 | ps4ShareOverlayImagePath: 518 | ps4PrivacyGuardImagePath: 519 | ps4NPtitleDatPath: 520 | ps4RemotePlayKeyAssignment: -1 521 | ps4RemotePlayKeyMappingDir: 522 | ps4PlayTogetherPlayerCount: 0 523 | ps4EnterButtonAssignment: 1 524 | ps4ApplicationParam1: 0 525 | ps4ApplicationParam2: 0 526 | ps4ApplicationParam3: 0 527 | ps4ApplicationParam4: 0 528 | ps4DownloadDataSize: 0 529 | ps4GarlicHeapSize: 2048 530 | ps4ProGarlicHeapSize: 2560 531 | playerPrefsMaxSize: 32768 532 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 533 | ps4pnSessions: 1 534 | ps4pnPresence: 1 535 | ps4pnFriends: 1 536 | ps4pnGameCustomData: 1 537 | playerPrefsSupport: 0 538 | enableApplicationExit: 0 539 | resetTempFolder: 1 540 | restrictedAudioUsageRights: 0 541 | ps4UseResolutionFallback: 0 542 | ps4ReprojectionSupport: 0 543 | ps4UseAudio3dBackend: 0 544 | ps4SocialScreenEnabled: 0 545 | ps4ScriptOptimizationLevel: 0 546 | ps4Audio3dVirtualSpeakerCount: 14 547 | ps4attribCpuUsage: 0 548 | ps4PatchPkgPath: 549 | ps4PatchLatestPkgPath: 550 | ps4PatchChangeinfoPath: 551 | ps4PatchDayOne: 0 552 | ps4attribUserManagement: 0 553 | ps4attribMoveSupport: 0 554 | ps4attrib3DSupport: 0 555 | ps4attribShareSupport: 0 556 | ps4attribExclusiveVR: 0 557 | ps4disableAutoHideSplash: 0 558 | ps4videoRecordingFeaturesUsed: 0 559 | ps4contentSearchFeaturesUsed: 0 560 | ps4attribEyeToEyeDistanceSettingVR: 0 561 | ps4IncludedModules: [] 562 | ps4attribVROutputEnabled: 0 563 | monoEnv: 564 | splashScreenBackgroundSourceLandscape: {fileID: 0} 565 | splashScreenBackgroundSourcePortrait: {fileID: 0} 566 | blurSplashScreenBackground: 1 567 | spritePackerPolicy: 568 | webGLMemorySize: 16 569 | webGLExceptionSupport: 1 570 | webGLNameFilesAsHashes: 0 571 | webGLDataCaching: 1 572 | webGLDebugSymbols: 0 573 | webGLEmscriptenArgs: 574 | webGLModulesDirectory: 575 | webGLTemplate: APPLICATION:Default 576 | webGLAnalyzeBuildSize: 0 577 | webGLUseEmbeddedResources: 0 578 | webGLCompressionFormat: 1 579 | webGLLinkerTarget: 1 580 | webGLThreadsSupport: 0 581 | webGLWasmStreaming: 0 582 | scriptingDefineSymbols: {} 583 | platformArchitecture: {} 584 | scriptingBackend: {} 585 | il2cppCompilerConfiguration: {} 586 | managedStrippingLevel: {} 587 | incrementalIl2cppBuild: {} 588 | allowUnsafeCode: 0 589 | additionalIl2CppArgs: 590 | scriptingRuntimeVersion: 1 591 | gcIncremental: 0 592 | gcWBarrierValidation: 0 593 | apiCompatibilityLevelPerPlatform: {} 594 | m_RenderingPath: 1 595 | m_MobileRenderingPath: 1 596 | metroPackageName: Template_3D 597 | metroPackageVersion: 598 | metroCertificatePath: 599 | metroCertificatePassword: 600 | metroCertificateSubject: 601 | metroCertificateIssuer: 602 | metroCertificateNotAfter: 0000000000000000 603 | metroApplicationDescription: Template_3D 604 | wsaImages: {} 605 | metroTileShortName: 606 | metroTileShowName: 0 607 | metroMediumTileShowName: 0 608 | metroLargeTileShowName: 0 609 | metroWideTileShowName: 0 610 | metroSupportStreamingInstall: 0 611 | metroLastRequiredScene: 0 612 | metroDefaultTileSize: 1 613 | metroTileForegroundText: 2 614 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 615 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 616 | a: 1} 617 | metroSplashScreenUseBackgroundColor: 0 618 | platformCapabilities: {} 619 | metroTargetDeviceFamilies: {} 620 | metroFTAName: 621 | metroFTAFileTypes: [] 622 | metroProtocolName: 623 | XboxOneProductId: 624 | XboxOneUpdateKey: 625 | XboxOneSandboxId: 626 | XboxOneContentId: 627 | XboxOneTitleId: 628 | XboxOneSCId: 629 | XboxOneGameOsOverridePath: 630 | XboxOnePackagingOverridePath: 631 | XboxOneAppManifestOverridePath: 632 | XboxOneVersion: 1.0.0.0 633 | XboxOnePackageEncryption: 0 634 | XboxOnePackageUpdateGranularity: 2 635 | XboxOneDescription: 636 | XboxOneLanguage: 637 | - enus 638 | XboxOneCapability: [] 639 | XboxOneGameRating: {} 640 | XboxOneIsContentPackage: 0 641 | XboxOneEnableGPUVariability: 1 642 | XboxOneSockets: {} 643 | XboxOneSplashScreen: {fileID: 0} 644 | XboxOneAllowedProductIds: [] 645 | XboxOnePersistentLocalStorageSize: 0 646 | XboxOneXTitleMemory: 8 647 | XboxOneOverrideIdentityName: 648 | vrEditorSettings: 649 | daydream: 650 | daydreamIconForeground: {fileID: 0} 651 | daydreamIconBackground: {fileID: 0} 652 | cloudServicesEnabled: 653 | UNet: 1 654 | luminIcon: 655 | m_Name: 656 | m_ModelFolderPath: 657 | m_PortalFolderPath: 658 | luminCert: 659 | m_CertPath: 660 | m_SignPackage: 1 661 | luminIsChannelApp: 0 662 | luminVersion: 663 | m_VersionCode: 1 664 | m_VersionName: 665 | apiCompatibilityLevel: 6 666 | cloudProjectId: 667 | framebufferDepthMemorylessMode: 0 668 | projectName: 669 | organizationId: 670 | cloudEnabled: 0 671 | enableNativePlatformBackendsForNewInputSystem: 0 672 | disableOldInputManagerSupport: 0 673 | legacyClampBlendShapeWeights: 0 674 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.3.0b12 2 | m_EditorVersionWithRevision: 2019.3.0b12 (e0f9cf1b1aee) 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_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /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 | # UniFader [![GitHub license](https://img.shields.io/github/license/gok11/UniFader)](https://github.com/gok11/UniFader/blob/master/LICENSE) 2 | 3 | UniFader is a transition helper components for Unity. 4 | 5 | ### Supported Unity versions 6 | 7 | Unity 2019.3 or higher. 8 | 9 | ## Quick Start 10 | 11 | 1. Download `UniFader.unitypackage` from [releases](https://github.com/gok11/UniFader/releases) page and import it. 12 | 2. You can transition scene by calling only `UniFader.Instance.LoadSceneWithFade(0)`. 13 | 3. Enjoy! 14 | 15 | ![ColorFade](https://user-images.githubusercontent.com/8979566/69447773-938f7b00-0d9a-11ea-9217-a984b741e724.gif) 16 | 17 | Samples can be seen in `Sample` folder if you want. 18 | 19 | ## Description 20 | 21 | You can use two transition types - `Color Fade` and `Gradient Mask Fade`. 22 | 23 | | Fade Pattern | Feature | Screenshot | 24 | |-------------|----------|------------| 25 | | **Color Fade** | Simple color fade effect. You can set base color from `Background Color`. | ![ColorFade](https://user-images.githubusercontent.com/8979566/69447773-938f7b00-0d9a-11ea-9217-a984b741e724.gif) | 26 | | **Gradient Mask Fade** | Transition with gradient gray scaled texture. | ![GradientMaskFade](https://user-images.githubusercontent.com/8979566/69445581-f6324800-0d95-11ea-8629-bdcae1df2ea3.gif) | 27 | 28 | ## Usage for Mask Gradient Fade 29 | 30 | 1. Download `UniFader.unitypackage` from [releases](https://github.com/gok11/UniFader/releases) page and import it. 31 | 2. Create new GameObject and add UniFader component from `Add Component` in inspector. 32 | 3. Change Fade Pattern to `MaskGradientFade`
33 | ![ChangeToMGF](https://user-images.githubusercontent.com/8979566/69473528-ccf6d380-0df8-11ea-993d-11c56fae9a72.png) 34 | 35 | 4. Set `Transition Material` from `Assets/UniFader/Materials/UI_GradientMaskTransition.mat`. 36 | 5. Set `Mask Texture` from and `Assets/UniFader/Sample/Textures/SampleGradientMasks`.
37 | ![SetElements](https://user-images.githubusercontent.com/8979566/69473529-cff1c400-0df8-11ea-938c-8f5bd93b939c.png) 38 | 39 | 6. Play! 40 | 41 | ## Transition options 42 | 43 | ### Easing 44 | 45 | Edit easing from `Fade Out Curve` and `Fade In Curve`. 46 | 47 | ### Fade Out In Mode *(Gradient Mask Fade only)* 48 | 49 | Yoyo
50 | Invert Yoyo
51 | Repeat twice
52 | Repeat invert twice 53 | 54 | ![FadePatterns](https://user-images.githubusercontent.com/8979566/69473383-1e9e5e80-0df7-11ea-9ec5-9339cd15cb26.gif) 55 | 56 | 57 | ## Tips 58 | 59 | ### Used As Instance 60 | 61 | If this is enabled, the fader will be singleton instance. It is referenced from `UniFader.Instance` and it will be set `DontDestroyOnLoad`. 62 | 63 | ### Add fade pattern 64 | 65 | You can add Fade Pattern by implementing `IFadePattern`. 66 | 67 | ```c# 68 | 69 | using MB.UniFader; 70 | using UnityEngine; 71 | using UnityEngine.UI; 72 | 73 | public class TestFade : IFadePattern 74 | { 75 | [SerializeField] private int hoge; 76 | [SerializeField] private Color fuga; 77 | 78 | public void Initialize(Image targetImage) { } 79 | 80 | public void ExecFade(float progress, bool fadeOut) { } 81 | } 82 | 83 | 84 | ``` 85 | 86 | After that, you can select that pattern in `Fade Pattern` in inspector. 87 | 88 | ![AddPattern](https://user-images.githubusercontent.com/8979566/69443882-9e461200-0d92-11ea-8662-98041dc3d4de.png) 89 | 90 | ### Add callback 91 | 92 | You can add callback from inspector (On Fade Out / In) or script. 93 | If you add callback for FadeOut, you can write as follows. 94 | 95 | ```c# 96 | 97 | using System.Collections; 98 | using UnityEngine; 99 | using MB.UniFader; 100 | 101 | public class FadeTest : MonoBehaviour 102 | { 103 | void Start() 104 | { 105 | UniFader.Instance.FadeOut(() => 106 | { 107 | Debug.Log("FadeOut completed!"); 108 | }); 109 | } 110 | } 111 | 112 | 113 | ``` 114 | 115 | ## License 116 | 117 | - MIT 118 | - © UTJ/UCL 119 | 120 | ## Author 121 | 122 | Gok 123 | --------------------------------------------------------------------------------