├── ProjectSettings
├── boot.config
├── ProjectVersion.txt
├── CommonBurstAotSettings.json
├── ClusterInputManager.asset
├── PresetManager.asset
├── XRSettings.asset
├── VersionControlSettings.asset
├── TimeManager.asset
├── EditorBuildSettings.asset
├── VFXManager.asset
├── BurstAotSettings_StandaloneWindows.json
├── URPProjectSettings.asset
├── AudioManager.asset
├── ShaderGraphSettings.asset
├── TagManager.asset
├── UnityConnectSettings.asset
├── PackageManagerSettings.asset
├── MemorySettings.asset
├── DynamicsManager.asset
├── EditorSettings.asset
├── NavMeshAreas.asset
├── Physics2DSettings.asset
├── GraphicsSettings.asset
├── QualitySettings.asset
├── SceneTemplateSettings.json
└── InputManager.asset
├── ReadmeImages
└── MenuDemo.gif
├── Assets
├── MenuCreator
│ ├── loading.png
│ ├── MenuCreatorDemo.unity.meta
│ ├── MenuCreator.cs.meta
│ ├── UIToolkitRaycastChecker.cs.meta
│ ├── MenuCreatorUXML.uxml.meta
│ ├── MenuCreatorStylesheet.uss.meta
│ ├── MenuCreatorUXML.uxml
│ ├── UIToolkitRaycastChecker.cs
│ ├── loading.png.meta
│ └── MenuCreatorDemo.unity
├── Plugins
│ ├── Demigiant
│ │ ├── DOTween
│ │ │ ├── DOTween.XML.meta
│ │ │ ├── DOTween.dll
│ │ │ ├── readme.txt.meta
│ │ │ ├── Editor.meta
│ │ │ ├── Editor
│ │ │ │ ├── DOTweenEditor.XML.meta
│ │ │ │ ├── Imgs.meta
│ │ │ │ ├── Imgs
│ │ │ │ │ ├── Footer.png
│ │ │ │ │ ├── Header.jpg
│ │ │ │ │ ├── DOTweenIcon.png
│ │ │ │ │ ├── Footer_dark.png
│ │ │ │ │ ├── DOTweenMiniIcon.png
│ │ │ │ │ ├── Footer.png.meta
│ │ │ │ │ ├── Header.jpg.meta
│ │ │ │ │ ├── DOTweenIcon.png.meta
│ │ │ │ │ ├── Footer_dark.png.meta
│ │ │ │ │ └── DOTweenMiniIcon.png.meta
│ │ │ │ ├── DOTweenEditor.dll
│ │ │ │ ├── DOTweenEditor.dll.meta
│ │ │ │ └── DOTweenEditor.XML
│ │ │ ├── Modules.meta
│ │ │ ├── Modules
│ │ │ │ ├── DOTweenModuleAudio.cs.meta
│ │ │ │ ├── DOTweenModuleSprite.cs.meta
│ │ │ │ ├── DOTweenModuleUI.cs.meta
│ │ │ │ ├── DOTweenModuleUtils.cs.meta
│ │ │ │ ├── DOTweenModulePhysics.cs.meta
│ │ │ │ ├── DOTweenModulePhysics2D.cs.meta
│ │ │ │ ├── DOTweenModuleUnityVersion.cs.meta
│ │ │ │ ├── DOTweenModuleEPOOutline.cs.meta
│ │ │ │ ├── DOTweenModuleSprite.cs
│ │ │ │ ├── DOTweenModuleUtils.cs
│ │ │ │ ├── DOTweenModuleEPOOutline.cs
│ │ │ │ ├── DOTweenModuleAudio.cs
│ │ │ │ ├── DOTweenModulePhysics2D.cs
│ │ │ │ ├── DOTweenModulePhysics.cs
│ │ │ │ └── DOTweenModuleUnityVersion.cs
│ │ │ ├── DOTween.dll.meta
│ │ │ └── readme.txt
│ │ └── DOTween.meta
│ └── Demigiant.meta
├── UI Toolkit
│ ├── UnityThemes
│ │ ├── UnityDefaultRuntimeTheme.tss
│ │ └── UnityDefaultRuntimeTheme.tss.meta
│ └── UnityThemes.meta
├── Plugins.meta
├── MenuCreator.meta
├── Resources.meta
├── Settings.meta
├── UI Toolkit.meta
├── Settings
│ ├── URP-Balanced.asset.meta
│ ├── URP-HighFidelity.asset.meta
│ ├── URP-Performant.asset.meta
│ ├── SampleSceneProfile.asset.meta
│ ├── URP-Balanced-Renderer.asset.meta
│ ├── URP-HighFidelity-Renderer.asset.meta
│ ├── URP-Performant-Renderer.asset.meta
│ ├── URP-Performant-Renderer.asset
│ ├── URP-Balanced.asset
│ ├── URP-Performant.asset
│ ├── URP-HighFidelity.asset
│ ├── URP-Balanced-Renderer.asset
│ ├── URP-HighFidelity-Renderer.asset
│ └── SampleSceneProfile.asset
├── New Panel Settings.asset.meta
├── Resources
│ ├── DOTweenSettings.asset.meta
│ └── DOTweenSettings.asset
├── UniversalRenderPipelineGlobalSettings.asset.meta
├── MenuDemo.cs.meta
├── UniversalRenderPipelineGlobalSettings.asset
├── New Panel Settings.asset
└── MenuDemo.cs
├── .idea
└── .idea.UIToolkitMenuCreator
│ └── .idea
│ ├── vcs.xml
│ ├── indexLayout.xml
│ └── .gitignore
├── UserSettings
└── EditorUserSettings.asset
├── LICENSE
├── .gitignore
├── README.md
└── Packages
├── manifest.json
└── packages-lock.json
/ProjectSettings/boot.config:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ReadmeImages/MenuDemo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DanielSnd/UIToolkitMenuCreator/HEAD/ReadmeImages/MenuDemo.gif
--------------------------------------------------------------------------------
/Assets/MenuCreator/loading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DanielSnd/UIToolkitMenuCreator/HEAD/Assets/MenuCreator/loading.png
--------------------------------------------------------------------------------
/ProjectSettings/ProjectVersion.txt:
--------------------------------------------------------------------------------
1 | m_EditorVersion: 2021.3.6f1
2 | m_EditorVersionWithRevision: 2021.3.6f1 (7da38d85baf6)
3 |
--------------------------------------------------------------------------------
/ProjectSettings/CommonBurstAotSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "MonoBehaviour": {
3 | "Version": 3,
4 | "DisabledWarnings": ""
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/DOTween.XML.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 34192c5e0d14aee43a0e86cc4823268a
3 | TextScriptImporter:
4 | userData:
5 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/DOTween.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DanielSnd/UIToolkitMenuCreator/HEAD/Assets/Plugins/Demigiant/DOTween/DOTween.dll
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/readme.txt.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fccfc62abf2eb0a4db614853430894fd
3 | TextScriptImporter:
4 | userData:
5 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b27f58ae5d5c33a4bb2d1f4f34bd036d
3 | folderAsset: yes
4 | DefaultImporter:
5 | userData:
6 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/DOTweenEditor.XML.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2e2c6224d345d9249acfa6e8ef40bb2d
3 | TextScriptImporter:
4 | userData:
5 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 143604b8bad857d47a6f7cc7a533e2dc
3 | folderAsset: yes
4 | DefaultImporter:
5 | userData:
6 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/Imgs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0034ebae0c2a9344e897db1160d71b6d
3 | folderAsset: yes
4 | DefaultImporter:
5 | userData:
6 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Footer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DanielSnd/UIToolkitMenuCreator/HEAD/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Footer.png
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Header.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DanielSnd/UIToolkitMenuCreator/HEAD/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Header.jpg
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/DOTweenEditor.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DanielSnd/UIToolkitMenuCreator/HEAD/Assets/Plugins/Demigiant/DOTween/Editor/DOTweenEditor.dll
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/DOTweenIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DanielSnd/UIToolkitMenuCreator/HEAD/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/DOTweenIcon.png
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Footer_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DanielSnd/UIToolkitMenuCreator/HEAD/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Footer_dark.png
--------------------------------------------------------------------------------
/Assets/UI Toolkit/UnityThemes/UnityDefaultRuntimeTheme.tss:
--------------------------------------------------------------------------------
1 | @import url("unity-theme://default");
2 |
3 | @import url("/Assets/MenuCreator/MenuCreatorStylesheet.uss");
4 | VisualElement {}
5 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/DOTweenMiniIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DanielSnd/UIToolkitMenuCreator/HEAD/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/DOTweenMiniIcon.png
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Assets/Plugins.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 25002a7579ffdf947bb4c344f241bbc6
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/MenuCreator.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fd1e859c6b3d40f40bab3fbcdbdfb35d
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/MenuCreator/MenuCreatorDemo.unity.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1b22127584b300a46ab64e1274fe9907
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Resources.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c9ff91067e1419b45bccb89430f9ffc9
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Settings.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 709f11a7f3c4041caa4ef136ea32d874
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/UI Toolkit.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 40de017d56c446649b44767f2b2cb31f
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6ea60a3fd07dba34aae6c9514ac9bb82
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/UI Toolkit/UnityThemes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3d98f20b561ed28448e4845c8db87932
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/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 | }
--------------------------------------------------------------------------------
/.idea/.idea.UIToolkitMenuCreator/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Assets/Settings/URP-Balanced.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e1260c1148f6143b28bae5ace5e9c5d1
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 0
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/New Panel Settings.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: acf6bffd1af10bc4b9c8e417887f3236
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Settings/URP-HighFidelity.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7b7fd9122c28c4d15b667c7040e3b3fd
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 0
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Settings/URP-Performant.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d0e2fc18fe036412f8223b3b3d9ad574
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 0
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Settings/SampleSceneProfile.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a6560a915ef98420e9faacc1c7438823
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 0
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Resources/DOTweenSettings.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9b2b891d423dd434ba75965a45e7de74
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ProjectSettings/VersionControlSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!890905787 &1
4 | VersionControlSettings:
5 | m_ObjectHideFlags: 0
6 | m_Mode: Visible Meta Files
7 | m_CollabEditorSettings:
8 | inProgressEnabled: 1
9 |
--------------------------------------------------------------------------------
/Assets/Settings/URP-Balanced-Renderer.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e634585d5c4544dd297acaee93dc2beb
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Settings/URP-HighFidelity-Renderer.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c40be3174f62c4acf8c1216858c64956
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Settings/URP-Performant-Renderer.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 707360a9c581a4bd7aa53bfeb1429f71
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModuleAudio.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b766d08851589514b97afb23c6f30a70
3 | MonoImporter:
4 | serializedVersion: 2
5 | defaultReferences: []
6 | executionOrder: 0
7 | icon: {instanceID: 0}
8 | userData:
9 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModuleSprite.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 188918ab119d93148aa0de59ccf5286b
3 | MonoImporter:
4 | serializedVersion: 2
5 | defaultReferences: []
6 | executionOrder: 0
7 | icon: {instanceID: 0}
8 | userData:
9 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModuleUI.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a060394c03331a64392db53a10e7f2d1
3 | MonoImporter:
4 | serializedVersion: 2
5 | defaultReferences: []
6 | executionOrder: 0
7 | icon: {instanceID: 0}
8 | userData:
9 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModuleUtils.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7bcaf917d9cf5b84090421a5a2abe42e
3 | MonoImporter:
4 | serializedVersion: 2
5 | defaultReferences: []
6 | executionOrder: 0
7 | icon: {instanceID: 0}
8 | userData:
9 |
--------------------------------------------------------------------------------
/Assets/UniversalRenderPipelineGlobalSettings.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 18dc0cd2c080841dea60987a38ce93fa
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/.idea/.idea.UIToolkitMenuCreator/.idea/indexLayout.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModulePhysics.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: dae9aa560b4242648a3affa2bfabc365
3 | MonoImporter:
4 | serializedVersion: 2
5 | defaultReferences: []
6 | executionOrder: 0
7 | icon: {instanceID: 0}
8 | userData:
9 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModulePhysics2D.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 230fe34542e175245ba74b4659dae700
3 | MonoImporter:
4 | serializedVersion: 2
5 | defaultReferences: []
6 | executionOrder: 0
7 | icon: {instanceID: 0}
8 | userData:
9 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModuleUnityVersion.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 63c02322328255542995bd02b47b0457
3 | MonoImporter:
4 | serializedVersion: 2
5 | defaultReferences: []
6 | executionOrder: 0
7 | icon: {instanceID: 0}
8 | userData:
9 |
--------------------------------------------------------------------------------
/Assets/MenuDemo.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4969a9dc89256034eb8038f9f5e61cf3
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/MenuCreator/MenuCreator.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: bd3339599f886b94aa4a2666be05c727
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/MenuCreator/UIToolkitRaycastChecker.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: bdf40cfd93ce1c84cb49dbcb69d246f6
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/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 | - enabled: 1
9 | path: Assets/Scenes/SampleScene.unity
10 | guid: 99c9720ab356a0642a771bea13969a05
11 | m_configObjects: {}
12 |
--------------------------------------------------------------------------------
/Assets/MenuCreator/MenuCreatorUXML.uxml.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: de1780246a9eac0479b6ed49f4ffc9fa
3 | ScriptedImporter:
4 | internalIDToNameTable: []
5 | externalObjects: {}
6 | serializedVersion: 2
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 | script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
11 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModuleEPOOutline.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e944529dcaee98f4e9498d80e541d93e
3 | timeCreated: 1602593330
4 | licenseType: Store
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a50bd9a009c8dfc4ebd88cc8101225a7
3 | labels:
4 | - Tween
5 | - Tweening
6 | - Animation
7 | - HOTween
8 | - Paths
9 | - iTween
10 | - DFTween
11 | - LeanTween
12 | - Ease
13 | - Easing
14 | - Shake
15 | - Punch
16 | - 2DToolkit
17 | - TextMeshPro
18 | - Text
19 | folderAsset: yes
20 | DefaultImporter:
21 | userData:
22 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Assets/MenuCreator/MenuCreatorStylesheet.uss.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fc4614bea4bc39447b664aa2b65b8641
3 | ScriptedImporter:
4 | internalIDToNameTable: []
5 | externalObjects: {}
6 | serializedVersion: 2
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 | script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
11 | disableValidation: 0
12 |
--------------------------------------------------------------------------------
/Assets/UI Toolkit/UnityThemes/UnityDefaultRuntimeTheme.tss.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e2154ee0cc0dc604a8113d9dc6a5c230
3 | ScriptedImporter:
4 | internalIDToNameTable: []
5 | externalObjects: {}
6 | serializedVersion: 2
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 | script: {fileID: 12388, guid: 0000000000000000e000000000000000, type: 0}
11 | disableValidation: 0
12 |
--------------------------------------------------------------------------------
/.idea/.idea.UIToolkitMenuCreator/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 | # Rider ignored files
5 | /modules.xml
6 | /projectSettingsUpdater.xml
7 | /.idea.UIToolkitMenuCreator.iml
8 | /contentModel.xml
9 | # Datasource local storage ignored files
10 | /../../../../../../:\UnityProjects\UIToolkitMenuCreator\.idea\.idea.UIToolkitMenuCreator\.idea/dataSources/
11 | /dataSources.local.xml
12 | # Editor-based HTTP Client requests
13 | /httpRequests/
14 |
--------------------------------------------------------------------------------
/ProjectSettings/BurstAotSettings_StandaloneWindows.json:
--------------------------------------------------------------------------------
1 | {
2 | "MonoBehaviour": {
3 | "Version": 3,
4 | "EnableBurstCompilation": true,
5 | "EnableOptimisations": true,
6 | "EnableSafetyChecks": false,
7 | "EnableDebugInAllBuilds": false,
8 | "UsePlatformSDKLinker": false,
9 | "CpuMinTargetX32": 0,
10 | "CpuMaxTargetX32": 0,
11 | "CpuMinTargetX64": 0,
12 | "CpuMaxTargetX64": 0,
13 | "CpuTargetsX32": 6,
14 | "CpuTargetsX64": 72
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/ProjectSettings/URPProjectSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &1
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 61
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: 247994e1f5a72c2419c26a37e9334c01, type: 3}
13 | m_Name:
14 | m_EditorClassIdentifier:
15 | m_LastMaterialVersion: 5
16 |
--------------------------------------------------------------------------------
/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: 0
20 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/DOTween.dll.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a811bde74b26b53498b4f6d872b09b6d
3 | PluginImporter:
4 | serializedVersion: 1
5 | iconMap: {}
6 | executionOrder: {}
7 | isPreloaded: 0
8 | platformData:
9 | Any:
10 | enabled: 1
11 | settings: {}
12 | Editor:
13 | enabled: 0
14 | settings:
15 | DefaultValueInitialized: true
16 | WindowsStoreApps:
17 | enabled: 0
18 | settings:
19 | CPU: AnyCPU
20 | userData:
21 | assetBundleName:
22 | assetBundleVariant:
23 |
--------------------------------------------------------------------------------
/ProjectSettings/ShaderGraphSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &1
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 61
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: de02f9e1d18f588468e474319d09a723, type: 3}
13 | m_Name:
14 | m_EditorClassIdentifier:
15 | customInterpolatorErrorThreshold: 32
16 | customInterpolatorWarningThreshold: 16
17 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/DOTweenEditor.dll.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 45d5034162d6cf04dbe46da84fc7d074
3 | PluginImporter:
4 | serializedVersion: 1
5 | iconMap: {}
6 | executionOrder: {}
7 | isPreloaded: 0
8 | platformData:
9 | Any:
10 | enabled: 0
11 | settings: {}
12 | Editor:
13 | enabled: 1
14 | settings:
15 | DefaultValueInitialized: true
16 | WindowsStoreApps:
17 | enabled: 0
18 | settings:
19 | CPU: AnyCPU
20 | userData:
21 | assetBundleName:
22 | assetBundleVariant:
23 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/UserSettings/EditorUserSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!162 &1
4 | EditorUserSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 4
7 | m_ConfigSettings:
8 | RecentlyUsedSceneGuid-0:
9 | value: 5253065454075e0e555a0e7140735e4440161a7c782d77627a7d1b36bbb9646f
10 | flags: 0
11 | vcSharedLogLevel:
12 | value: 0d5e400f0650
13 | flags: 0
14 | m_VCAutomaticAdd: 1
15 | m_VCDebugCom: 0
16 | m_VCDebugCmd: 0
17 | m_VCDebugOut: 0
18 | m_SemanticMergeMode: 2
19 | m_DesiredImportWorkerCount: 3
20 | m_StandbyImportWorkerCount: 2
21 | m_IdleImportWorkerShutdownDelay: 60000
22 | m_VCShowFailedCheckout: 1
23 | m_VCOverwriteFailedCheckoutAssets: 1
24 | m_VCProjectOverlayIcons: 1
25 | m_VCHierarchyOverlayIcons: 1
26 | m_VCOtherOverlayIcons: 1
27 | m_VCAllowAsyncUpdate: 1
28 | m_ArtifactGarbageCollection: 1
29 |
--------------------------------------------------------------------------------
/Assets/UniversalRenderPipelineGlobalSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &11400000
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: 2ec995e51a6e251468d2a3fd8a686257, type: 3}
13 | m_Name: UniversalRenderPipelineGlobalSettings
14 | m_EditorClassIdentifier:
15 | k_AssetVersion: 2
16 | lightLayerName0: Light Layer default
17 | lightLayerName1: Light Layer 1
18 | lightLayerName2: Light Layer 2
19 | lightLayerName3: Light Layer 3
20 | lightLayerName4: Light Layer 4
21 | lightLayerName5: Light Layer 5
22 | lightLayerName6: Light Layer 6
23 | lightLayerName7: Light Layer 7
24 | m_StripDebugVariants: 1
25 | m_StripUnusedPostProcessingVariants: 1
26 | m_StripUnusedVariants: 1
27 | supportRuntimeDebugDisplay: 0
28 |
--------------------------------------------------------------------------------
/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_DashboardUrl: https://dashboard.unity3d.com
13 | m_TestInitMode: 0
14 | CrashReportingSettings:
15 | m_EventUrl: https://perf-events.cloud.unity3d.com
16 | m_Enabled: 0
17 | m_LogBufferSize: 10
18 | m_CaptureEditorExceptions: 1
19 | UnityPurchasingSettings:
20 | m_Enabled: 0
21 | m_TestMode: 0
22 | UnityAnalyticsSettings:
23 | m_Enabled: 0
24 | m_TestMode: 0
25 | m_InitializeOnStartup: 1
26 | UnityAdsSettings:
27 | m_Enabled: 0
28 | m_InitializeOnStartup: 1
29 | m_TestMode: 0
30 | m_IosGameId:
31 | m_AndroidGameId:
32 | m_GameIds: {}
33 | m_GameId:
34 | PerformanceReportingSettings:
35 | m_Enabled: 0
36 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 DanielSnd
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/ProjectSettings/PackageManagerSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &1
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 61
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0}
13 | m_Name:
14 | m_EditorClassIdentifier:
15 | m_EnablePreviewPackages: 0
16 | m_EnablePackageDependencies: 0
17 | m_AdvancedSettingsExpanded: 1
18 | m_ScopedRegistriesSettingsExpanded: 1
19 | oneTimeWarningShown: 0
20 | m_Registries:
21 | - m_Id: main
22 | m_Name:
23 | m_Url: https://packages.unity.com
24 | m_Scopes: []
25 | m_IsDefault: 1
26 | m_Capabilities: 7
27 | m_UserSelectedRegistryName:
28 | m_UserAddingNewScopedRegistry: 0
29 | m_RegistryInfoDraft:
30 | m_ErrorMessage:
31 | m_Original:
32 | m_Id:
33 | m_Name:
34 | m_Url:
35 | m_Scopes: []
36 | m_IsDefault: 0
37 | m_Capabilities: 0
38 | m_Modified: 0
39 | m_Name:
40 | m_Url:
41 | m_Scopes:
42 | -
43 | m_SelectedScopeIndex: 0
44 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Footer.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7051dba417b3d53409f2918f1ea4938d
3 | TextureImporter:
4 | fileIDToRecycleName: {}
5 | serializedVersion: 2
6 | mipmaps:
7 | mipMapMode: 0
8 | enableMipMap: 0
9 | linearTexture: 1
10 | correctGamma: 0
11 | fadeOut: 0
12 | borderMipMap: 0
13 | mipMapFadeDistanceStart: 1
14 | mipMapFadeDistanceEnd: 3
15 | bumpmap:
16 | convertToNormalMap: 0
17 | externalNormalMap: 0
18 | heightScale: .25
19 | normalMapFilter: 0
20 | isReadable: 0
21 | grayScaleToAlpha: 0
22 | generateCubemap: 0
23 | seamlessCubemap: 0
24 | textureFormat: -3
25 | maxTextureSize: 256
26 | textureSettings:
27 | filterMode: 1
28 | aniso: 1
29 | mipBias: -1
30 | wrapMode: 1
31 | nPOTScale: 0
32 | lightmap: 0
33 | compressionQuality: 50
34 | spriteMode: 0
35 | spriteExtrude: 1
36 | spriteMeshType: 1
37 | alignment: 0
38 | spritePivot: {x: .5, y: .5}
39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
40 | spritePixelsToUnits: 100
41 | alphaIsTransparency: 1
42 | textureType: 2
43 | buildTargetSettings: []
44 | spriteSheet:
45 | sprites: []
46 | spritePackingTag:
47 | userData:
48 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Header.jpg.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 78a59ca99f8987941adb61f9e14a06a7
3 | TextureImporter:
4 | fileIDToRecycleName: {}
5 | serializedVersion: 2
6 | mipmaps:
7 | mipMapMode: 0
8 | enableMipMap: 0
9 | linearTexture: 1
10 | correctGamma: 0
11 | fadeOut: 0
12 | borderMipMap: 0
13 | mipMapFadeDistanceStart: 1
14 | mipMapFadeDistanceEnd: 3
15 | bumpmap:
16 | convertToNormalMap: 0
17 | externalNormalMap: 0
18 | heightScale: .25
19 | normalMapFilter: 0
20 | isReadable: 0
21 | grayScaleToAlpha: 0
22 | generateCubemap: 0
23 | seamlessCubemap: 0
24 | textureFormat: -3
25 | maxTextureSize: 512
26 | textureSettings:
27 | filterMode: 1
28 | aniso: 1
29 | mipBias: -1
30 | wrapMode: 1
31 | nPOTScale: 0
32 | lightmap: 0
33 | compressionQuality: 50
34 | spriteMode: 0
35 | spriteExtrude: 1
36 | spriteMeshType: 1
37 | alignment: 0
38 | spritePivot: {x: .5, y: .5}
39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
40 | spritePixelsToUnits: 100
41 | alphaIsTransparency: 1
42 | textureType: 2
43 | buildTargetSettings: []
44 | spriteSheet:
45 | sprites: []
46 | spritePackingTag:
47 | userData:
48 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/DOTweenIcon.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8da095e39e9b4df488dfd436f81116d6
3 | TextureImporter:
4 | fileIDToRecycleName: {}
5 | serializedVersion: 2
6 | mipmaps:
7 | mipMapMode: 0
8 | enableMipMap: 0
9 | linearTexture: 1
10 | correctGamma: 0
11 | fadeOut: 0
12 | borderMipMap: 0
13 | mipMapFadeDistanceStart: 1
14 | mipMapFadeDistanceEnd: 3
15 | bumpmap:
16 | convertToNormalMap: 0
17 | externalNormalMap: 0
18 | heightScale: .25
19 | normalMapFilter: 0
20 | isReadable: 0
21 | grayScaleToAlpha: 0
22 | generateCubemap: 0
23 | seamlessCubemap: 0
24 | textureFormat: -3
25 | maxTextureSize: 128
26 | textureSettings:
27 | filterMode: 1
28 | aniso: 1
29 | mipBias: -1
30 | wrapMode: 1
31 | nPOTScale: 0
32 | lightmap: 0
33 | compressionQuality: 50
34 | spriteMode: 0
35 | spriteExtrude: 1
36 | spriteMeshType: 1
37 | alignment: 0
38 | spritePivot: {x: .5, y: .5}
39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
40 | spritePixelsToUnits: 100
41 | alphaIsTransparency: 1
42 | textureType: 2
43 | buildTargetSettings: []
44 | spriteSheet:
45 | sprites: []
46 | spritePackingTag:
47 | userData:
48 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/Footer_dark.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 519694efe2bb2914788b151fbd8c01f4
3 | TextureImporter:
4 | fileIDToRecycleName: {}
5 | serializedVersion: 2
6 | mipmaps:
7 | mipMapMode: 0
8 | enableMipMap: 1
9 | linearTexture: 0
10 | correctGamma: 0
11 | fadeOut: 0
12 | borderMipMap: 0
13 | mipMapFadeDistanceStart: 1
14 | mipMapFadeDistanceEnd: 3
15 | bumpmap:
16 | convertToNormalMap: 0
17 | externalNormalMap: 0
18 | heightScale: .25
19 | normalMapFilter: 0
20 | isReadable: 0
21 | grayScaleToAlpha: 0
22 | generateCubemap: 0
23 | seamlessCubemap: 0
24 | textureFormat: -1
25 | maxTextureSize: 1024
26 | textureSettings:
27 | filterMode: -1
28 | aniso: -1
29 | mipBias: -1
30 | wrapMode: -1
31 | nPOTScale: 1
32 | lightmap: 0
33 | compressionQuality: 50
34 | spriteMode: 0
35 | spriteExtrude: 1
36 | spriteMeshType: 1
37 | alignment: 0
38 | spritePivot: {x: .5, y: .5}
39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
40 | spritePixelsToUnits: 100
41 | alphaIsTransparency: 0
42 | textureType: -1
43 | buildTargetSettings: []
44 | spriteSheet:
45 | sprites: []
46 | spritePackingTag:
47 | userData:
48 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # This .gitignore file should be placed at the root of your Unity project directory
2 | #
3 | # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
4 | #
5 | /[Ll]ibrary/
6 | /[Tt]emp/
7 | /[Oo]bj/
8 | /[Bb]uild/
9 | /[Bb]uilds/
10 | /[Ll]ogs/
11 | /[Mm]emoryCaptures/
12 |
13 | # Asset meta data should only be ignored when the corresponding asset is also ignored
14 | !/[Aa]ssets/**/*.meta
15 |
16 | # Uncomment this line if you wish to ignore the asset store tools plugin
17 | # /[Aa]ssets/AssetStoreTools*
18 |
19 | # Autogenerated Jetbrains Rider plugin
20 | [Aa]ssets/Plugins/Editor/JetBrains*
21 |
22 | # Visual Studio cache directory
23 | .vs/
24 |
25 | # Gradle cache directory
26 | .gradle/
27 |
28 | # Autogenerated VS/MD/Consulo solution and project files
29 | ExportedObj/
30 | .consulo/
31 | *.csproj
32 | *.unityproj
33 | *.sln
34 | *.suo
35 | *.tmp
36 | *.user
37 | *.userprefs
38 | *.pidb
39 | *.booproj
40 | *.svd
41 | *.pdb
42 | *.mdb
43 | *.opendb
44 | *.VC.db
45 |
46 | # Unity3D generated meta files
47 | *.pidb.meta
48 | *.pdb.meta
49 | *.mdb.meta
50 |
51 | # Unity3D generated file on crash reports
52 | sysinfo.txt
53 |
54 | # Builds
55 | *.apk
56 | *.unitypackage
57 |
58 | # Crashlytics generated file
59 | crashlytics-build.properties
60 |
61 |
--------------------------------------------------------------------------------
/ProjectSettings/MemorySettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!387306366 &1
4 | MemorySettings:
5 | m_ObjectHideFlags: 0
6 | m_EditorMemorySettings:
7 | m_MainAllocatorBlockSize: -1
8 | m_ThreadAllocatorBlockSize: -1
9 | m_MainGfxBlockSize: -1
10 | m_ThreadGfxBlockSize: -1
11 | m_CacheBlockSize: -1
12 | m_TypetreeBlockSize: -1
13 | m_ProfilerBlockSize: -1
14 | m_ProfilerEditorBlockSize: -1
15 | m_BucketAllocatorGranularity: -1
16 | m_BucketAllocatorBucketsCount: -1
17 | m_BucketAllocatorBlockSize: -1
18 | m_BucketAllocatorBlockCount: -1
19 | m_ProfilerBucketAllocatorGranularity: -1
20 | m_ProfilerBucketAllocatorBucketsCount: -1
21 | m_ProfilerBucketAllocatorBlockSize: -1
22 | m_ProfilerBucketAllocatorBlockCount: -1
23 | m_TempAllocatorSizeMain: -1
24 | m_JobTempAllocatorBlockSize: -1
25 | m_BackgroundJobTempAllocatorBlockSize: -1
26 | m_JobTempAllocatorReducedBlockSize: -1
27 | m_TempAllocatorSizeGIBakingWorker: -1
28 | m_TempAllocatorSizeNavMeshWorker: -1
29 | m_TempAllocatorSizeAudioWorker: -1
30 | m_TempAllocatorSizeCloudWorker: -1
31 | m_TempAllocatorSizeGfx: -1
32 | m_TempAllocatorSizeJobWorker: -1
33 | m_TempAllocatorSizeBackgroundWorker: -1
34 | m_TempAllocatorSizePreloadManager: -1
35 | m_PlatformMemorySettings: {}
36 |
--------------------------------------------------------------------------------
/Assets/New Panel Settings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &11400000
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 19101, guid: 0000000000000000e000000000000000, type: 0}
13 | m_Name: New Panel Settings
14 | m_EditorClassIdentifier:
15 | themeUss: {fileID: -4733365628477956816, guid: 15996bcffd6c64445bb551a0b8a31d54,
16 | type: 3}
17 | m_TargetTexture: {fileID: 0}
18 | m_ScaleMode: 2
19 | m_Scale: 1
20 | m_ReferenceDpi: 96
21 | m_FallbackDpi: 96
22 | m_ReferenceResolution: {x: 1280, y: 720}
23 | m_ScreenMatchMode: 0
24 | m_Match: 0
25 | m_SortingOrder: 0
26 | m_TargetDisplay: 0
27 | m_ClearDepthStencil: 1
28 | m_ClearColor: 0
29 | m_ColorClearValue: {r: 0, g: 0, b: 0, a: 0}
30 | m_DynamicAtlasSettings:
31 | m_MinAtlasSize: 64
32 | m_MaxAtlasSize: 4096
33 | m_MaxSubTextureSize: 64
34 | m_ActiveFilters: 31
35 | m_AtlasBlitShader: {fileID: 9101, guid: 0000000000000000f000000000000000, type: 0}
36 | m_RuntimeShader: {fileID: 9100, guid: 0000000000000000f000000000000000, type: 0}
37 | m_RuntimeWorldShader: {fileID: 9102, guid: 0000000000000000f000000000000000, type: 0}
38 | textSettings: {fileID: 0}
39 |
--------------------------------------------------------------------------------
/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: 13
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.1
18 | m_ClothInterCollisionStiffness: 0.2
19 | m_ContactsGeneration: 1
20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
21 | m_AutoSimulation: 1
22 | m_AutoSyncTransforms: 0
23 | m_ReuseCollisionCallbacks: 0
24 | m_ClothInterCollisionSettingsToggle: 0
25 | m_ClothGravity: {x: 0, y: -9.81, z: 0}
26 | m_ContactPairsMode: 0
27 | m_BroadphaseType: 0
28 | m_WorldBounds:
29 | m_Center: {x: 0, y: 0, z: 0}
30 | m_Extent: {x: 250, y: 250, z: 250}
31 | m_WorldSubdivisions: 8
32 | m_FrictionType: 0
33 | m_EnableEnhancedDeterminism: 0
34 | m_EnableUnifiedHeightmaps: 1
35 | m_SolverType: 0
36 | m_DefaultMaxAngularSpeed: 50
37 |
--------------------------------------------------------------------------------
/Assets/MenuCreator/MenuCreatorUXML.uxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/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: 11
7 | m_SerializationMode: 2
8 | m_LineEndingsForNewScripts: 2
9 | m_DefaultBehaviorMode: 0
10 | m_PrefabRegularEnvironment: {fileID: 0}
11 | m_PrefabUIEnvironment: {fileID: 0}
12 | m_SpritePackerMode: 0
13 | m_SpritePackerPaddingPower: 1
14 | m_Bc7TextureCompressor: 0
15 | m_EtcTextureCompressorBehavior: 1
16 | m_EtcTextureFastCompressor: 1
17 | m_EtcTextureNormalCompressor: 2
18 | m_EtcTextureBestCompressor: 4
19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;asmref;rsp
20 | m_ProjectGenerationRootNamespace:
21 | m_EnableTextureStreamingInEditMode: 1
22 | m_EnableTextureStreamingInPlayMode: 1
23 | m_AsyncShaderCompilation: 1
24 | m_CachingShaderPreprocessor: 1
25 | m_PrefabModeAllowAutoSave: 1
26 | m_EnterPlayModeOptionsEnabled: 1
27 | m_EnterPlayModeOptions: 1
28 | m_GameObjectNamingDigits: 1
29 | m_GameObjectNamingScheme: 0
30 | m_AssetNamingUsesSpace: 1
31 | m_UseLegacyProbeSampleCount: 0
32 | m_SerializeInlineMappingsOnOneLine: 0
33 | m_DisableCookiesInLightmapper: 1
34 | m_AssetPipelineMode: 1
35 | m_RefreshImportMode: 0
36 | m_CacheServerMode: 0
37 | m_CacheServerEndpoint:
38 | m_CacheServerNamespacePrefix: default
39 | m_CacheServerEnableDownload: 1
40 | m_CacheServerEnableUpload: 1
41 | m_CacheServerEnableAuth: 0
42 | m_CacheServerEnableTls: 0
43 | m_CacheServerValidationMode: 2
44 |
--------------------------------------------------------------------------------
/Assets/Resources/DOTweenSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &11400000
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 16995157, guid: a811bde74b26b53498b4f6d872b09b6d, type: 3}
13 | m_Name: DOTweenSettings
14 | m_EditorClassIdentifier:
15 | useSafeMode: 1
16 | safeModeOptions:
17 | logBehaviour: 2
18 | nestedTweenFailureBehaviour: 0
19 | timeScale: 1
20 | unscaledTimeScale: 1
21 | useSmoothDeltaTime: 0
22 | maxSmoothUnscaledTime: 0.15
23 | rewindCallbackMode: 0
24 | showUnityEditorReport: 0
25 | logBehaviour: 0
26 | drawGizmos: 1
27 | defaultRecyclable: 0
28 | defaultAutoPlay: 3
29 | defaultUpdateType: 0
30 | defaultTimeScaleIndependent: 0
31 | defaultEaseType: 6
32 | defaultEaseOvershootOrAmplitude: 1.70158
33 | defaultEasePeriod: 0
34 | defaultAutoKill: 1
35 | defaultLoopType: 0
36 | debugMode: 0
37 | debugStoreTargetId: 1
38 | showPreviewPanel: 1
39 | storeSettingsLocation: 0
40 | modules:
41 | showPanel: 0
42 | audioEnabled: 1
43 | physicsEnabled: 1
44 | physics2DEnabled: 1
45 | spriteEnabled: 1
46 | uiEnabled: 1
47 | textMeshProEnabled: 0
48 | tk2DEnabled: 0
49 | deAudioEnabled: 0
50 | deUnityExtendedEnabled: 0
51 | epoOutlineEnabled: 0
52 | createASMDEF: 0
53 | showPlayingTweens: 0
54 | showPausedTweens: 0
55 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/Imgs/DOTweenMiniIcon.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 61521df2e071645488ba3d05e49289ae
3 | timeCreated: 1602317874
4 | licenseType: Store
5 | TextureImporter:
6 | fileIDToRecycleName: {}
7 | serializedVersion: 4
8 | mipmaps:
9 | mipMapMode: 0
10 | enableMipMap: 1
11 | sRGBTexture: 1
12 | linearTexture: 0
13 | fadeOut: 0
14 | borderMipMap: 0
15 | mipMapFadeDistanceStart: 1
16 | mipMapFadeDistanceEnd: 3
17 | bumpmap:
18 | convertToNormalMap: 0
19 | externalNormalMap: 0
20 | heightScale: 0.25
21 | normalMapFilter: 0
22 | isReadable: 0
23 | grayScaleToAlpha: 0
24 | generateCubemap: 6
25 | cubemapConvolution: 0
26 | seamlessCubemap: 0
27 | textureFormat: 1
28 | maxTextureSize: 2048
29 | textureSettings:
30 | filterMode: -1
31 | aniso: -1
32 | mipBias: -1
33 | wrapMode: -1
34 | nPOTScale: 1
35 | lightmap: 0
36 | compressionQuality: 50
37 | spriteMode: 0
38 | spriteExtrude: 1
39 | spriteMeshType: 1
40 | alignment: 0
41 | spritePivot: {x: 0.5, y: 0.5}
42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
43 | spritePixelsToUnits: 100
44 | alphaUsage: 1
45 | alphaIsTransparency: 0
46 | spriteTessellationDetail: -1
47 | textureType: 0
48 | textureShape: 1
49 | maxTextureSizeSet: 0
50 | compressionQualitySet: 0
51 | textureFormatSet: 0
52 | platformSettings:
53 | - buildTarget: DefaultTexturePlatform
54 | maxTextureSize: 2048
55 | textureFormat: -1
56 | textureCompression: 1
57 | compressionQuality: 50
58 | crunchedCompression: 0
59 | allowsAlphaSplitting: 0
60 | overridden: 0
61 | spriteSheet:
62 | serializedVersion: 2
63 | sprites: []
64 | outline: []
65 | spritePackingTag:
66 | userData:
67 | assetBundleName:
68 | assetBundleVariant:
69 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # UIToolkitMenuCreator
2 | UI Toolkit Menu Creator is a class and UXML/Stylesheet you can extend from to easily create Runtime Unity Game Menus from C# code without having to edit UXML.
3 |
4 | # Dependencies
5 | UI Toolkit Menu Creator uses DOTween for fading menus:
6 | ### DOTween [License here](http://dotween.demigiant.com/license.php)
7 |
8 | # Demo
9 | 
10 |
11 | The demo scene is in **Assets\MenuCreatorDemo\MenuCreatorDemo.scene**.
12 | Its main file is ****Assets\MenuCreatorDemo\MenuDemo.cs** and shows how to use Menu Creator.
13 |
14 | This is how the first demo menu is set up in code:
15 |
16 | ```csharp
17 | public void CreateFirstDemoMenu()
18 | {
19 | StartBasicMenu("Main Menu");
20 | AddTwoButtonsWhenPossible(
21 | new MenuButton("First Button", () => {Debug.Log("Pressed First Button");}, ButtonColors.ButtonGrey),
22 | new MenuButton("Second Button", () => {Debug.Log("Pressed Second Button");}, ButtonColors.ButtonBlueAlt)
23 | );
24 |
25 | AddSpacer();
26 | var addedLabel = AddBigLabel("This label changes with the text field/slider values!");
27 | AddSpacer();
28 | AddTextField("Text Field", evt => { addedLabel.text = $"Text Field is: {evt.newValue}";},"Default Text Field Text");
29 | AddSpacer();
30 | AddSliderInt("Slider",0,0,10, evt => { addedLabel.text = $"Slider is set to {evt.newValue}";});
31 | AddSpacer();
32 | AddButton(new MenuButton("Other Menu", () =>
33 | {
34 | ChangeToMenu(CreateOtherMenu);
35 | }));
36 | }
37 | ```
38 |
39 | # Usage
40 |
41 | - Extend your menu file from **MenuCreator**
42 | - Add a UIDocument to the scene with **MenuCreatorUXML** as its source asset.
43 | - Add your menu file as a component to the same gameobject.
44 | - Refer to the Menu Demo on what methods to call to setup your menu.
45 |
--------------------------------------------------------------------------------
/Packages/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "com.unity.collab-proxy": "1.15.18",
4 | "com.unity.ide.rider": "3.0.15",
5 | "com.unity.ide.visualstudio": "2.0.16",
6 | "com.unity.ide.vscode": "1.2.5",
7 | "com.unity.render-pipelines.universal": "12.1.7",
8 | "com.unity.test-framework": "1.1.31",
9 | "com.unity.textmeshpro": "3.0.6",
10 | "com.unity.timeline": "1.6.4",
11 | "com.unity.ugui": "1.0.0",
12 | "com.unity.visualscripting": "1.7.8",
13 | "com.unity.modules.ai": "1.0.0",
14 | "com.unity.modules.androidjni": "1.0.0",
15 | "com.unity.modules.animation": "1.0.0",
16 | "com.unity.modules.assetbundle": "1.0.0",
17 | "com.unity.modules.audio": "1.0.0",
18 | "com.unity.modules.cloth": "1.0.0",
19 | "com.unity.modules.director": "1.0.0",
20 | "com.unity.modules.imageconversion": "1.0.0",
21 | "com.unity.modules.imgui": "1.0.0",
22 | "com.unity.modules.jsonserialize": "1.0.0",
23 | "com.unity.modules.particlesystem": "1.0.0",
24 | "com.unity.modules.physics": "1.0.0",
25 | "com.unity.modules.physics2d": "1.0.0",
26 | "com.unity.modules.screencapture": "1.0.0",
27 | "com.unity.modules.terrain": "1.0.0",
28 | "com.unity.modules.terrainphysics": "1.0.0",
29 | "com.unity.modules.tilemap": "1.0.0",
30 | "com.unity.modules.ui": "1.0.0",
31 | "com.unity.modules.uielements": "1.0.0",
32 | "com.unity.modules.umbra": "1.0.0",
33 | "com.unity.modules.unityanalytics": "1.0.0",
34 | "com.unity.modules.unitywebrequest": "1.0.0",
35 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
36 | "com.unity.modules.unitywebrequestaudio": "1.0.0",
37 | "com.unity.modules.unitywebrequesttexture": "1.0.0",
38 | "com.unity.modules.unitywebrequestwww": "1.0.0",
39 | "com.unity.modules.vehicles": "1.0.0",
40 | "com.unity.modules.video": "1.0.0",
41 | "com.unity.modules.vr": "1.0.0",
42 | "com.unity.modules.wind": "1.0.0",
43 | "com.unity.modules.xr": "1.0.0"
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/Assets/Settings/URP-Performant-Renderer.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &11400000
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: de640fe3d0db1804a85f9fc8f5cadab6, type: 3}
13 | m_Name: URP-Performant-Renderer
14 | m_EditorClassIdentifier:
15 | debugShaders:
16 | debugReplacementPS: {fileID: 4800000, guid: cf852408f2e174538bcd9b7fda1c5ae7,
17 | type: 3}
18 | m_RendererFeatures: []
19 | m_RendererFeatureMap:
20 | m_UseNativeRenderPass: 0
21 | postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
22 | shaders:
23 | blitPS: {fileID: 4800000, guid: c17132b1f77d20942aa75f8429c0f8bc, type: 3}
24 | copyDepthPS: {fileID: 4800000, guid: d6dae50ee9e1bfa4db75f19f99355220, type: 3}
25 | screenSpaceShadowPS: {fileID: 0}
26 | samplingPS: {fileID: 4800000, guid: 04c410c9937594faa893a11dceb85f7e, type: 3}
27 | stencilDeferredPS: {fileID: 4800000, guid: e9155b26e1bc55942a41e518703fe304, type: 3}
28 | fallbackErrorPS: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3}
29 | materialErrorPS: {fileID: 4800000, guid: 5fd9a8feb75a4b5894c241777f519d4e, type: 3}
30 | coreBlitPS: {fileID: 0}
31 | coreBlitColorAndDepthPS: {fileID: 0}
32 | cameraMotionVector: {fileID: 0}
33 | objectMotionVector: {fileID: 0}
34 | m_OpaqueLayerMask:
35 | serializedVersion: 2
36 | m_Bits: 4294967295
37 | m_TransparentLayerMask:
38 | serializedVersion: 2
39 | m_Bits: 4294967295
40 | m_DefaultStencilState:
41 | overrideStencilState: 0
42 | stencilReference: 0
43 | stencilCompareFunction: 8
44 | passOperation: 2
45 | failOperation: 0
46 | zFailOperation: 0
47 | m_ShadowTransparentReceive: 1
48 | m_RenderingMode: 0
49 | m_DepthPrimingMode: 0
50 | m_AccurateGbufferNormals: 0
51 | m_ClusteredRendering: 0
52 | m_TileSize: 32
53 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/readme.txt:
--------------------------------------------------------------------------------
1 | DOTween and DOTween Pro are copyright (c) 2014-2018 Daniele Giardini - Demigiant
2 |
3 | // IMPORTANT!!! /////////////////////////////////////////////
4 | // Upgrading DOTween from versions older than 1.2.000 ///////
5 | // (or DOTween Pro older than 1.0.000) //////////////////////
6 | -------------------------------------------------------------
7 | If you're upgrading your project from a version of DOTween older than 1.2.000 (or DOTween Pro older than 1.0.000) please follow these instructions carefully.
8 | 1) Import the new version in the same folder as the previous one, overwriting old files. A lot of errors will appear but don't worry
9 | 2) Close and reopen Unity (and your project). This is fundamental: skipping this step will cause a bloodbath
10 | 3) Open DOTween's Utility Panel (Tools > Demigiant > DOTween Utility Panel) if it doesn't open automatically, then press "Setup DOTween...": this will run the upgrade setup
11 | 4) From the Add/Remove Modules panel that opens, activate/deactivate Modules for Unity systems and for external assets (Pro version only)
12 |
13 | // GET STARTED //////////////////////////////////////////////
14 |
15 | - After importing a new DOTween update, select DOTween's Utility Panel from the "Tools/Demigiant" menu (if it doesn't open automatically) and press the "Setup DOTween..." button to activate/deactivate Modules. You can also access a Preferences Tab from there to choose default settings for DOTween.
16 | - In your code, add "using DG.Tweening" to each class where you want to use DOTween.
17 | - You're ready to tween. Check out the links below for full documentation and license info.
18 |
19 |
20 | // LINKS ///////////////////////////////////////////////////////
21 |
22 | DOTween website (documentation, examples, etc): http://dotween.demigiant.com
23 | DOTween license: http://dotween.demigiant.com/license.php
24 | DOTween repository (Google Code): https://code.google.com/p/dotween/
25 | Demigiant website (documentation, examples, etc): http://www.demigiant.com
26 |
27 | // NOTES //////////////////////////////////////////////////////
28 |
29 | - DOTween's Utility Panel can be found under "Tools > Demigiant > DOTween Utility Panel" and also contains other useful options, plus a tab to set DOTween's preferences
--------------------------------------------------------------------------------
/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: 0
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 |
--------------------------------------------------------------------------------
/Assets/Settings/URP-Balanced.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &11400000
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: bf2edee5c58d82540a51f03df9d42094, type: 3}
13 | m_Name: URP-Balanced
14 | m_EditorClassIdentifier:
15 | k_AssetVersion: 9
16 | k_AssetPreviousVersion: 9
17 | m_RendererType: 1
18 | m_RendererData: {fileID: 0}
19 | m_RendererDataList:
20 | - {fileID: 11400000, guid: e634585d5c4544dd297acaee93dc2beb, type: 2}
21 | m_DefaultRendererIndex: 0
22 | m_RequireDepthTexture: 0
23 | m_RequireOpaqueTexture: 0
24 | m_OpaqueDownsampling: 1
25 | m_SupportsTerrainHoles: 1
26 | m_StoreActionsOptimization: 0
27 | m_SupportsHDR: 1
28 | m_MSAA: 1
29 | m_RenderScale: 1
30 | m_MainLightRenderingMode: 1
31 | m_MainLightShadowsSupported: 1
32 | m_MainLightShadowmapResolution: 1024
33 | m_AdditionalLightsRenderingMode: 1
34 | m_AdditionalLightsPerObjectLimit: 2
35 | m_AdditionalLightShadowsSupported: 0
36 | m_AdditionalLightsShadowmapResolution: 512
37 | m_AdditionalLightsShadowResolutionTierLow: 128
38 | m_AdditionalLightsShadowResolutionTierMedium: 256
39 | m_AdditionalLightsShadowResolutionTierHigh: 512
40 | m_ReflectionProbeBlending: 0
41 | m_ReflectionProbeBoxProjection: 0
42 | m_ShadowDistance: 50
43 | m_ShadowCascadeCount: 1
44 | m_Cascade2Split: 0.25
45 | m_Cascade3Split: {x: 0.1, y: 0.3}
46 | m_Cascade4Split: {x: 0.067, y: 0.2, z: 0.467}
47 | m_CascadeBorder: 0.1
48 | m_ShadowDepthBias: 1
49 | m_ShadowNormalBias: 1
50 | m_SoftShadowsSupported: 1
51 | m_AdditionalLightsCookieResolution: 512
52 | m_AdditionalLightsCookieFormat: 1
53 | m_UseSRPBatcher: 1
54 | m_SupportsDynamicBatching: 0
55 | m_MixedLightingSupported: 1
56 | m_SupportsLightLayers: 0
57 | m_DebugLevel: 0
58 | m_UseAdaptivePerformance: 1
59 | m_ColorGradingMode: 0
60 | m_ColorGradingLutSize: 32
61 | m_UseFastSRGBLinearConversion: 0
62 | m_ShadowType: 1
63 | m_LocalShadowsSupported: 0
64 | m_LocalShadowsAtlasResolution: 256
65 | m_MaxPixelLights: 0
66 | m_ShadowAtlasResolution: 256
67 | m_ShaderVariantLogLevel: 0
68 | m_VolumeFrameworkUpdateMode: 0
69 | m_ShadowCascades: 0
70 |
--------------------------------------------------------------------------------
/Assets/Settings/URP-Performant.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &11400000
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: bf2edee5c58d82540a51f03df9d42094, type: 3}
13 | m_Name: URP-Performant
14 | m_EditorClassIdentifier:
15 | k_AssetVersion: 9
16 | k_AssetPreviousVersion: 9
17 | m_RendererType: 1
18 | m_RendererData: {fileID: 0}
19 | m_RendererDataList:
20 | - {fileID: 11400000, guid: 707360a9c581a4bd7aa53bfeb1429f71, type: 2}
21 | m_DefaultRendererIndex: 0
22 | m_RequireDepthTexture: 0
23 | m_RequireOpaqueTexture: 0
24 | m_OpaqueDownsampling: 1
25 | m_SupportsTerrainHoles: 1
26 | m_StoreActionsOptimization: 0
27 | m_SupportsHDR: 0
28 | m_MSAA: 1
29 | m_RenderScale: 1
30 | m_MainLightRenderingMode: 1
31 | m_MainLightShadowsSupported: 0
32 | m_MainLightShadowmapResolution: 1024
33 | m_AdditionalLightsRenderingMode: 0
34 | m_AdditionalLightsPerObjectLimit: 4
35 | m_AdditionalLightShadowsSupported: 0
36 | m_AdditionalLightsShadowmapResolution: 512
37 | m_AdditionalLightsShadowResolutionTierLow: 128
38 | m_AdditionalLightsShadowResolutionTierMedium: 256
39 | m_AdditionalLightsShadowResolutionTierHigh: 512
40 | m_ReflectionProbeBlending: 0
41 | m_ReflectionProbeBoxProjection: 0
42 | m_ShadowDistance: 50
43 | m_ShadowCascadeCount: 1
44 | m_Cascade2Split: 0.25
45 | m_Cascade3Split: {x: 0.1, y: 0.3}
46 | m_Cascade4Split: {x: 0.067, y: 0.2, z: 0.467}
47 | m_CascadeBorder: 0.1
48 | m_ShadowDepthBias: 1
49 | m_ShadowNormalBias: 1
50 | m_SoftShadowsSupported: 0
51 | m_AdditionalLightsCookieResolution: 2048
52 | m_AdditionalLightsCookieFormat: 3
53 | m_UseSRPBatcher: 1
54 | m_SupportsDynamicBatching: 0
55 | m_MixedLightingSupported: 1
56 | m_SupportsLightLayers: 0
57 | m_DebugLevel: 0
58 | m_UseAdaptivePerformance: 1
59 | m_ColorGradingMode: 0
60 | m_ColorGradingLutSize: 16
61 | m_UseFastSRGBLinearConversion: 0
62 | m_ShadowType: 1
63 | m_LocalShadowsSupported: 0
64 | m_LocalShadowsAtlasResolution: 256
65 | m_MaxPixelLights: 0
66 | m_ShadowAtlasResolution: 256
67 | m_ShaderVariantLogLevel: 0
68 | m_VolumeFrameworkUpdateMode: 0
69 | m_ShadowCascades: 0
70 |
--------------------------------------------------------------------------------
/Assets/Settings/URP-HighFidelity.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &11400000
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: bf2edee5c58d82540a51f03df9d42094, type: 3}
13 | m_Name: URP-HighFidelity
14 | m_EditorClassIdentifier:
15 | k_AssetVersion: 9
16 | k_AssetPreviousVersion: 9
17 | m_RendererType: 1
18 | m_RendererData: {fileID: 0}
19 | m_RendererDataList:
20 | - {fileID: 11400000, guid: c40be3174f62c4acf8c1216858c64956, type: 2}
21 | m_DefaultRendererIndex: 0
22 | m_RequireDepthTexture: 0
23 | m_RequireOpaqueTexture: 0
24 | m_OpaqueDownsampling: 1
25 | m_SupportsTerrainHoles: 1
26 | m_StoreActionsOptimization: 0
27 | m_SupportsHDR: 1
28 | m_MSAA: 4
29 | m_RenderScale: 1
30 | m_MainLightRenderingMode: 1
31 | m_MainLightShadowsSupported: 1
32 | m_MainLightShadowmapResolution: 4096
33 | m_AdditionalLightsRenderingMode: 1
34 | m_AdditionalLightsPerObjectLimit: 8
35 | m_AdditionalLightShadowsSupported: 1
36 | m_AdditionalLightsShadowmapResolution: 4096
37 | m_AdditionalLightsShadowResolutionTierLow: 128
38 | m_AdditionalLightsShadowResolutionTierMedium: 256
39 | m_AdditionalLightsShadowResolutionTierHigh: 512
40 | m_ReflectionProbeBlending: 1
41 | m_ReflectionProbeBoxProjection: 1
42 | m_ShadowDistance: 150
43 | m_ShadowCascadeCount: 4
44 | m_Cascade2Split: 0.25
45 | m_Cascade3Split: {x: 0.1, y: 0.3}
46 | m_Cascade4Split: {x: 0.067, y: 0.2, z: 0.467}
47 | m_CascadeBorder: 0.1
48 | m_ShadowDepthBias: 1
49 | m_ShadowNormalBias: 1
50 | m_SoftShadowsSupported: 1
51 | m_AdditionalLightsCookieResolution: 4096
52 | m_AdditionalLightsCookieFormat: 4
53 | m_UseSRPBatcher: 1
54 | m_SupportsDynamicBatching: 0
55 | m_MixedLightingSupported: 1
56 | m_SupportsLightLayers: 0
57 | m_DebugLevel: 0
58 | m_UseAdaptivePerformance: 1
59 | m_ColorGradingMode: 0
60 | m_ColorGradingLutSize: 32
61 | m_UseFastSRGBLinearConversion: 0
62 | m_ShadowType: 1
63 | m_LocalShadowsSupported: 0
64 | m_LocalShadowsAtlasResolution: 256
65 | m_MaxPixelLights: 0
66 | m_ShadowAtlasResolution: 256
67 | m_ShaderVariantLogLevel: 0
68 | m_VolumeFrameworkUpdateMode: 0
69 | m_ShadowCascades: 1
70 |
--------------------------------------------------------------------------------
/Assets/MenuCreator/UIToolkitRaycastChecker.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using UnityEngine;
3 | using UnityEngine.EventSystems;
4 | using UnityEngine.UIElements;
5 | #if UNITY_EDITOR
6 | using UnityEditor;
7 | #endif
8 |
9 | public static class UIToolkitRaycastChecker
10 | {
11 | private static HashSet _blockingElements = new HashSet();
12 |
13 | public static void RegisterBlockingElement(VisualElement blockingElement) =>
14 | _blockingElements.Add(blockingElement);
15 |
16 | public static void UnregisterBlockingElement(VisualElement blockingElement) =>
17 | _blockingElements.Remove(blockingElement);
18 |
19 | public static bool IsBlockingRaycasts(VisualElement element)
20 | {
21 | return _blockingElements.Contains(element) &&
22 | element.visible &&
23 | element.resolvedStyle.display == DisplayStyle.Flex;
24 | }
25 |
26 | public static bool IsPointerOverUI()
27 | {
28 | if (EventSystem.current.IsPointerOverGameObject())
29 | return true;
30 | foreach (var element in _blockingElements)
31 | {
32 | if (IsBlockingRaycasts(element) == false)
33 | continue;
34 |
35 | if (ContainsMouse(element))
36 | return true;
37 | }
38 |
39 | return false;
40 | }
41 |
42 | private static bool ContainsMouse(VisualElement element)
43 | {
44 | var mousePosition = Input.mousePosition;
45 | var scaledMousePosition = new Vector2(mousePosition.x / Screen.width, mousePosition.y / Screen.height);
46 |
47 | var flippedPosition = new Vector2(scaledMousePosition.x, 1 - scaledMousePosition.y);
48 | var adjustedPosition = flippedPosition * element.panel.visualTree.layout.size;
49 |
50 | var localPosition = element.WorldToLocal(adjustedPosition);
51 |
52 | return element.ContainsPoint(localPosition);
53 | }
54 |
55 | #if UNITY_EDITOR
56 | //This is used to reset the blocking elements set on playmode enter
57 | //to fix a bug if you have the quick enter playmode settings turned on
58 | //and don't unregister all your blocking elements before leaving playmode.
59 | [InitializeOnEnterPlayMode]
60 | public static void ResetBlockingElements()
61 | {
62 | _blockingElements = new HashSet();
63 | }
64 | #endif
65 | }
--------------------------------------------------------------------------------
/Assets/Settings/URP-Balanced-Renderer.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &-1878332245247344467
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: f62c9c65cf3354c93be831c8bc075510, type: 3}
13 | m_Name: SSAO
14 | m_EditorClassIdentifier:
15 | m_Active: 1
16 | m_Shader: {fileID: 0}
17 | m_Settings:
18 | Downsample: 1
19 | AfterOpaque: 0
20 | Source: 0
21 | NormalSamples: 0
22 | Intensity: 0.5
23 | DirectLightingStrength: 0.25
24 | Radius: 0.25
25 | SampleCount: 4
26 | --- !u!114 &11400000
27 | MonoBehaviour:
28 | m_ObjectHideFlags: 0
29 | m_CorrespondingSourceObject: {fileID: 0}
30 | m_PrefabInstance: {fileID: 0}
31 | m_PrefabAsset: {fileID: 0}
32 | m_GameObject: {fileID: 0}
33 | m_Enabled: 1
34 | m_EditorHideFlags: 0
35 | m_Script: {fileID: 11500000, guid: de640fe3d0db1804a85f9fc8f5cadab6, type: 3}
36 | m_Name: URP-Balanced-Renderer
37 | m_EditorClassIdentifier:
38 | debugShaders:
39 | debugReplacementPS: {fileID: 4800000, guid: cf852408f2e174538bcd9b7fda1c5ae7,
40 | type: 3}
41 | m_RendererFeatures:
42 | - {fileID: -1878332245247344467}
43 | m_RendererFeatureMap: adc0de57c6d2eee5
44 | m_UseNativeRenderPass: 0
45 | postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
46 | shaders:
47 | blitPS: {fileID: 4800000, guid: c17132b1f77d20942aa75f8429c0f8bc, type: 3}
48 | copyDepthPS: {fileID: 4800000, guid: d6dae50ee9e1bfa4db75f19f99355220, type: 3}
49 | screenSpaceShadowPS: {fileID: 0}
50 | samplingPS: {fileID: 4800000, guid: 04c410c9937594faa893a11dceb85f7e, type: 3}
51 | stencilDeferredPS: {fileID: 4800000, guid: e9155b26e1bc55942a41e518703fe304, type: 3}
52 | fallbackErrorPS: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3}
53 | materialErrorPS: {fileID: 4800000, guid: 5fd9a8feb75a4b5894c241777f519d4e, type: 3}
54 | coreBlitPS: {fileID: 0}
55 | coreBlitColorAndDepthPS: {fileID: 0}
56 | cameraMotionVector: {fileID: 0}
57 | objectMotionVector: {fileID: 0}
58 | m_OpaqueLayerMask:
59 | serializedVersion: 2
60 | m_Bits: 4294967295
61 | m_TransparentLayerMask:
62 | serializedVersion: 2
63 | m_Bits: 4294967295
64 | m_DefaultStencilState:
65 | overrideStencilState: 0
66 | stencilReference: 0
67 | stencilCompareFunction: 8
68 | passOperation: 2
69 | failOperation: 0
70 | zFailOperation: 0
71 | m_ShadowTransparentReceive: 1
72 | m_RenderingMode: 0
73 | m_DepthPrimingMode: 0
74 | m_AccurateGbufferNormals: 0
75 | m_ClusteredRendering: 0
76 | m_TileSize: 32
77 |
--------------------------------------------------------------------------------
/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: 14
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_VideoShadersIncludeMode: 2
32 | m_AlwaysIncludedShaders:
33 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
34 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0}
35 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0}
36 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0}
37 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
38 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
39 | - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0}
40 | m_PreloadedShaders: []
41 | m_PreloadShadersBatchTimeLimit: -1
42 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
43 | type: 0}
44 | m_CustomRenderPipeline: {fileID: 11400000, guid: 7b7fd9122c28c4d15b667c7040e3b3fd,
45 | type: 2}
46 | m_TransparencySortMode: 0
47 | m_TransparencySortAxis: {x: 0, y: 0, z: 1}
48 | m_DefaultRenderingPath: 1
49 | m_DefaultMobileRenderingPath: 1
50 | m_TierSettings: []
51 | m_LightmapStripping: 0
52 | m_FogStripping: 0
53 | m_InstancingStripping: 0
54 | m_LightmapKeepPlain: 1
55 | m_LightmapKeepDirCombined: 1
56 | m_LightmapKeepDynamicPlain: 1
57 | m_LightmapKeepDynamicDirCombined: 1
58 | m_LightmapKeepShadowMask: 1
59 | m_LightmapKeepSubtractive: 1
60 | m_FogKeepLinear: 1
61 | m_FogKeepExp: 1
62 | m_FogKeepExp2: 1
63 | m_AlbedoSwatchInfos: []
64 | m_LightsUseLinearIntensity: 1
65 | m_LightsUseColorTemperature: 1
66 | m_DefaultRenderingLayerMask: 1
67 | m_LogWhenShaderIsCompiled: 0
68 | m_SRPDefaultSettings:
69 | UnityEngine.Rendering.Universal.UniversalRenderPipeline: {fileID: 11400000, guid: 18dc0cd2c080841dea60987a38ce93fa,
70 | type: 2}
71 |
--------------------------------------------------------------------------------
/Assets/Settings/URP-HighFidelity-Renderer.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &-1878332245247344467
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: f62c9c65cf3354c93be831c8bc075510, type: 3}
13 | m_Name: SSAO
14 | m_EditorClassIdentifier:
15 | m_Active: 1
16 | m_Shader: {fileID: 4800000, guid: 0849e84e3d62649e8882e9d6f056a017, type: 3}
17 | m_Settings:
18 | Downsample: 0
19 | AfterOpaque: 0
20 | Source: 1
21 | NormalSamples: 1
22 | Intensity: 0.5
23 | DirectLightingStrength: 0.25
24 | Radius: 0.25
25 | SampleCount: 12
26 | --- !u!114 &11400000
27 | MonoBehaviour:
28 | m_ObjectHideFlags: 0
29 | m_CorrespondingSourceObject: {fileID: 0}
30 | m_PrefabInstance: {fileID: 0}
31 | m_PrefabAsset: {fileID: 0}
32 | m_GameObject: {fileID: 0}
33 | m_Enabled: 1
34 | m_EditorHideFlags: 0
35 | m_Script: {fileID: 11500000, guid: de640fe3d0db1804a85f9fc8f5cadab6, type: 3}
36 | m_Name: URP-HighFidelity-Renderer
37 | m_EditorClassIdentifier:
38 | debugShaders:
39 | debugReplacementPS: {fileID: 4800000, guid: cf852408f2e174538bcd9b7fda1c5ae7,
40 | type: 3}
41 | m_RendererFeatures:
42 | - {fileID: -1878332245247344467}
43 | m_RendererFeatureMap: adc0de57c6d2eee5
44 | m_UseNativeRenderPass: 0
45 | postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
46 | xrSystemData: {fileID: 11400000, guid: 60e1133243b97e347b653163a8c01b64, type: 2}
47 | shaders:
48 | blitPS: {fileID: 4800000, guid: c17132b1f77d20942aa75f8429c0f8bc, type: 3}
49 | copyDepthPS: {fileID: 4800000, guid: d6dae50ee9e1bfa4db75f19f99355220, type: 3}
50 | screenSpaceShadowPS: {fileID: 0}
51 | samplingPS: {fileID: 4800000, guid: 04c410c9937594faa893a11dceb85f7e, type: 3}
52 | stencilDeferredPS: {fileID: 4800000, guid: e9155b26e1bc55942a41e518703fe304, type: 3}
53 | fallbackErrorPS: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3}
54 | materialErrorPS: {fileID: 4800000, guid: 5fd9a8feb75a4b5894c241777f519d4e, type: 3}
55 | coreBlitPS: {fileID: 4800000, guid: 93446b5c5339d4f00b85c159e1159b7c, type: 3}
56 | coreBlitColorAndDepthPS: {fileID: 4800000, guid: d104b2fc1ca6445babb8e90b0758136b,
57 | type: 3}
58 | cameraMotionVector: {fileID: 4800000, guid: c56b7e0d4c7cb484e959caeeedae9bbf,
59 | type: 3}
60 | objectMotionVector: {fileID: 4800000, guid: 7b3ede40266cd49a395def176e1bc486,
61 | type: 3}
62 | m_AssetVersion: 1
63 | m_OpaqueLayerMask:
64 | serializedVersion: 2
65 | m_Bits: 4294967295
66 | m_TransparentLayerMask:
67 | serializedVersion: 2
68 | m_Bits: 4294967295
69 | m_DefaultStencilState:
70 | overrideStencilState: 0
71 | stencilReference: 0
72 | stencilCompareFunction: 8
73 | passOperation: 2
74 | failOperation: 0
75 | zFailOperation: 0
76 | m_ShadowTransparentReceive: 1
77 | m_RenderingMode: 0
78 | m_DepthPrimingMode: 0
79 | m_AccurateGbufferNormals: 0
80 | m_ClusteredRendering: 0
81 | m_TileSize: 32
82 | m_IntermediateTextureMode: 1
83 |
--------------------------------------------------------------------------------
/Assets/MenuDemo.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 |
5 | //EXTEND FROM MENU CREATOR
6 | public class MenuDemo : MenuCreator
7 | {
8 | // Start is called before the first frame update
9 | void Start()
10 | {
11 | CreateFirstDemoMenu();
12 | }
13 |
14 | public void CreateFirstDemoMenu()
15 | {
16 | StartBasicMenu("Main Menu");
17 | AddTwoButtonsWhenPossible(
18 | new MenuButton("First Button", () => {Debug.Log("Pressed First Button");}, ButtonColors.ButtonGrey),
19 | new MenuButton("Second Button", () => {Debug.Log("Pressed Second Button");}, ButtonColors.ButtonBlueAlt)
20 | );
21 |
22 | AddSpacer();
23 | var addedLabel = AddBigLabel("This label changes with the text field/slider values!");
24 | AddSpacer();
25 | AddTextField("Text Field", evt => { addedLabel.text = $"Text Field is: {evt.newValue}";},"Default Text Field Text");
26 | AddSpacer();
27 | AddSliderInt("Slider",0,0,10, evt => { addedLabel.text = $"Slider is set to {evt.newValue}";});
28 | AddSpacer();
29 | AddButton(new MenuButton("Other Menu", () =>
30 | {
31 | ChangeToMenu(CreateOtherMenu);
32 | }));
33 | }
34 |
35 | public void CreateOtherMenu()
36 | {
37 | StartBasicMenu("Other Menu");
38 | AddBigLabel($"The loading screen will wait until you press Spacebar.{System.Environment.NewLine}If you press Backspace it will fail.");
39 | AddSpacer();
40 | AddSpacer();
41 | AddButton(new MenuButton("Loading Screen", () =>
42 | {
43 | ShowLoadingWithFailPossibility("Waiting for you to press Spacebar. Don't press Backspace!",PressingSpacebar,() => { ChangeToMenu(AfterLoading); },PressingBackspace,() =>{ChangeToMenu(FailedLoading);});
44 | },ButtonColors.ButtonYellow));
45 | AddSpacer();
46 | AddButton(new MenuButton("First Menu", () => {ChangeToMenu(CreateFirstDemoMenu);}));
47 |
48 | AddButton(new MenuButton("Hide Menu", () => {HideMenu(() =>
49 | {
50 | Debug.Log("This debug log will be triggered when menu is fully hidden.");
51 | StartCoroutine(RestartDemo());
52 | },0.5f);}, ButtonColors.ButtonOrange));
53 | }
54 |
55 | public void AfterLoading()
56 | {
57 | StartBasicMenu("Good Job");
58 | AddBigLabel("Way to press that spacebar!");
59 | AddSpacer();
60 | AddButton(new MenuButton("Back",() =>{ChangeToMenu(CreateOtherMenu);}));
61 | }
62 |
63 | public void FailedLoading()
64 | {
65 | StartBasicMenu("Damn!");
66 | AddBigLabel("You had to press backspace didn't you? :(");
67 | AddSpacer();
68 | AddButton(new MenuButton("Back",() =>{ChangeToMenu(CreateOtherMenu);}, ButtonColors.ButtonRed));
69 | }
70 |
71 | public bool PressingSpacebar()
72 | {
73 | return Input.GetKey(KeyCode.Space);
74 | }
75 |
76 | public bool PressingBackspace()
77 | {
78 | return Input.GetKey(KeyCode.Backspace);
79 | }
80 |
81 | IEnumerator RestartDemo()
82 | {
83 | yield return new WaitForSeconds(3);
84 | CreateFirstDemoMenu();
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/Assets/Settings/SampleSceneProfile.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &-7893295128165547882
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 3
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: 0b2db86121404754db890f4c8dfe81b2, type: 3}
13 | m_Name: Bloom
14 | m_EditorClassIdentifier:
15 | active: 1
16 | m_AdvancedMode: 0
17 | threshold:
18 | m_OverrideState: 1
19 | m_Value: 1
20 | min: 0
21 | intensity:
22 | m_OverrideState: 1
23 | m_Value: 1
24 | min: 0
25 | scatter:
26 | m_OverrideState: 0
27 | m_Value: 0.7
28 | min: 0
29 | max: 1
30 | clamp:
31 | m_OverrideState: 0
32 | m_Value: 65472
33 | min: 0
34 | tint:
35 | m_OverrideState: 0
36 | m_Value: {r: 1, g: 1, b: 1, a: 1}
37 | hdr: 0
38 | showAlpha: 0
39 | showEyeDropper: 1
40 | highQualityFiltering:
41 | m_OverrideState: 0
42 | m_Value: 0
43 | skipIterations:
44 | m_OverrideState: 0
45 | m_Value: 1
46 | min: 0
47 | max: 16
48 | dirtTexture:
49 | m_OverrideState: 0
50 | m_Value: {fileID: 0}
51 | dirtIntensity:
52 | m_OverrideState: 0
53 | m_Value: 0
54 | min: 0
55 | --- !u!114 &-7011558710299706105
56 | MonoBehaviour:
57 | m_ObjectHideFlags: 3
58 | m_CorrespondingSourceObject: {fileID: 0}
59 | m_PrefabInstance: {fileID: 0}
60 | m_PrefabAsset: {fileID: 0}
61 | m_GameObject: {fileID: 0}
62 | m_Enabled: 1
63 | m_EditorHideFlags: 0
64 | m_Script: {fileID: 11500000, guid: 899c54efeace73346a0a16faa3afe726, type: 3}
65 | m_Name: Vignette
66 | m_EditorClassIdentifier:
67 | active: 1
68 | m_AdvancedMode: 0
69 | color:
70 | m_OverrideState: 0
71 | m_Value: {r: 0, g: 0, b: 0, a: 1}
72 | hdr: 0
73 | showAlpha: 0
74 | showEyeDropper: 1
75 | center:
76 | m_OverrideState: 0
77 | m_Value: {x: 0.5, y: 0.5}
78 | intensity:
79 | m_OverrideState: 1
80 | m_Value: 0.25
81 | min: 0
82 | max: 1
83 | smoothness:
84 | m_OverrideState: 1
85 | m_Value: 0.4
86 | min: 0.01
87 | max: 1
88 | rounded:
89 | m_OverrideState: 0
90 | m_Value: 0
91 | --- !u!114 &11400000
92 | MonoBehaviour:
93 | m_ObjectHideFlags: 0
94 | m_CorrespondingSourceObject: {fileID: 0}
95 | m_PrefabInstance: {fileID: 0}
96 | m_PrefabAsset: {fileID: 0}
97 | m_GameObject: {fileID: 0}
98 | m_Enabled: 1
99 | m_EditorHideFlags: 0
100 | m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3}
101 | m_Name: SampleSceneProfile
102 | m_EditorClassIdentifier:
103 | components:
104 | - {fileID: 849379129802519247}
105 | - {fileID: -7893295128165547882}
106 | - {fileID: -7011558710299706105}
107 | --- !u!114 &849379129802519247
108 | MonoBehaviour:
109 | m_ObjectHideFlags: 3
110 | m_CorrespondingSourceObject: {fileID: 0}
111 | m_PrefabInstance: {fileID: 0}
112 | m_PrefabAsset: {fileID: 0}
113 | m_GameObject: {fileID: 0}
114 | m_Enabled: 1
115 | m_EditorHideFlags: 0
116 | m_Script: {fileID: 11500000, guid: 97c23e3b12dc18c42a140437e53d3951, type: 3}
117 | m_Name: Tonemapping
118 | m_EditorClassIdentifier:
119 | active: 1
120 | m_AdvancedMode: 0
121 | mode:
122 | m_OverrideState: 1
123 | m_Value: 1
124 |
--------------------------------------------------------------------------------
/Assets/MenuCreator/loading.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: db524745f7e2b734b91c1281f6407ca7
3 | TextureImporter:
4 | internalIDToNameTable: []
5 | externalObjects: {}
6 | serializedVersion: 11
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 | vTOnly: 0
27 | ignoreMasterTextureLimit: 0
28 | grayScaleToAlpha: 0
29 | generateCubemap: 6
30 | cubemapConvolution: 0
31 | seamlessCubemap: 0
32 | textureFormat: 1
33 | maxTextureSize: 2048
34 | textureSettings:
35 | serializedVersion: 2
36 | filterMode: 1
37 | aniso: 1
38 | mipBias: 0
39 | wrapU: 1
40 | wrapV: 1
41 | wrapW: 0
42 | nPOTScale: 0
43 | lightmap: 0
44 | compressionQuality: 50
45 | spriteMode: 1
46 | spriteExtrude: 1
47 | spriteMeshType: 1
48 | alignment: 0
49 | spritePivot: {x: 0.5, y: 0.5}
50 | spritePixelsToUnits: 100
51 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
52 | spriteGenerateFallbackPhysicsShape: 1
53 | alphaUsage: 1
54 | alphaIsTransparency: 1
55 | spriteTessellationDetail: -1
56 | textureType: 8
57 | textureShape: 1
58 | singleChannelComponent: 0
59 | flipbookRows: 1
60 | flipbookColumns: 1
61 | maxTextureSizeSet: 0
62 | compressionQualitySet: 0
63 | textureFormatSet: 0
64 | ignorePngGamma: 0
65 | applyGammaDecoding: 0
66 | platformSettings:
67 | - serializedVersion: 3
68 | buildTarget: DefaultTexturePlatform
69 | maxTextureSize: 64
70 | resizeAlgorithm: 0
71 | textureFormat: -1
72 | textureCompression: 1
73 | compressionQuality: 50
74 | crunchedCompression: 0
75 | allowsAlphaSplitting: 0
76 | overridden: 0
77 | androidETC2FallbackOverride: 0
78 | forceMaximumCompressionQuality_BC6H_BC7: 0
79 | - serializedVersion: 3
80 | buildTarget: Standalone
81 | maxTextureSize: 2048
82 | resizeAlgorithm: 0
83 | textureFormat: -1
84 | textureCompression: 1
85 | compressionQuality: 50
86 | crunchedCompression: 0
87 | allowsAlphaSplitting: 0
88 | overridden: 0
89 | androidETC2FallbackOverride: 0
90 | forceMaximumCompressionQuality_BC6H_BC7: 0
91 | - serializedVersion: 3
92 | buildTarget: Server
93 | maxTextureSize: 2048
94 | resizeAlgorithm: 0
95 | textureFormat: -1
96 | textureCompression: 1
97 | compressionQuality: 50
98 | crunchedCompression: 0
99 | allowsAlphaSplitting: 0
100 | overridden: 0
101 | androidETC2FallbackOverride: 0
102 | forceMaximumCompressionQuality_BC6H_BC7: 0
103 | - serializedVersion: 3
104 | buildTarget: WebGL
105 | maxTextureSize: 2048
106 | resizeAlgorithm: 0
107 | textureFormat: -1
108 | textureCompression: 1
109 | compressionQuality: 50
110 | crunchedCompression: 0
111 | allowsAlphaSplitting: 0
112 | overridden: 0
113 | androidETC2FallbackOverride: 0
114 | forceMaximumCompressionQuality_BC6H_BC7: 0
115 | spriteSheet:
116 | serializedVersion: 2
117 | sprites: []
118 | outline: []
119 | physicsShape: []
120 | bones: []
121 | spriteID: 5e97eb03825dee720800000000000000
122 | internalID: 0
123 | vertices: []
124 | indices:
125 | edges: []
126 | weights: []
127 | secondaryTextures: []
128 | nameFileIdTable: {}
129 | spritePackingTag:
130 | pSDRemoveMatte: 0
131 | pSDShowRemoveMatteOption: 0
132 | userData:
133 | assetBundleName:
134 | assetBundleVariant:
135 |
--------------------------------------------------------------------------------
/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: 2
8 | m_QualitySettings:
9 | - serializedVersion: 2
10 | name: Performant
11 | pixelLightCount: 0
12 | shadows: 0
13 | shadowResolution: 0
14 | shadowProjection: 1
15 | shadowCascades: 1
16 | shadowDistance: 20
17 | shadowNearPlaneOffset: 3
18 | shadowCascade2Split: 0.33333334
19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
20 | shadowmaskMode: 0
21 | skinWeights: 2
22 | textureQuality: 0
23 | anisotropicTextures: 0
24 | antiAliasing: 0
25 | softParticles: 0
26 | softVegetation: 0
27 | realtimeReflectionProbes: 0
28 | billboardsFaceCameraPosition: 0
29 | vSyncCount: 0
30 | lodBias: 0.4
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 | customRenderPipeline: {fileID: 11400000, guid: d0e2fc18fe036412f8223b3b3d9ad574,
44 | type: 2}
45 | excludedTargetPlatforms: []
46 | - serializedVersion: 2
47 | name: Balanced
48 | pixelLightCount: 1
49 | shadows: 1
50 | shadowResolution: 0
51 | shadowProjection: 1
52 | shadowCascades: 1
53 | shadowDistance: 20
54 | shadowNearPlaneOffset: 3
55 | shadowCascade2Split: 0.33333334
56 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
57 | shadowmaskMode: 0
58 | skinWeights: 4
59 | textureQuality: 0
60 | anisotropicTextures: 1
61 | antiAliasing: 0
62 | softParticles: 0
63 | softVegetation: 0
64 | realtimeReflectionProbes: 0
65 | billboardsFaceCameraPosition: 0
66 | vSyncCount: 1
67 | lodBias: 1
68 | maximumLODLevel: 0
69 | streamingMipmapsActive: 0
70 | streamingMipmapsAddAllCameras: 1
71 | streamingMipmapsMemoryBudget: 512
72 | streamingMipmapsRenderersPerFrame: 512
73 | streamingMipmapsMaxLevelReduction: 2
74 | streamingMipmapsMaxFileIORequests: 1024
75 | particleRaycastBudget: 64
76 | asyncUploadTimeSlice: 2
77 | asyncUploadBufferSize: 16
78 | asyncUploadPersistentBuffer: 1
79 | resolutionScalingFixedDPIFactor: 1
80 | customRenderPipeline: {fileID: 11400000, guid: e1260c1148f6143b28bae5ace5e9c5d1,
81 | type: 2}
82 | excludedTargetPlatforms: []
83 | - serializedVersion: 2
84 | name: High Fidelity
85 | pixelLightCount: 2
86 | shadows: 2
87 | shadowResolution: 1
88 | shadowProjection: 1
89 | shadowCascades: 2
90 | shadowDistance: 40
91 | shadowNearPlaneOffset: 3
92 | shadowCascade2Split: 0.33333334
93 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
94 | shadowmaskMode: 1
95 | skinWeights: 255
96 | textureQuality: 0
97 | anisotropicTextures: 2
98 | antiAliasing: 4
99 | softParticles: 0
100 | softVegetation: 1
101 | realtimeReflectionProbes: 1
102 | billboardsFaceCameraPosition: 1
103 | vSyncCount: 1
104 | lodBias: 2
105 | maximumLODLevel: 0
106 | streamingMipmapsActive: 0
107 | streamingMipmapsAddAllCameras: 1
108 | streamingMipmapsMemoryBudget: 512
109 | streamingMipmapsRenderersPerFrame: 512
110 | streamingMipmapsMaxLevelReduction: 2
111 | streamingMipmapsMaxFileIORequests: 1024
112 | particleRaycastBudget: 2048
113 | asyncUploadTimeSlice: 2
114 | asyncUploadBufferSize: 16
115 | asyncUploadPersistentBuffer: 1
116 | resolutionScalingFixedDPIFactor: 1
117 | customRenderPipeline: {fileID: 11400000, guid: 7b7fd9122c28c4d15b667c7040e3b3fd,
118 | type: 2}
119 | excludedTargetPlatforms: []
120 | m_PerPlatformDefaultQuality:
121 | Android: 1
122 | CloudRendering: 2
123 | Lumin: 2
124 | GameCoreScarlett: 2
125 | GameCoreXboxOne: 2
126 | Nintendo Switch: 2
127 | PS4: 2
128 | PS5: 2
129 | Server: 0
130 | Stadia: 2
131 | Standalone: 2
132 | WebGL: 1
133 | Windows Store Apps: 2
134 | XboxOne: 2
135 | iPhone: 1
136 | tvOS: 1
137 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModuleSprite.cs:
--------------------------------------------------------------------------------
1 | // Author: Daniele Giardini - http://www.demigiant.com
2 | // Created: 2018/07/13
3 |
4 | #if true && (UNITY_4_3 || UNITY_4_4 || UNITY_4_5 || UNITY_4_6 || UNITY_5 || UNITY_2017_1_OR_NEWER) // MODULE_MARKER
5 | using System;
6 | using UnityEngine;
7 | using DG.Tweening.Core;
8 | using DG.Tweening.Plugins.Options;
9 |
10 | #pragma warning disable 1591
11 | namespace DG.Tweening
12 | {
13 | public static class DOTweenModuleSprite
14 | {
15 | #region Shortcuts
16 |
17 | #region SpriteRenderer
18 |
19 | /// Tweens a SpriteRenderer's color to the given value.
20 | /// Also stores the spriteRenderer as the tween's target so it can be used for filtered operations
21 | /// The end value to reachThe duration of the tween
22 | public static TweenerCore DOColor(this SpriteRenderer target, Color endValue, float duration)
23 | {
24 | TweenerCore t = DOTween.To(() => target.color, x => target.color = x, endValue, duration);
25 | t.SetTarget(target);
26 | return t;
27 | }
28 |
29 | /// Tweens a Material's alpha color to the given value.
30 | /// Also stores the spriteRenderer as the tween's target so it can be used for filtered operations
31 | /// The end value to reachThe duration of the tween
32 | public static TweenerCore DOFade(this SpriteRenderer target, float endValue, float duration)
33 | {
34 | TweenerCore t = DOTween.ToAlpha(() => target.color, x => target.color = x, endValue, duration);
35 | t.SetTarget(target);
36 | return t;
37 | }
38 |
39 | /// Tweens a SpriteRenderer's color using the given gradient
40 | /// (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
41 | /// Also stores the image as the tween's target so it can be used for filtered operations
42 | /// The gradient to useThe duration of the tween
43 | public static Sequence DOGradientColor(this SpriteRenderer target, Gradient gradient, float duration)
44 | {
45 | Sequence s = DOTween.Sequence();
46 | GradientColorKey[] colors = gradient.colorKeys;
47 | int len = colors.Length;
48 | for (int i = 0; i < len; ++i) {
49 | GradientColorKey c = colors[i];
50 | if (i == 0 && c.time <= 0) {
51 | target.color = c.color;
52 | continue;
53 | }
54 | float colorDuration = i == len - 1
55 | ? duration - s.Duration(false) // Verifies that total duration is correct
56 | : duration * (i == 0 ? c.time : c.time - colors[i - 1].time);
57 | s.Append(target.DOColor(c.color, colorDuration).SetEase(Ease.Linear));
58 | }
59 | s.SetTarget(target);
60 | return s;
61 | }
62 |
63 | #endregion
64 |
65 | #region Blendables
66 |
67 | #region SpriteRenderer
68 |
69 | /// Tweens a SpriteRenderer's color to the given value,
70 | /// in a way that allows other DOBlendableColor tweens to work together on the same target,
71 | /// instead than fight each other as multiple DOColor would do.
72 | /// Also stores the SpriteRenderer as the tween's target so it can be used for filtered operations
73 | /// The value to tween toThe duration of the tween
74 | public static Tweener DOBlendableColor(this SpriteRenderer target, Color endValue, float duration)
75 | {
76 | endValue = endValue - target.color;
77 | Color to = new Color(0, 0, 0, 0);
78 | return DOTween.To(() => to, x => {
79 | Color diff = x - to;
80 | to = x;
81 | target.color += diff;
82 | }, endValue, duration)
83 | .Blendable().SetTarget(target);
84 | }
85 |
86 | #endregion
87 |
88 | #endregion
89 |
90 | #endregion
91 | }
92 | }
93 | #endif
94 |
--------------------------------------------------------------------------------
/ProjectSettings/SceneTemplateSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "templatePinStates": [],
3 | "dependencyTypeInfos": [
4 | {
5 | "userAdded": false,
6 | "type": "UnityEngine.AnimationClip",
7 | "ignore": false,
8 | "defaultInstantiationMode": 0,
9 | "supportsModification": true
10 | },
11 | {
12 | "userAdded": false,
13 | "type": "UnityEditor.Animations.AnimatorController",
14 | "ignore": false,
15 | "defaultInstantiationMode": 0,
16 | "supportsModification": true
17 | },
18 | {
19 | "userAdded": false,
20 | "type": "UnityEngine.AnimatorOverrideController",
21 | "ignore": false,
22 | "defaultInstantiationMode": 0,
23 | "supportsModification": true
24 | },
25 | {
26 | "userAdded": false,
27 | "type": "UnityEditor.Audio.AudioMixerController",
28 | "ignore": false,
29 | "defaultInstantiationMode": 0,
30 | "supportsModification": true
31 | },
32 | {
33 | "userAdded": false,
34 | "type": "UnityEngine.ComputeShader",
35 | "ignore": true,
36 | "defaultInstantiationMode": 1,
37 | "supportsModification": true
38 | },
39 | {
40 | "userAdded": false,
41 | "type": "UnityEngine.Cubemap",
42 | "ignore": false,
43 | "defaultInstantiationMode": 0,
44 | "supportsModification": true
45 | },
46 | {
47 | "userAdded": false,
48 | "type": "UnityEngine.GameObject",
49 | "ignore": false,
50 | "defaultInstantiationMode": 0,
51 | "supportsModification": true
52 | },
53 | {
54 | "userAdded": false,
55 | "type": "UnityEditor.LightingDataAsset",
56 | "ignore": false,
57 | "defaultInstantiationMode": 0,
58 | "supportsModification": false
59 | },
60 | {
61 | "userAdded": false,
62 | "type": "UnityEngine.LightingSettings",
63 | "ignore": false,
64 | "defaultInstantiationMode": 0,
65 | "supportsModification": true
66 | },
67 | {
68 | "userAdded": false,
69 | "type": "UnityEngine.Material",
70 | "ignore": false,
71 | "defaultInstantiationMode": 0,
72 | "supportsModification": true
73 | },
74 | {
75 | "userAdded": false,
76 | "type": "UnityEditor.MonoScript",
77 | "ignore": true,
78 | "defaultInstantiationMode": 1,
79 | "supportsModification": true
80 | },
81 | {
82 | "userAdded": false,
83 | "type": "UnityEngine.PhysicMaterial",
84 | "ignore": false,
85 | "defaultInstantiationMode": 0,
86 | "supportsModification": true
87 | },
88 | {
89 | "userAdded": false,
90 | "type": "UnityEngine.PhysicsMaterial2D",
91 | "ignore": false,
92 | "defaultInstantiationMode": 0,
93 | "supportsModification": true
94 | },
95 | {
96 | "userAdded": false,
97 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile",
98 | "ignore": false,
99 | "defaultInstantiationMode": 0,
100 | "supportsModification": true
101 | },
102 | {
103 | "userAdded": false,
104 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources",
105 | "ignore": false,
106 | "defaultInstantiationMode": 0,
107 | "supportsModification": true
108 | },
109 | {
110 | "userAdded": false,
111 | "type": "UnityEngine.Rendering.VolumeProfile",
112 | "ignore": false,
113 | "defaultInstantiationMode": 0,
114 | "supportsModification": true
115 | },
116 | {
117 | "userAdded": false,
118 | "type": "UnityEditor.SceneAsset",
119 | "ignore": false,
120 | "defaultInstantiationMode": 0,
121 | "supportsModification": false
122 | },
123 | {
124 | "userAdded": false,
125 | "type": "UnityEngine.Shader",
126 | "ignore": true,
127 | "defaultInstantiationMode": 1,
128 | "supportsModification": true
129 | },
130 | {
131 | "userAdded": false,
132 | "type": "UnityEngine.ShaderVariantCollection",
133 | "ignore": true,
134 | "defaultInstantiationMode": 1,
135 | "supportsModification": true
136 | },
137 | {
138 | "userAdded": false,
139 | "type": "UnityEngine.Texture",
140 | "ignore": false,
141 | "defaultInstantiationMode": 0,
142 | "supportsModification": true
143 | },
144 | {
145 | "userAdded": false,
146 | "type": "UnityEngine.Texture2D",
147 | "ignore": false,
148 | "defaultInstantiationMode": 0,
149 | "supportsModification": true
150 | },
151 | {
152 | "userAdded": false,
153 | "type": "UnityEngine.Timeline.TimelineAsset",
154 | "ignore": false,
155 | "defaultInstantiationMode": 0,
156 | "supportsModification": true
157 | }
158 | ],
159 | "defaultDependencyTypeInfo": {
160 | "userAdded": false,
161 | "type": "",
162 | "ignore": false,
163 | "defaultInstantiationMode": 1,
164 | "supportsModification": true
165 | },
166 | "newSceneOverride": 0
167 | }
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Editor/DOTweenEditor.XML:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DOTweenEditor
5 |
6 |
7 |
8 |
9 | Starts the update loop of tween in the editor. Has no effect during playMode.
10 |
11 | Eventual callback to call after every update
12 |
13 |
14 |
15 | Stops the update loop and clears the onPreviewUpdated callback.
16 |
17 | If TRUE also resets the tweened objects to their original state.
18 | Note that this works by calling Rewind on all tweens, so it will work correctly
19 | only if you have a single tween type per object and it wasn't killed
20 | If TRUE also kills any cached tween
21 |
22 |
23 |
24 | Readies the tween for editor preview by setting its UpdateType to Manual plus eventual extra settings.
25 |
26 | The tween to ready
27 | If TRUE (recommended) removes all callbacks (OnComplete/Rewind/etc)
28 | If TRUE prevents the tween from being auto-killed at completion
29 | If TRUE starts playing the tween immediately
30 |
31 |
32 | Full major version + first minor version (ex: 2018.1f)
33 |
34 |
35 | Major version
36 |
37 |
38 | First minor version (ex: in 2018.1 it would be 1)
39 |
40 |
41 |
42 | Checks that the given editor texture use the correct import settings,
43 | and applies them if they're incorrect.
44 |
45 |
46 |
47 |
48 | Returns TRUE if setup is required
49 |
50 |
51 |
52 |
53 | Returns TRUE if the file/directory at the given path exists.
54 |
55 | Path, relative to Unity's project folder
56 |
57 |
58 |
59 |
60 | Converts the given project-relative path to a full path,
61 | with backward (\) slashes).
62 |
63 |
64 |
65 |
66 | Converts the given full path to a path usable with AssetDatabase methods
67 | (relative to Unity's project folder, and with the correct Unity forward (/) slashes).
68 |
69 |
70 |
71 |
72 | Connects to a asset.
73 | If the asset already exists at the given path, loads it and returns it.
74 | Otherwise, either returns NULL or automatically creates it before loading and returning it
75 | (depending on the given parameters).
76 |
77 | Asset type
78 | File path (relative to Unity's project folder)
79 | If TRUE and the requested asset doesn't exist, forces its creation
80 |
81 |
82 |
83 | Full path for the given loaded assembly, assembly file included
84 |
85 |
86 |
87 |
88 | Adds the given global define if it's not already present
89 |
90 |
91 |
92 |
93 | Removes the given global define if it's present
94 |
95 |
96 |
97 |
98 | Returns TRUE if the given global define is present in all the
99 | or only in the given , depending on passed parameters.
100 |
101 |
102 | to use. Leave NULL to check in all of them.
103 |
104 |
105 |
106 | Not used as menu item anymore, but as a utiity function
107 |
108 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModuleUtils.cs:
--------------------------------------------------------------------------------
1 | // Author: Daniele Giardini - http://www.demigiant.com
2 | // Created: 2018/07/13
3 |
4 | using System;
5 | using System.Reflection;
6 | using UnityEngine;
7 | using DG.Tweening.Core;
8 | using DG.Tweening.Plugins.Core.PathCore;
9 | using DG.Tweening.Plugins.Options;
10 |
11 | #pragma warning disable 1591
12 | namespace DG.Tweening
13 | {
14 | ///
15 | /// Utility functions that deal with available Modules.
16 | /// Modules defines:
17 | /// - DOTAUDIO
18 | /// - DOTPHYSICS
19 | /// - DOTPHYSICS2D
20 | /// - DOTSPRITE
21 | /// - DOTUI
22 | /// Extra defines set and used for implementation of external assets:
23 | /// - DOTWEEN_TMP ► TextMesh Pro
24 | /// - DOTWEEN_TK2D ► 2D Toolkit
25 | ///
26 | public static class DOTweenModuleUtils
27 | {
28 | static bool _initialized;
29 |
30 | #region Reflection
31 |
32 | ///
33 | /// Called via Reflection by DOTweenComponent on Awake
34 | ///
35 | #if UNITY_2018_1_OR_NEWER
36 | [UnityEngine.Scripting.Preserve]
37 | #endif
38 | public static void Init()
39 | {
40 | if (_initialized) return;
41 |
42 | _initialized = true;
43 | DOTweenExternalCommand.SetOrientationOnPath += Physics.SetOrientationOnPath;
44 |
45 | #if UNITY_EDITOR
46 | #if UNITY_4_3 || UNITY_4_4 || UNITY_4_5 || UNITY_4_6 || UNITY_5 || UNITY_2017_1
47 | UnityEditor.EditorApplication.playmodeStateChanged += PlaymodeStateChanged;
48 | #else
49 | UnityEditor.EditorApplication.playModeStateChanged += PlaymodeStateChanged;
50 | #endif
51 | #endif
52 | }
53 |
54 | #if UNITY_2018_1_OR_NEWER
55 | #pragma warning disable
56 | [UnityEngine.Scripting.Preserve]
57 | // Just used to preserve methods when building, never called
58 | static void Preserver()
59 | {
60 | Assembly[] loadedAssemblies = AppDomain.CurrentDomain.GetAssemblies();
61 | MethodInfo mi = typeof(MonoBehaviour).GetMethod("Stub");
62 | }
63 | #pragma warning restore
64 | #endif
65 |
66 | #endregion
67 |
68 | #if UNITY_EDITOR
69 | // Fires OnApplicationPause in DOTweenComponent even when Editor is paused (otherwise it's only fired at runtime)
70 | #if UNITY_4_3 || UNITY_4_4 || UNITY_4_5 || UNITY_4_6 || UNITY_5 || UNITY_2017_1
71 | static void PlaymodeStateChanged()
72 | #else
73 | static void PlaymodeStateChanged(UnityEditor.PlayModeStateChange state)
74 | #endif
75 | {
76 | if (DOTween.instance == null) return;
77 | DOTween.instance.OnApplicationPause(UnityEditor.EditorApplication.isPaused);
78 | }
79 | #endif
80 |
81 | // █████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
82 | // ███ INTERNAL CLASSES ████████████████████████████████████████████████████████████████████████████████████████████████
83 | // █████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
84 |
85 | public static class Physics
86 | {
87 | // Called via DOTweenExternalCommand callback
88 | public static void SetOrientationOnPath(PathOptions options, Tween t, Quaternion newRot, Transform trans)
89 | {
90 | #if true // PHYSICS_MARKER
91 | if (options.isRigidbody) ((Rigidbody)t.target).rotation = newRot;
92 | else trans.rotation = newRot;
93 | #else
94 | trans.rotation = newRot;
95 | #endif
96 | }
97 |
98 | // Returns FALSE if the DOTween's Physics2D Module is disabled, or if there's no Rigidbody2D attached
99 | public static bool HasRigidbody2D(Component target)
100 | {
101 | #if true // PHYSICS2D_MARKER
102 | return target.GetComponent() != null;
103 | #else
104 | return false;
105 | #endif
106 | }
107 |
108 | #region Called via Reflection
109 |
110 |
111 | // Called via Reflection by DOTweenPathInspector
112 | // Returns FALSE if the DOTween's Physics Module is disabled, or if there's no rigidbody attached
113 | #if UNITY_2018_1_OR_NEWER
114 | [UnityEngine.Scripting.Preserve]
115 | #endif
116 | public static bool HasRigidbody(Component target)
117 | {
118 | #if true // PHYSICS_MARKER
119 | return target.GetComponent() != null;
120 | #else
121 | return false;
122 | #endif
123 | }
124 |
125 | // Called via Reflection by DOTweenPath
126 | #if UNITY_2018_1_OR_NEWER
127 | [UnityEngine.Scripting.Preserve]
128 | #endif
129 | public static TweenerCore CreateDOTweenPathTween(
130 | MonoBehaviour target, bool tweenRigidbody, bool isLocal, Path path, float duration, PathMode pathMode
131 | ){
132 | TweenerCore t = null;
133 | bool rBodyFoundAndTweened = false;
134 | #if true // PHYSICS_MARKER
135 | if (tweenRigidbody) {
136 | Rigidbody rBody = target.GetComponent();
137 | if (rBody != null) {
138 | rBodyFoundAndTweened = true;
139 | t = isLocal
140 | ? rBody.DOLocalPath(path, duration, pathMode)
141 | : rBody.DOPath(path, duration, pathMode);
142 | }
143 | }
144 | #endif
145 | #if true // PHYSICS2D_MARKER
146 | if (!rBodyFoundAndTweened && tweenRigidbody) {
147 | Rigidbody2D rBody2D = target.GetComponent();
148 | if (rBody2D != null) {
149 | rBodyFoundAndTweened = true;
150 | t = isLocal
151 | ? rBody2D.DOLocalPath(path, duration, pathMode)
152 | : rBody2D.DOPath(path, duration, pathMode);
153 | }
154 | }
155 | #endif
156 | if (!rBodyFoundAndTweened) {
157 | t = isLocal
158 | ? target.transform.DOLocalPath(path, duration, pathMode)
159 | : target.transform.DOPath(path, duration, pathMode);
160 | }
161 | return t;
162 | }
163 |
164 | #endregion
165 | }
166 | }
167 | }
168 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModuleEPOOutline.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | #if false || EPO_DOTWEEN // MODULE_MARKER
4 |
5 | using EPOOutline;
6 | using DG.Tweening.Plugins.Options;
7 | using DG.Tweening;
8 | using DG.Tweening.Core;
9 |
10 | namespace DG.Tweening
11 | {
12 | public static class DOTweenModuleEPOOutline
13 | {
14 | public static int DOKill(this SerializedPass target, bool complete)
15 | {
16 | return DOTween.Kill(target, complete);
17 | }
18 |
19 | public static TweenerCore DOFloat(this SerializedPass target, string propertyName, float endValue, float duration)
20 | {
21 | var tweener = DOTween.To(() => target.GetFloat(propertyName), x => target.SetFloat(propertyName, x), endValue, duration);
22 | tweener.SetOptions(true).SetTarget(target);
23 | return tweener;
24 | }
25 |
26 | public static TweenerCore DOFade(this SerializedPass target, string propertyName, float endValue, float duration)
27 | {
28 | var tweener = DOTween.ToAlpha(() => target.GetColor(propertyName), x => target.SetColor(propertyName, x), endValue, duration);
29 | tweener.SetOptions(true).SetTarget(target);
30 | return tweener;
31 | }
32 |
33 | public static TweenerCore DOColor(this SerializedPass target, string propertyName, Color endValue, float duration)
34 | {
35 | var tweener = DOTween.To(() => target.GetColor(propertyName), x => target.SetColor(propertyName, x), endValue, duration);
36 | tweener.SetOptions(false).SetTarget(target);
37 | return tweener;
38 | }
39 |
40 | public static TweenerCore DOVector(this SerializedPass target, string propertyName, Vector4 endValue, float duration)
41 | {
42 | var tweener = DOTween.To(() => target.GetVector(propertyName), x => target.SetVector(propertyName, x), endValue, duration);
43 | tweener.SetOptions(false).SetTarget(target);
44 | return tweener;
45 | }
46 |
47 | public static TweenerCore DOFloat(this SerializedPass target, int propertyId, float endValue, float duration)
48 | {
49 | var tweener = DOTween.To(() => target.GetFloat(propertyId), x => target.SetFloat(propertyId, x), endValue, duration);
50 | tweener.SetOptions(true).SetTarget(target);
51 | return tweener;
52 | }
53 |
54 | public static TweenerCore DOFade(this SerializedPass target, int propertyId, float endValue, float duration)
55 | {
56 | var tweener = DOTween.ToAlpha(() => target.GetColor(propertyId), x => target.SetColor(propertyId, x), endValue, duration);
57 | tweener.SetOptions(true).SetTarget(target);
58 | return tweener;
59 | }
60 |
61 | public static TweenerCore DOColor(this SerializedPass target, int propertyId, Color endValue, float duration)
62 | {
63 | var tweener = DOTween.To(() => target.GetColor(propertyId), x => target.SetColor(propertyId, x), endValue, duration);
64 | tweener.SetOptions(false).SetTarget(target);
65 | return tweener;
66 | }
67 |
68 | public static TweenerCore DOVector(this SerializedPass target, int propertyId, Vector4 endValue, float duration)
69 | {
70 | var tweener = DOTween.To(() => target.GetVector(propertyId), x => target.SetVector(propertyId, x), endValue, duration);
71 | tweener.SetOptions(false).SetTarget(target);
72 | return tweener;
73 | }
74 |
75 | public static int DOKill(this Outlinable.OutlineProperties target, bool complete = false)
76 | {
77 | return DOTween.Kill(target, complete);
78 | }
79 |
80 | public static int DOKill(this Outliner target, bool complete = false)
81 | {
82 | return DOTween.Kill(target, complete);
83 | }
84 |
85 | ///
86 | /// Controls the alpha (transparency) of the outline
87 | ///
88 | public static TweenerCore DOFade(this Outlinable.OutlineProperties target, float endValue, float duration)
89 | {
90 | var tweener = DOTween.ToAlpha(() => target.Color, x => target.Color = x, endValue, duration);
91 | tweener.SetOptions(true).SetTarget(target);
92 | return tweener;
93 | }
94 |
95 | ///
96 | /// Controls the color of the outline
97 | ///
98 | public static TweenerCore DOColor(this Outlinable.OutlineProperties target, Color endValue, float duration)
99 | {
100 | var tweener = DOTween.To(() => target.Color, x => target.Color = x, endValue, duration);
101 | tweener.SetOptions(false).SetTarget(target);
102 | return tweener;
103 | }
104 |
105 | ///
106 | /// Controls the amount of blur applied to the outline
107 | ///
108 | public static TweenerCore DOBlurShift(this Outlinable.OutlineProperties target, float endValue, float duration, bool snapping = false)
109 | {
110 | var tweener = DOTween.To(() => target.BlurShift, x => target.BlurShift = x, endValue, duration);
111 | tweener.SetOptions(snapping).SetTarget(target);
112 | return tweener;
113 | }
114 |
115 | ///
116 | /// Controls the amount of blur applied to the outline
117 | ///
118 | public static TweenerCore DOBlurShift(this Outliner target, float endValue, float duration, bool snapping = false)
119 | {
120 | var tweener = DOTween.To(() => target.BlurShift, x => target.BlurShift = x, endValue, duration);
121 | tweener.SetOptions(snapping).SetTarget(target);
122 | return tweener;
123 | }
124 |
125 | ///
126 | /// Controls the amount of dilation applied to the outline
127 | ///
128 | public static TweenerCore DODilateShift(this Outlinable.OutlineProperties target, float endValue, float duration, bool snapping = false)
129 | {
130 | var tweener = DOTween.To(() => target.DilateShift, x => target.DilateShift = x, endValue, duration);
131 | tweener.SetOptions(snapping).SetTarget(target);
132 | return tweener;
133 | }
134 |
135 | ///
136 | /// Controls the amount of dilation applied to the outline
137 | ///
138 | public static TweenerCore DODilateShift(this Outliner target, float endValue, float duration, bool snapping = false)
139 | {
140 | var tweener = DOTween.To(() => target.DilateShift, x => target.DilateShift = x, endValue, duration);
141 | tweener.SetOptions(snapping).SetTarget(target);
142 | return tweener;
143 | }
144 | }
145 | }
146 | #endif
147 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModuleAudio.cs:
--------------------------------------------------------------------------------
1 | // Author: Daniele Giardini - http://www.demigiant.com
2 | // Created: 2018/07/13
3 |
4 | #if true // MODULE_MARKER
5 | using System;
6 | using DG.Tweening.Core;
7 | using DG.Tweening.Plugins.Options;
8 | using UnityEngine;
9 | #if UNITY_5 || UNITY_2017_1_OR_NEWER
10 | using UnityEngine.Audio; // Required for AudioMixer
11 | #endif
12 |
13 | #pragma warning disable 1591
14 | namespace DG.Tweening
15 | {
16 | public static class DOTweenModuleAudio
17 | {
18 | #region Shortcuts
19 |
20 | #region Audio
21 |
22 | /// Tweens an AudioSource's volume to the given value.
23 | /// Also stores the AudioSource as the tween's target so it can be used for filtered operations
24 | /// The end value to reach (0 to 1)The duration of the tween
25 | public static TweenerCore DOFade(this AudioSource target, float endValue, float duration)
26 | {
27 | if (endValue < 0) endValue = 0;
28 | else if (endValue > 1) endValue = 1;
29 | TweenerCore t = DOTween.To(() => target.volume, x => target.volume = x, endValue, duration);
30 | t.SetTarget(target);
31 | return t;
32 | }
33 |
34 | /// Tweens an AudioSource's pitch to the given value.
35 | /// Also stores the AudioSource as the tween's target so it can be used for filtered operations
36 | /// The end value to reachThe duration of the tween
37 | public static TweenerCore DOPitch(this AudioSource target, float endValue, float duration)
38 | {
39 | TweenerCore t = DOTween.To(() => target.pitch, x => target.pitch = x, endValue, duration);
40 | t.SetTarget(target);
41 | return t;
42 | }
43 |
44 | #endregion
45 |
46 | #if UNITY_5 || UNITY_2017_1_OR_NEWER
47 | #region AudioMixer (Unity 5 or Newer)
48 |
49 | /// Tweens an AudioMixer's exposed float to the given value.
50 | /// Also stores the AudioMixer as the tween's target so it can be used for filtered operations.
51 | /// Note that you need to manually expose a float in an AudioMixerGroup in order to be able to tween it from an AudioMixer.
52 | /// Name given to the exposed float to set
53 | /// The end value to reachThe duration of the tween
54 | public static TweenerCore DOSetFloat(this AudioMixer target, string floatName, float endValue, float duration)
55 | {
56 | TweenerCore t = DOTween.To(()=> {
57 | float currVal;
58 | target.GetFloat(floatName, out currVal);
59 | return currVal;
60 | }, x=> target.SetFloat(floatName, x), endValue, duration);
61 | t.SetTarget(target);
62 | return t;
63 | }
64 |
65 | #region Operation Shortcuts
66 |
67 | ///
68 | /// Completes all tweens that have this target as a reference
69 | /// (meaning tweens that were started from this target, or that had this target added as an Id)
70 | /// and returns the total number of tweens completed
71 | /// (meaning the tweens that don't have infinite loops and were not already complete)
72 | ///
73 | /// For Sequences only: if TRUE also internal Sequence callbacks will be fired,
74 | /// otherwise they will be ignored
75 | public static int DOComplete(this AudioMixer target, bool withCallbacks = false)
76 | {
77 | return DOTween.Complete(target, withCallbacks);
78 | }
79 |
80 | ///
81 | /// Kills all tweens that have this target as a reference
82 | /// (meaning tweens that were started from this target, or that had this target added as an Id)
83 | /// and returns the total number of tweens killed.
84 | ///
85 | /// If TRUE completes the tween before killing it
86 | public static int DOKill(this AudioMixer target, bool complete = false)
87 | {
88 | return DOTween.Kill(target, complete);
89 | }
90 |
91 | ///
92 | /// Flips the direction (backwards if it was going forward or viceversa) of all tweens that have this target as a reference
93 | /// (meaning tweens that were started from this target, or that had this target added as an Id)
94 | /// and returns the total number of tweens flipped.
95 | ///
96 | public static int DOFlip(this AudioMixer target)
97 | {
98 | return DOTween.Flip(target);
99 | }
100 |
101 | ///
102 | /// Sends to the given position all tweens that have this target as a reference
103 | /// (meaning tweens that were started from this target, or that had this target added as an Id)
104 | /// and returns the total number of tweens involved.
105 | ///
106 | /// Time position to reach
107 | /// (if higher than the whole tween duration the tween will simply reach its end)
108 | /// If TRUE will play the tween after reaching the given position, otherwise it will pause it
109 | public static int DOGoto(this AudioMixer target, float to, bool andPlay = false)
110 | {
111 | return DOTween.Goto(target, to, andPlay);
112 | }
113 |
114 | ///
115 | /// Pauses all tweens that have this target as a reference
116 | /// (meaning tweens that were started from this target, or that had this target added as an Id)
117 | /// and returns the total number of tweens paused.
118 | ///
119 | public static int DOPause(this AudioMixer target)
120 | {
121 | return DOTween.Pause(target);
122 | }
123 |
124 | ///
125 | /// Plays all tweens that have this target as a reference
126 | /// (meaning tweens that were started from this target, or that had this target added as an Id)
127 | /// and returns the total number of tweens played.
128 | ///
129 | public static int DOPlay(this AudioMixer target)
130 | {
131 | return DOTween.Play(target);
132 | }
133 |
134 | ///
135 | /// Plays backwards all tweens that have this target as a reference
136 | /// (meaning tweens that were started from this target, or that had this target added as an Id)
137 | /// and returns the total number of tweens played.
138 | ///
139 | public static int DOPlayBackwards(this AudioMixer target)
140 | {
141 | return DOTween.PlayBackwards(target);
142 | }
143 |
144 | ///
145 | /// Plays forward all tweens that have this target as a reference
146 | /// (meaning tweens that were started from this target, or that had this target added as an Id)
147 | /// and returns the total number of tweens played.
148 | ///
149 | public static int DOPlayForward(this AudioMixer target)
150 | {
151 | return DOTween.PlayForward(target);
152 | }
153 |
154 | ///
155 | /// Restarts all tweens that have this target as a reference
156 | /// (meaning tweens that were started from this target, or that had this target added as an Id)
157 | /// and returns the total number of tweens restarted.
158 | ///
159 | public static int DORestart(this AudioMixer target)
160 | {
161 | return DOTween.Restart(target);
162 | }
163 |
164 | ///
165 | /// Rewinds all tweens that have this target as a reference
166 | /// (meaning tweens that were started from this target, or that had this target added as an Id)
167 | /// and returns the total number of tweens rewinded.
168 | ///
169 | public static int DORewind(this AudioMixer target)
170 | {
171 | return DOTween.Rewind(target);
172 | }
173 |
174 | ///
175 | /// Smoothly rewinds all tweens that have this target as a reference
176 | /// (meaning tweens that were started from this target, or that had this target added as an Id)
177 | /// and returns the total number of tweens rewinded.
178 | ///
179 | public static int DOSmoothRewind(this AudioMixer target)
180 | {
181 | return DOTween.SmoothRewind(target);
182 | }
183 |
184 | ///
185 | /// Toggles the paused state (plays if it was paused, pauses if it was playing) of all tweens that have this target as a reference
186 | /// (meaning tweens that were started from this target, or that had this target added as an Id)
187 | /// and returns the total number of tweens involved.
188 | ///
189 | public static int DOTogglePause(this AudioMixer target)
190 | {
191 | return DOTween.TogglePause(target);
192 | }
193 |
194 | #endregion
195 |
196 | #endregion
197 | #endif
198 |
199 | #endregion
200 | }
201 | }
202 | #endif
203 |
--------------------------------------------------------------------------------
/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 | - serializedVersion: 3
297 | m_Name: Enable Debug Button 1
298 | descriptiveName:
299 | descriptiveNegativeName:
300 | negativeButton:
301 | positiveButton: left ctrl
302 | altNegativeButton:
303 | altPositiveButton: joystick button 8
304 | gravity: 0
305 | dead: 0
306 | sensitivity: 0
307 | snap: 0
308 | invert: 0
309 | type: 0
310 | axis: 0
311 | joyNum: 0
312 | - serializedVersion: 3
313 | m_Name: Enable Debug Button 2
314 | descriptiveName:
315 | descriptiveNegativeName:
316 | negativeButton:
317 | positiveButton: backspace
318 | altNegativeButton:
319 | altPositiveButton: joystick button 9
320 | gravity: 0
321 | dead: 0
322 | sensitivity: 0
323 | snap: 0
324 | invert: 0
325 | type: 0
326 | axis: 0
327 | joyNum: 0
328 | - serializedVersion: 3
329 | m_Name: Debug Reset
330 | descriptiveName:
331 | descriptiveNegativeName:
332 | negativeButton:
333 | positiveButton: left alt
334 | altNegativeButton:
335 | altPositiveButton: joystick button 1
336 | gravity: 0
337 | dead: 0
338 | sensitivity: 0
339 | snap: 0
340 | invert: 0
341 | type: 0
342 | axis: 0
343 | joyNum: 0
344 | - serializedVersion: 3
345 | m_Name: Debug Next
346 | descriptiveName:
347 | descriptiveNegativeName:
348 | negativeButton:
349 | positiveButton: page down
350 | altNegativeButton:
351 | altPositiveButton: joystick button 5
352 | gravity: 0
353 | dead: 0
354 | sensitivity: 0
355 | snap: 0
356 | invert: 0
357 | type: 0
358 | axis: 0
359 | joyNum: 0
360 | - serializedVersion: 3
361 | m_Name: Debug Previous
362 | descriptiveName:
363 | descriptiveNegativeName:
364 | negativeButton:
365 | positiveButton: page up
366 | altNegativeButton:
367 | altPositiveButton: joystick button 4
368 | gravity: 0
369 | dead: 0
370 | sensitivity: 0
371 | snap: 0
372 | invert: 0
373 | type: 0
374 | axis: 0
375 | joyNum: 0
376 | - serializedVersion: 3
377 | m_Name: Debug Validate
378 | descriptiveName:
379 | descriptiveNegativeName:
380 | negativeButton:
381 | positiveButton: return
382 | altNegativeButton:
383 | altPositiveButton: joystick button 0
384 | gravity: 0
385 | dead: 0
386 | sensitivity: 0
387 | snap: 0
388 | invert: 0
389 | type: 0
390 | axis: 0
391 | joyNum: 0
392 | - serializedVersion: 3
393 | m_Name: Debug Persistent
394 | descriptiveName:
395 | descriptiveNegativeName:
396 | negativeButton:
397 | positiveButton: right shift
398 | altNegativeButton:
399 | altPositiveButton: joystick button 2
400 | gravity: 0
401 | dead: 0
402 | sensitivity: 0
403 | snap: 0
404 | invert: 0
405 | type: 0
406 | axis: 0
407 | joyNum: 0
408 | - serializedVersion: 3
409 | m_Name: Debug Multiplier
410 | descriptiveName:
411 | descriptiveNegativeName:
412 | negativeButton:
413 | positiveButton: left shift
414 | altNegativeButton:
415 | altPositiveButton: joystick button 3
416 | gravity: 0
417 | dead: 0
418 | sensitivity: 0
419 | snap: 0
420 | invert: 0
421 | type: 0
422 | axis: 0
423 | joyNum: 0
424 | - serializedVersion: 3
425 | m_Name: Debug Horizontal
426 | descriptiveName:
427 | descriptiveNegativeName:
428 | negativeButton: left
429 | positiveButton: right
430 | altNegativeButton:
431 | altPositiveButton:
432 | gravity: 1000
433 | dead: 0.001
434 | sensitivity: 1000
435 | snap: 0
436 | invert: 0
437 | type: 0
438 | axis: 0
439 | joyNum: 0
440 | - serializedVersion: 3
441 | m_Name: Debug Vertical
442 | descriptiveName:
443 | descriptiveNegativeName:
444 | negativeButton: down
445 | positiveButton: up
446 | altNegativeButton:
447 | altPositiveButton:
448 | gravity: 1000
449 | dead: 0.001
450 | sensitivity: 1000
451 | snap: 0
452 | invert: 0
453 | type: 0
454 | axis: 0
455 | joyNum: 0
456 | - serializedVersion: 3
457 | m_Name: Debug Vertical
458 | descriptiveName:
459 | descriptiveNegativeName:
460 | negativeButton: down
461 | positiveButton: up
462 | altNegativeButton:
463 | altPositiveButton:
464 | gravity: 1000
465 | dead: 0.001
466 | sensitivity: 1000
467 | snap: 0
468 | invert: 0
469 | type: 2
470 | axis: 6
471 | joyNum: 0
472 | - serializedVersion: 3
473 | m_Name: Debug Horizontal
474 | descriptiveName:
475 | descriptiveNegativeName:
476 | negativeButton: left
477 | positiveButton: right
478 | altNegativeButton:
479 | altPositiveButton:
480 | gravity: 1000
481 | dead: 0.001
482 | sensitivity: 1000
483 | snap: 0
484 | invert: 0
485 | type: 2
486 | axis: 5
487 | joyNum: 0
488 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModulePhysics2D.cs:
--------------------------------------------------------------------------------
1 | // Author: Daniele Giardini - http://www.demigiant.com
2 | // Created: 2018/07/13
3 |
4 | #if true && (UNITY_4_3 || UNITY_4_4 || UNITY_4_5 || UNITY_4_6 || UNITY_5 || UNITY_2017_1_OR_NEWER) // MODULE_MARKER
5 | using System;
6 | using DG.Tweening.Core;
7 | using DG.Tweening.Plugins;
8 | using DG.Tweening.Plugins.Core.PathCore;
9 | using DG.Tweening.Plugins.Options;
10 | using UnityEngine;
11 |
12 | #pragma warning disable 1591
13 | namespace DG.Tweening
14 | {
15 | public static class DOTweenModulePhysics2D
16 | {
17 | #region Shortcuts
18 |
19 | #region Rigidbody2D Shortcuts
20 |
21 | /// Tweens a Rigidbody2D's position to the given value.
22 | /// Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
23 | /// The end value to reachThe duration of the tween
24 | /// If TRUE the tween will smoothly snap all values to integers
25 | public static TweenerCore DOMove(this Rigidbody2D target, Vector2 endValue, float duration, bool snapping = false)
26 | {
27 | TweenerCore t = DOTween.To(() => target.position, target.MovePosition, endValue, duration);
28 | t.SetOptions(snapping).SetTarget(target);
29 | return t;
30 | }
31 |
32 | /// Tweens a Rigidbody2D's X position to the given value.
33 | /// Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
34 | /// The end value to reachThe duration of the tween
35 | /// If TRUE the tween will smoothly snap all values to integers
36 | public static TweenerCore DOMoveX(this Rigidbody2D target, float endValue, float duration, bool snapping = false)
37 | {
38 | TweenerCore t = DOTween.To(() => target.position, target.MovePosition, new Vector2(endValue, 0), duration);
39 | t.SetOptions(AxisConstraint.X, snapping).SetTarget(target);
40 | return t;
41 | }
42 |
43 | /// Tweens a Rigidbody2D's Y position to the given value.
44 | /// Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
45 | /// The end value to reachThe duration of the tween
46 | /// If TRUE the tween will smoothly snap all values to integers
47 | public static TweenerCore DOMoveY(this Rigidbody2D target, float endValue, float duration, bool snapping = false)
48 | {
49 | TweenerCore t = DOTween.To(() => target.position, target.MovePosition, new Vector2(0, endValue), duration);
50 | t.SetOptions(AxisConstraint.Y, snapping).SetTarget(target);
51 | return t;
52 | }
53 |
54 | /// Tweens a Rigidbody2D's rotation to the given value.
55 | /// Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
56 | /// The end value to reachThe duration of the tween
57 | public static TweenerCore DORotate(this Rigidbody2D target, float endValue, float duration)
58 | {
59 | TweenerCore t = DOTween.To(() => target.rotation, target.MoveRotation, endValue, duration);
60 | t.SetTarget(target);
61 | return t;
62 | }
63 |
64 | #region Special
65 |
66 | /// Tweens a Rigidbody2D's position to the given value, while also applying a jump effect along the Y axis.
67 | /// Returns a Sequence instead of a Tweener.
68 | /// Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations.
69 | /// IMPORTANT: a rigidbody2D can't be animated in a jump arc using MovePosition, so the tween will directly set the position
70 | /// The end value to reach
71 | /// Power of the jump (the max height of the jump is represented by this plus the final Y offset)
72 | /// Total number of jumps
73 | /// The duration of the tween
74 | /// If TRUE the tween will smoothly snap all values to integers
75 | public static Sequence DOJump(this Rigidbody2D target, Vector2 endValue, float jumpPower, int numJumps, float duration, bool snapping = false)
76 | {
77 | if (numJumps < 1) numJumps = 1;
78 | float startPosY = 0;
79 | float offsetY = -1;
80 | bool offsetYSet = false;
81 | Sequence s = DOTween.Sequence();
82 | Tween yTween = DOTween.To(() => target.position, x => target.position = x, new Vector2(0, jumpPower), duration / (numJumps * 2))
83 | .SetOptions(AxisConstraint.Y, snapping).SetEase(Ease.OutQuad).SetRelative()
84 | .SetLoops(numJumps * 2, LoopType.Yoyo)
85 | .OnStart(() => startPosY = target.position.y);
86 | s.Append(DOTween.To(() => target.position, x => target.position = x, new Vector2(endValue.x, 0), duration)
87 | .SetOptions(AxisConstraint.X, snapping).SetEase(Ease.Linear)
88 | ).Join(yTween)
89 | .SetTarget(target).SetEase(DOTween.defaultEaseType);
90 | yTween.OnUpdate(() => {
91 | if (!offsetYSet) {
92 | offsetYSet = true;
93 | offsetY = s.isRelative ? endValue.y : endValue.y - startPosY;
94 | }
95 | Vector3 pos = target.position;
96 | pos.y += DOVirtual.EasedValue(0, offsetY, yTween.ElapsedPercentage(), Ease.OutQuad);
97 | target.MovePosition(pos);
98 | });
99 | return s;
100 | }
101 |
102 | /// Tweens a Rigidbody2D's position through the given path waypoints, using the chosen path algorithm.
103 | /// Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations.
104 | /// NOTE: to tween a Rigidbody2D correctly it should be set to kinematic at least while being tweened.
105 | /// BEWARE: doesn't work on Windows Phone store (waiting for Unity to fix their own bug).
106 | /// If you plan to publish there you should use a regular transform.DOPath.
107 | /// The waypoints to go through
108 | /// The duration of the tween
109 | /// The type of path: Linear (straight path), CatmullRom (curved CatmullRom path) or CubicBezier (curved with control points)
110 | /// The path mode: 3D, side-scroller 2D, top-down 2D
111 | /// The resolution of the path (useless in case of Linear paths): higher resolutions make for more detailed curved paths but are more expensive.
112 | /// Defaults to 10, but a value of 5 is usually enough if you don't have dramatic long curves between waypoints
113 | /// The color of the path (shown when gizmos are active in the Play panel and the tween is running)
114 | public static TweenerCore DOPath(
115 | this Rigidbody2D target, Vector2[] path, float duration, PathType pathType = PathType.Linear,
116 | PathMode pathMode = PathMode.Full3D, int resolution = 10, Color? gizmoColor = null
117 | )
118 | {
119 | if (resolution < 1) resolution = 1;
120 | int len = path.Length;
121 | Vector3[] path3D = new Vector3[len];
122 | for (int i = 0; i < len; ++i) path3D[i] = path[i];
123 | TweenerCore t = DOTween.To(PathPlugin.Get(), () => target.position, x => target.MovePosition(x), new Path(pathType, path3D, resolution, gizmoColor), duration)
124 | .SetTarget(target).SetUpdate(UpdateType.Fixed);
125 |
126 | t.plugOptions.isRigidbody2D = true;
127 | t.plugOptions.mode = pathMode;
128 | return t;
129 | }
130 | /// Tweens a Rigidbody2D's localPosition through the given path waypoints, using the chosen path algorithm.
131 | /// Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
132 | /// NOTE: to tween a Rigidbody2D correctly it should be set to kinematic at least while being tweened.
133 | /// BEWARE: doesn't work on Windows Phone store (waiting for Unity to fix their own bug).
134 | /// If you plan to publish there you should use a regular transform.DOLocalPath.
135 | /// The waypoint to go through
136 | /// The duration of the tween
137 | /// The type of path: Linear (straight path), CatmullRom (curved CatmullRom path) or CubicBezier (curved with control points)
138 | /// The path mode: 3D, side-scroller 2D, top-down 2D
139 | /// The resolution of the path: higher resolutions make for more detailed curved paths but are more expensive.
140 | /// Defaults to 10, but a value of 5 is usually enough if you don't have dramatic long curves between waypoints
141 | /// The color of the path (shown when gizmos are active in the Play panel and the tween is running)
142 | public static TweenerCore DOLocalPath(
143 | this Rigidbody2D target, Vector2[] path, float duration, PathType pathType = PathType.Linear,
144 | PathMode pathMode = PathMode.Full3D, int resolution = 10, Color? gizmoColor = null
145 | )
146 | {
147 | if (resolution < 1) resolution = 1;
148 | int len = path.Length;
149 | Vector3[] path3D = new Vector3[len];
150 | for (int i = 0; i < len; ++i) path3D[i] = path[i];
151 | Transform trans = target.transform;
152 | TweenerCore t = DOTween.To(PathPlugin.Get(), () => trans.localPosition, x => target.MovePosition(trans.parent == null ? x : trans.parent.TransformPoint(x)), new Path(pathType, path3D, resolution, gizmoColor), duration)
153 | .SetTarget(target).SetUpdate(UpdateType.Fixed);
154 |
155 | t.plugOptions.isRigidbody2D = true;
156 | t.plugOptions.mode = pathMode;
157 | t.plugOptions.useLocalPosition = true;
158 | return t;
159 | }
160 | // Used by path editor when creating the actual tween, so it can pass a pre-compiled path
161 | internal static TweenerCore DOPath(
162 | this Rigidbody2D target, Path path, float duration, PathMode pathMode = PathMode.Full3D
163 | )
164 | {
165 | TweenerCore t = DOTween.To(PathPlugin.Get(), () => target.position, x => target.MovePosition(x), path, duration)
166 | .SetTarget(target);
167 |
168 | t.plugOptions.isRigidbody2D = true;
169 | t.plugOptions.mode = pathMode;
170 | return t;
171 | }
172 | internal static TweenerCore DOLocalPath(
173 | this Rigidbody2D target, Path path, float duration, PathMode pathMode = PathMode.Full3D
174 | )
175 | {
176 | Transform trans = target.transform;
177 | TweenerCore t = DOTween.To(PathPlugin.Get(), () => trans.localPosition, x => target.MovePosition(trans.parent == null ? x : trans.parent.TransformPoint(x)), path, duration)
178 | .SetTarget(target);
179 |
180 | t.plugOptions.isRigidbody2D = true;
181 | t.plugOptions.mode = pathMode;
182 | t.plugOptions.useLocalPosition = true;
183 | return t;
184 | }
185 |
186 | #endregion
187 |
188 | #endregion
189 |
190 | #endregion
191 | }
192 | }
193 | #endif
194 |
--------------------------------------------------------------------------------
/Packages/packages-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "com.unity.burst": {
4 | "version": "1.6.6",
5 | "depth": 1,
6 | "source": "registry",
7 | "dependencies": {
8 | "com.unity.mathematics": "1.2.1"
9 | },
10 | "url": "https://packages.unity.com"
11 | },
12 | "com.unity.collab-proxy": {
13 | "version": "1.15.18",
14 | "depth": 0,
15 | "source": "registry",
16 | "dependencies": {
17 | "com.unity.services.core": "1.0.1"
18 | },
19 | "url": "https://packages.unity.com"
20 | },
21 | "com.unity.ext.nunit": {
22 | "version": "1.0.6",
23 | "depth": 1,
24 | "source": "registry",
25 | "dependencies": {},
26 | "url": "https://packages.unity.com"
27 | },
28 | "com.unity.ide.rider": {
29 | "version": "3.0.15",
30 | "depth": 0,
31 | "source": "registry",
32 | "dependencies": {
33 | "com.unity.ext.nunit": "1.0.6"
34 | },
35 | "url": "https://packages.unity.com"
36 | },
37 | "com.unity.ide.visualstudio": {
38 | "version": "2.0.16",
39 | "depth": 0,
40 | "source": "registry",
41 | "dependencies": {
42 | "com.unity.test-framework": "1.1.9"
43 | },
44 | "url": "https://packages.unity.com"
45 | },
46 | "com.unity.ide.vscode": {
47 | "version": "1.2.5",
48 | "depth": 0,
49 | "source": "registry",
50 | "dependencies": {},
51 | "url": "https://packages.unity.com"
52 | },
53 | "com.unity.mathematics": {
54 | "version": "1.2.6",
55 | "depth": 1,
56 | "source": "registry",
57 | "dependencies": {},
58 | "url": "https://packages.unity.com"
59 | },
60 | "com.unity.nuget.newtonsoft-json": {
61 | "version": "3.0.2",
62 | "depth": 2,
63 | "source": "registry",
64 | "dependencies": {},
65 | "url": "https://packages.unity.com"
66 | },
67 | "com.unity.render-pipelines.core": {
68 | "version": "12.1.7",
69 | "depth": 1,
70 | "source": "builtin",
71 | "dependencies": {
72 | "com.unity.ugui": "1.0.0",
73 | "com.unity.modules.physics": "1.0.0",
74 | "com.unity.modules.jsonserialize": "1.0.0"
75 | }
76 | },
77 | "com.unity.render-pipelines.universal": {
78 | "version": "12.1.7",
79 | "depth": 0,
80 | "source": "builtin",
81 | "dependencies": {
82 | "com.unity.mathematics": "1.2.1",
83 | "com.unity.burst": "1.5.0",
84 | "com.unity.render-pipelines.core": "12.1.7",
85 | "com.unity.shadergraph": "12.1.7"
86 | }
87 | },
88 | "com.unity.searcher": {
89 | "version": "4.9.1",
90 | "depth": 2,
91 | "source": "registry",
92 | "dependencies": {},
93 | "url": "https://packages.unity.com"
94 | },
95 | "com.unity.services.core": {
96 | "version": "1.4.0",
97 | "depth": 1,
98 | "source": "registry",
99 | "dependencies": {
100 | "com.unity.modules.unitywebrequest": "1.0.0",
101 | "com.unity.nuget.newtonsoft-json": "3.0.2",
102 | "com.unity.modules.androidjni": "1.0.0"
103 | },
104 | "url": "https://packages.unity.com"
105 | },
106 | "com.unity.shadergraph": {
107 | "version": "12.1.7",
108 | "depth": 1,
109 | "source": "builtin",
110 | "dependencies": {
111 | "com.unity.render-pipelines.core": "12.1.7",
112 | "com.unity.searcher": "4.9.1"
113 | }
114 | },
115 | "com.unity.test-framework": {
116 | "version": "1.1.31",
117 | "depth": 0,
118 | "source": "registry",
119 | "dependencies": {
120 | "com.unity.ext.nunit": "1.0.6",
121 | "com.unity.modules.imgui": "1.0.0",
122 | "com.unity.modules.jsonserialize": "1.0.0"
123 | },
124 | "url": "https://packages.unity.com"
125 | },
126 | "com.unity.textmeshpro": {
127 | "version": "3.0.6",
128 | "depth": 0,
129 | "source": "registry",
130 | "dependencies": {
131 | "com.unity.ugui": "1.0.0"
132 | },
133 | "url": "https://packages.unity.com"
134 | },
135 | "com.unity.timeline": {
136 | "version": "1.6.4",
137 | "depth": 0,
138 | "source": "registry",
139 | "dependencies": {
140 | "com.unity.modules.director": "1.0.0",
141 | "com.unity.modules.animation": "1.0.0",
142 | "com.unity.modules.audio": "1.0.0",
143 | "com.unity.modules.particlesystem": "1.0.0"
144 | },
145 | "url": "https://packages.unity.com"
146 | },
147 | "com.unity.ugui": {
148 | "version": "1.0.0",
149 | "depth": 0,
150 | "source": "builtin",
151 | "dependencies": {
152 | "com.unity.modules.ui": "1.0.0",
153 | "com.unity.modules.imgui": "1.0.0"
154 | }
155 | },
156 | "com.unity.visualscripting": {
157 | "version": "1.7.8",
158 | "depth": 0,
159 | "source": "registry",
160 | "dependencies": {
161 | "com.unity.ugui": "1.0.0",
162 | "com.unity.modules.jsonserialize": "1.0.0"
163 | },
164 | "url": "https://packages.unity.com"
165 | },
166 | "com.unity.modules.ai": {
167 | "version": "1.0.0",
168 | "depth": 0,
169 | "source": "builtin",
170 | "dependencies": {}
171 | },
172 | "com.unity.modules.androidjni": {
173 | "version": "1.0.0",
174 | "depth": 0,
175 | "source": "builtin",
176 | "dependencies": {}
177 | },
178 | "com.unity.modules.animation": {
179 | "version": "1.0.0",
180 | "depth": 0,
181 | "source": "builtin",
182 | "dependencies": {}
183 | },
184 | "com.unity.modules.assetbundle": {
185 | "version": "1.0.0",
186 | "depth": 0,
187 | "source": "builtin",
188 | "dependencies": {}
189 | },
190 | "com.unity.modules.audio": {
191 | "version": "1.0.0",
192 | "depth": 0,
193 | "source": "builtin",
194 | "dependencies": {}
195 | },
196 | "com.unity.modules.cloth": {
197 | "version": "1.0.0",
198 | "depth": 0,
199 | "source": "builtin",
200 | "dependencies": {
201 | "com.unity.modules.physics": "1.0.0"
202 | }
203 | },
204 | "com.unity.modules.director": {
205 | "version": "1.0.0",
206 | "depth": 0,
207 | "source": "builtin",
208 | "dependencies": {
209 | "com.unity.modules.audio": "1.0.0",
210 | "com.unity.modules.animation": "1.0.0"
211 | }
212 | },
213 | "com.unity.modules.imageconversion": {
214 | "version": "1.0.0",
215 | "depth": 0,
216 | "source": "builtin",
217 | "dependencies": {}
218 | },
219 | "com.unity.modules.imgui": {
220 | "version": "1.0.0",
221 | "depth": 0,
222 | "source": "builtin",
223 | "dependencies": {}
224 | },
225 | "com.unity.modules.jsonserialize": {
226 | "version": "1.0.0",
227 | "depth": 0,
228 | "source": "builtin",
229 | "dependencies": {}
230 | },
231 | "com.unity.modules.particlesystem": {
232 | "version": "1.0.0",
233 | "depth": 0,
234 | "source": "builtin",
235 | "dependencies": {}
236 | },
237 | "com.unity.modules.physics": {
238 | "version": "1.0.0",
239 | "depth": 0,
240 | "source": "builtin",
241 | "dependencies": {}
242 | },
243 | "com.unity.modules.physics2d": {
244 | "version": "1.0.0",
245 | "depth": 0,
246 | "source": "builtin",
247 | "dependencies": {}
248 | },
249 | "com.unity.modules.screencapture": {
250 | "version": "1.0.0",
251 | "depth": 0,
252 | "source": "builtin",
253 | "dependencies": {
254 | "com.unity.modules.imageconversion": "1.0.0"
255 | }
256 | },
257 | "com.unity.modules.subsystems": {
258 | "version": "1.0.0",
259 | "depth": 1,
260 | "source": "builtin",
261 | "dependencies": {
262 | "com.unity.modules.jsonserialize": "1.0.0"
263 | }
264 | },
265 | "com.unity.modules.terrain": {
266 | "version": "1.0.0",
267 | "depth": 0,
268 | "source": "builtin",
269 | "dependencies": {}
270 | },
271 | "com.unity.modules.terrainphysics": {
272 | "version": "1.0.0",
273 | "depth": 0,
274 | "source": "builtin",
275 | "dependencies": {
276 | "com.unity.modules.physics": "1.0.0",
277 | "com.unity.modules.terrain": "1.0.0"
278 | }
279 | },
280 | "com.unity.modules.tilemap": {
281 | "version": "1.0.0",
282 | "depth": 0,
283 | "source": "builtin",
284 | "dependencies": {
285 | "com.unity.modules.physics2d": "1.0.0"
286 | }
287 | },
288 | "com.unity.modules.ui": {
289 | "version": "1.0.0",
290 | "depth": 0,
291 | "source": "builtin",
292 | "dependencies": {}
293 | },
294 | "com.unity.modules.uielements": {
295 | "version": "1.0.0",
296 | "depth": 0,
297 | "source": "builtin",
298 | "dependencies": {
299 | "com.unity.modules.ui": "1.0.0",
300 | "com.unity.modules.imgui": "1.0.0",
301 | "com.unity.modules.jsonserialize": "1.0.0",
302 | "com.unity.modules.uielementsnative": "1.0.0"
303 | }
304 | },
305 | "com.unity.modules.uielementsnative": {
306 | "version": "1.0.0",
307 | "depth": 1,
308 | "source": "builtin",
309 | "dependencies": {
310 | "com.unity.modules.ui": "1.0.0",
311 | "com.unity.modules.imgui": "1.0.0",
312 | "com.unity.modules.jsonserialize": "1.0.0"
313 | }
314 | },
315 | "com.unity.modules.umbra": {
316 | "version": "1.0.0",
317 | "depth": 0,
318 | "source": "builtin",
319 | "dependencies": {}
320 | },
321 | "com.unity.modules.unityanalytics": {
322 | "version": "1.0.0",
323 | "depth": 0,
324 | "source": "builtin",
325 | "dependencies": {
326 | "com.unity.modules.unitywebrequest": "1.0.0",
327 | "com.unity.modules.jsonserialize": "1.0.0"
328 | }
329 | },
330 | "com.unity.modules.unitywebrequest": {
331 | "version": "1.0.0",
332 | "depth": 0,
333 | "source": "builtin",
334 | "dependencies": {}
335 | },
336 | "com.unity.modules.unitywebrequestassetbundle": {
337 | "version": "1.0.0",
338 | "depth": 0,
339 | "source": "builtin",
340 | "dependencies": {
341 | "com.unity.modules.assetbundle": "1.0.0",
342 | "com.unity.modules.unitywebrequest": "1.0.0"
343 | }
344 | },
345 | "com.unity.modules.unitywebrequestaudio": {
346 | "version": "1.0.0",
347 | "depth": 0,
348 | "source": "builtin",
349 | "dependencies": {
350 | "com.unity.modules.unitywebrequest": "1.0.0",
351 | "com.unity.modules.audio": "1.0.0"
352 | }
353 | },
354 | "com.unity.modules.unitywebrequesttexture": {
355 | "version": "1.0.0",
356 | "depth": 0,
357 | "source": "builtin",
358 | "dependencies": {
359 | "com.unity.modules.unitywebrequest": "1.0.0",
360 | "com.unity.modules.imageconversion": "1.0.0"
361 | }
362 | },
363 | "com.unity.modules.unitywebrequestwww": {
364 | "version": "1.0.0",
365 | "depth": 0,
366 | "source": "builtin",
367 | "dependencies": {
368 | "com.unity.modules.unitywebrequest": "1.0.0",
369 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
370 | "com.unity.modules.unitywebrequestaudio": "1.0.0",
371 | "com.unity.modules.audio": "1.0.0",
372 | "com.unity.modules.assetbundle": "1.0.0",
373 | "com.unity.modules.imageconversion": "1.0.0"
374 | }
375 | },
376 | "com.unity.modules.vehicles": {
377 | "version": "1.0.0",
378 | "depth": 0,
379 | "source": "builtin",
380 | "dependencies": {
381 | "com.unity.modules.physics": "1.0.0"
382 | }
383 | },
384 | "com.unity.modules.video": {
385 | "version": "1.0.0",
386 | "depth": 0,
387 | "source": "builtin",
388 | "dependencies": {
389 | "com.unity.modules.audio": "1.0.0",
390 | "com.unity.modules.ui": "1.0.0",
391 | "com.unity.modules.unitywebrequest": "1.0.0"
392 | }
393 | },
394 | "com.unity.modules.vr": {
395 | "version": "1.0.0",
396 | "depth": 0,
397 | "source": "builtin",
398 | "dependencies": {
399 | "com.unity.modules.jsonserialize": "1.0.0",
400 | "com.unity.modules.physics": "1.0.0",
401 | "com.unity.modules.xr": "1.0.0"
402 | }
403 | },
404 | "com.unity.modules.wind": {
405 | "version": "1.0.0",
406 | "depth": 0,
407 | "source": "builtin",
408 | "dependencies": {}
409 | },
410 | "com.unity.modules.xr": {
411 | "version": "1.0.0",
412 | "depth": 0,
413 | "source": "builtin",
414 | "dependencies": {
415 | "com.unity.modules.physics": "1.0.0",
416 | "com.unity.modules.jsonserialize": "1.0.0",
417 | "com.unity.modules.subsystems": "1.0.0"
418 | }
419 | }
420 | }
421 | }
422 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModulePhysics.cs:
--------------------------------------------------------------------------------
1 | // Author: Daniele Giardini - http://www.demigiant.com
2 | // Created: 2018/07/13
3 |
4 | #if true // MODULE_MARKER
5 | using System;
6 | using DG.Tweening.Core;
7 | using DG.Tweening.Core.Enums;
8 | using DG.Tweening.Plugins;
9 | using DG.Tweening.Plugins.Core.PathCore;
10 | using DG.Tweening.Plugins.Options;
11 | using UnityEngine;
12 |
13 | #pragma warning disable 1591
14 | namespace DG.Tweening
15 | {
16 | public static class DOTweenModulePhysics
17 | {
18 | #region Shortcuts
19 |
20 | #region Rigidbody
21 |
22 | /// Tweens a Rigidbody's position to the given value.
23 | /// Also stores the rigidbody as the tween's target so it can be used for filtered operations
24 | /// The end value to reachThe duration of the tween
25 | /// If TRUE the tween will smoothly snap all values to integers
26 | public static TweenerCore DOMove(this Rigidbody target, Vector3 endValue, float duration, bool snapping = false)
27 | {
28 | TweenerCore t = DOTween.To(() => target.position, target.MovePosition, endValue, duration);
29 | t.SetOptions(snapping).SetTarget(target);
30 | return t;
31 | }
32 |
33 | /// Tweens a Rigidbody's X position to the given value.
34 | /// Also stores the rigidbody as the tween's target so it can be used for filtered operations
35 | /// The end value to reachThe duration of the tween
36 | /// If TRUE the tween will smoothly snap all values to integers
37 | public static TweenerCore DOMoveX(this Rigidbody target, float endValue, float duration, bool snapping = false)
38 | {
39 | TweenerCore t = DOTween.To(() => target.position, target.MovePosition, new Vector3(endValue, 0, 0), duration);
40 | t.SetOptions(AxisConstraint.X, snapping).SetTarget(target);
41 | return t;
42 | }
43 |
44 | /// Tweens a Rigidbody's Y position to the given value.
45 | /// Also stores the rigidbody as the tween's target so it can be used for filtered operations
46 | /// The end value to reachThe duration of the tween
47 | /// If TRUE the tween will smoothly snap all values to integers
48 | public static TweenerCore DOMoveY(this Rigidbody target, float endValue, float duration, bool snapping = false)
49 | {
50 | TweenerCore t = DOTween.To(() => target.position, target.MovePosition, new Vector3(0, endValue, 0), duration);
51 | t.SetOptions(AxisConstraint.Y, snapping).SetTarget(target);
52 | return t;
53 | }
54 |
55 | /// Tweens a Rigidbody's Z position to the given value.
56 | /// Also stores the rigidbody as the tween's target so it can be used for filtered operations
57 | /// The end value to reachThe duration of the tween
58 | /// If TRUE the tween will smoothly snap all values to integers
59 | public static TweenerCore DOMoveZ(this Rigidbody target, float endValue, float duration, bool snapping = false)
60 | {
61 | TweenerCore t = DOTween.To(() => target.position, target.MovePosition, new Vector3(0, 0, endValue), duration);
62 | t.SetOptions(AxisConstraint.Z, snapping).SetTarget(target);
63 | return t;
64 | }
65 |
66 | /// Tweens a Rigidbody's rotation to the given value.
67 | /// Also stores the rigidbody as the tween's target so it can be used for filtered operations
68 | /// The end value to reachThe duration of the tween
69 | /// Rotation mode
70 | public static TweenerCore DORotate(this Rigidbody target, Vector3 endValue, float duration, RotateMode mode = RotateMode.Fast)
71 | {
72 | TweenerCore t = DOTween.To(() => target.rotation, target.MoveRotation, endValue, duration);
73 | t.SetTarget(target);
74 | t.plugOptions.rotateMode = mode;
75 | return t;
76 | }
77 |
78 | /// Tweens a Rigidbody's rotation so that it will look towards the given position.
79 | /// Also stores the rigidbody as the tween's target so it can be used for filtered operations
80 | /// The position to look atThe duration of the tween
81 | /// Eventual axis constraint for the rotation
82 | /// The vector that defines in which direction up is (default: Vector3.up)
83 | public static TweenerCore DOLookAt(this Rigidbody target, Vector3 towards, float duration, AxisConstraint axisConstraint = AxisConstraint.None, Vector3? up = null)
84 | {
85 | TweenerCore t = DOTween.To(() => target.rotation, target.MoveRotation, towards, duration)
86 | .SetTarget(target).SetSpecialStartupMode(SpecialStartupMode.SetLookAt);
87 | t.plugOptions.axisConstraint = axisConstraint;
88 | t.plugOptions.up = (up == null) ? Vector3.up : (Vector3)up;
89 | return t;
90 | }
91 |
92 | #region Special
93 |
94 | /// Tweens a Rigidbody's position to the given value, while also applying a jump effect along the Y axis.
95 | /// Returns a Sequence instead of a Tweener.
96 | /// Also stores the Rigidbody as the tween's target so it can be used for filtered operations
97 | /// The end value to reach
98 | /// Power of the jump (the max height of the jump is represented by this plus the final Y offset)
99 | /// Total number of jumps
100 | /// The duration of the tween
101 | /// If TRUE the tween will smoothly snap all values to integers
102 | public static Sequence DOJump(this Rigidbody target, Vector3 endValue, float jumpPower, int numJumps, float duration, bool snapping = false)
103 | {
104 | if (numJumps < 1) numJumps = 1;
105 | float startPosY = 0;
106 | float offsetY = -1;
107 | bool offsetYSet = false;
108 | Sequence s = DOTween.Sequence();
109 | Tween yTween = DOTween.To(() => target.position, target.MovePosition, new Vector3(0, jumpPower, 0), duration / (numJumps * 2))
110 | .SetOptions(AxisConstraint.Y, snapping).SetEase(Ease.OutQuad).SetRelative()
111 | .SetLoops(numJumps * 2, LoopType.Yoyo)
112 | .OnStart(() => startPosY = target.position.y);
113 | s.Append(DOTween.To(() => target.position, target.MovePosition, new Vector3(endValue.x, 0, 0), duration)
114 | .SetOptions(AxisConstraint.X, snapping).SetEase(Ease.Linear)
115 | ).Join(DOTween.To(() => target.position, target.MovePosition, new Vector3(0, 0, endValue.z), duration)
116 | .SetOptions(AxisConstraint.Z, snapping).SetEase(Ease.Linear)
117 | ).Join(yTween)
118 | .SetTarget(target).SetEase(DOTween.defaultEaseType);
119 | yTween.OnUpdate(() => {
120 | if (!offsetYSet) {
121 | offsetYSet = true;
122 | offsetY = s.isRelative ? endValue.y : endValue.y - startPosY;
123 | }
124 | Vector3 pos = target.position;
125 | pos.y += DOVirtual.EasedValue(0, offsetY, yTween.ElapsedPercentage(), Ease.OutQuad);
126 | target.MovePosition(pos);
127 | });
128 | return s;
129 | }
130 |
131 | /// Tweens a Rigidbody's position through the given path waypoints, using the chosen path algorithm.
132 | /// Also stores the Rigidbody as the tween's target so it can be used for filtered operations.
133 | /// NOTE: to tween a rigidbody correctly it should be set to kinematic at least while being tweened.
134 | /// BEWARE: doesn't work on Windows Phone store (waiting for Unity to fix their own bug).
135 | /// If you plan to publish there you should use a regular transform.DOPath.
136 | /// The waypoints to go through
137 | /// The duration of the tween
138 | /// The type of path: Linear (straight path), CatmullRom (curved CatmullRom path) or CubicBezier (curved with control points)
139 | /// The path mode: 3D, side-scroller 2D, top-down 2D
140 | /// The resolution of the path (useless in case of Linear paths): higher resolutions make for more detailed curved paths but are more expensive.
141 | /// Defaults to 10, but a value of 5 is usually enough if you don't have dramatic long curves between waypoints
142 | /// The color of the path (shown when gizmos are active in the Play panel and the tween is running)
143 | public static TweenerCore DOPath(
144 | this Rigidbody target, Vector3[] path, float duration, PathType pathType = PathType.Linear,
145 | PathMode pathMode = PathMode.Full3D, int resolution = 10, Color? gizmoColor = null
146 | )
147 | {
148 | if (resolution < 1) resolution = 1;
149 | TweenerCore t = DOTween.To(PathPlugin.Get(), () => target.position, target.MovePosition, new Path(pathType, path, resolution, gizmoColor), duration)
150 | .SetTarget(target).SetUpdate(UpdateType.Fixed);
151 |
152 | t.plugOptions.isRigidbody = true;
153 | t.plugOptions.mode = pathMode;
154 | return t;
155 | }
156 | /// Tweens a Rigidbody's localPosition through the given path waypoints, using the chosen path algorithm.
157 | /// Also stores the Rigidbody as the tween's target so it can be used for filtered operations
158 | /// NOTE: to tween a rigidbody correctly it should be set to kinematic at least while being tweened.
159 | /// BEWARE: doesn't work on Windows Phone store (waiting for Unity to fix their own bug).
160 | /// If you plan to publish there you should use a regular transform.DOLocalPath.
161 | /// The waypoint to go through
162 | /// The duration of the tween
163 | /// The type of path: Linear (straight path), CatmullRom (curved CatmullRom path) or CubicBezier (curved with control points)
164 | /// The path mode: 3D, side-scroller 2D, top-down 2D
165 | /// The resolution of the path: higher resolutions make for more detailed curved paths but are more expensive.
166 | /// Defaults to 10, but a value of 5 is usually enough if you don't have dramatic long curves between waypoints
167 | /// The color of the path (shown when gizmos are active in the Play panel and the tween is running)
168 | public static TweenerCore DOLocalPath(
169 | this Rigidbody target, Vector3[] path, float duration, PathType pathType = PathType.Linear,
170 | PathMode pathMode = PathMode.Full3D, int resolution = 10, Color? gizmoColor = null
171 | )
172 | {
173 | if (resolution < 1) resolution = 1;
174 | Transform trans = target.transform;
175 | TweenerCore t = DOTween.To(PathPlugin.Get(), () => trans.localPosition, x => target.MovePosition(trans.parent == null ? x : trans.parent.TransformPoint(x)), new Path(pathType, path, resolution, gizmoColor), duration)
176 | .SetTarget(target).SetUpdate(UpdateType.Fixed);
177 |
178 | t.plugOptions.isRigidbody = true;
179 | t.plugOptions.mode = pathMode;
180 | t.plugOptions.useLocalPosition = true;
181 | return t;
182 | }
183 | // Used by path editor when creating the actual tween, so it can pass a pre-compiled path
184 | internal static TweenerCore DOPath(
185 | this Rigidbody target, Path path, float duration, PathMode pathMode = PathMode.Full3D
186 | )
187 | {
188 | TweenerCore t = DOTween.To(PathPlugin.Get(), () => target.position, target.MovePosition, path, duration)
189 | .SetTarget(target);
190 |
191 | t.plugOptions.isRigidbody = true;
192 | t.plugOptions.mode = pathMode;
193 | return t;
194 | }
195 | internal static TweenerCore DOLocalPath(
196 | this Rigidbody target, Path path, float duration, PathMode pathMode = PathMode.Full3D
197 | )
198 | {
199 | Transform trans = target.transform;
200 | TweenerCore t = DOTween.To(PathPlugin.Get(), () => trans.localPosition, x => target.MovePosition(trans.parent == null ? x : trans.parent.TransformPoint(x)), path, duration)
201 | .SetTarget(target);
202 |
203 | t.plugOptions.isRigidbody = true;
204 | t.plugOptions.mode = pathMode;
205 | t.plugOptions.useLocalPosition = true;
206 | return t;
207 | }
208 |
209 | #endregion
210 |
211 | #endregion
212 |
213 | #endregion
214 | }
215 | }
216 | #endif
217 |
--------------------------------------------------------------------------------
/Assets/MenuCreator/MenuCreatorDemo.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.18028378, g: 0.22571412, b: 0.30692285, a: 1}
42 | m_UseRadianceAmbientProbe: 0
43 | --- !u!157 &3
44 | LightmapSettings:
45 | m_ObjectHideFlags: 0
46 | serializedVersion: 12
47 | m_GIWorkflowMode: 1
48 | m_GISettings:
49 | serializedVersion: 2
50 | m_BounceScale: 1
51 | m_IndirectOutputScale: 1
52 | m_AlbedoBoost: 1
53 | m_EnvironmentLightingMode: 0
54 | m_EnableBakedLightmaps: 1
55 | m_EnableRealtimeLightmaps: 0
56 | m_LightmapEditorSettings:
57 | serializedVersion: 12
58 | m_Resolution: 2
59 | m_BakeResolution: 40
60 | m_AtlasSize: 1024
61 | m_AO: 0
62 | m_AOMaxDistance: 1
63 | m_CompAOExponent: 1
64 | m_CompAOExponentDirect: 0
65 | m_ExtractAmbientOcclusion: 0
66 | m_Padding: 2
67 | m_LightmapParameters: {fileID: 0}
68 | m_LightmapsBakeMode: 1
69 | m_TextureCompression: 1
70 | m_FinalGather: 0
71 | m_FinalGatherFiltering: 1
72 | m_FinalGatherRayCount: 256
73 | m_ReflectionCompression: 2
74 | m_MixedBakeMode: 2
75 | m_BakeBackend: 1
76 | m_PVRSampling: 1
77 | m_PVRDirectSampleCount: 32
78 | m_PVRSampleCount: 512
79 | m_PVRBounces: 2
80 | m_PVREnvironmentSampleCount: 256
81 | m_PVREnvironmentReferencePointCount: 2048
82 | m_PVRFilteringMode: 1
83 | m_PVRDenoiserTypeDirect: 1
84 | m_PVRDenoiserTypeIndirect: 1
85 | m_PVRDenoiserTypeAO: 1
86 | m_PVRFilterTypeDirect: 0
87 | m_PVRFilterTypeIndirect: 0
88 | m_PVRFilterTypeAO: 0
89 | m_PVREnvironmentMIS: 1
90 | m_PVRCulling: 1
91 | m_PVRFilteringGaussRadiusDirect: 1
92 | m_PVRFilteringGaussRadiusIndirect: 5
93 | m_PVRFilteringGaussRadiusAO: 2
94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5
95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2
96 | m_PVRFilteringAtrousPositionSigmaAO: 1
97 | m_ExportTrainingData: 0
98 | m_TrainingDataDestination: TrainingData
99 | m_LightProbeSampleCountMultiplier: 4
100 | m_LightingDataAsset: {fileID: 0}
101 | m_LightingSettings: {fileID: 0}
102 | --- !u!196 &4
103 | NavMeshSettings:
104 | serializedVersion: 2
105 | m_ObjectHideFlags: 0
106 | m_BuildSettings:
107 | serializedVersion: 2
108 | agentTypeID: 0
109 | agentRadius: 0.5
110 | agentHeight: 2
111 | agentSlope: 45
112 | agentClimb: 0.4
113 | ledgeDropHeight: 0
114 | maxJumpAcrossDistance: 0
115 | minRegionArea: 2
116 | manualCellSize: 0
117 | cellSize: 0.16666667
118 | manualTileSize: 0
119 | tileSize: 256
120 | accuratePlacement: 0
121 | maxJobWorkers: 0
122 | preserveTilesOutsideBounds: 0
123 | debug:
124 | m_Flags: 0
125 | m_NavMeshData: {fileID: 0}
126 | --- !u!1 &330585543
127 | GameObject:
128 | m_ObjectHideFlags: 0
129 | m_CorrespondingSourceObject: {fileID: 0}
130 | m_PrefabInstance: {fileID: 0}
131 | m_PrefabAsset: {fileID: 0}
132 | serializedVersion: 6
133 | m_Component:
134 | - component: {fileID: 330585546}
135 | - component: {fileID: 330585545}
136 | - component: {fileID: 330585544}
137 | - component: {fileID: 330585547}
138 | m_Layer: 0
139 | m_Name: Main Camera
140 | m_TagString: MainCamera
141 | m_Icon: {fileID: 0}
142 | m_NavMeshLayer: 0
143 | m_StaticEditorFlags: 0
144 | m_IsActive: 1
145 | --- !u!81 &330585544
146 | AudioListener:
147 | m_ObjectHideFlags: 0
148 | m_CorrespondingSourceObject: {fileID: 0}
149 | m_PrefabInstance: {fileID: 0}
150 | m_PrefabAsset: {fileID: 0}
151 | m_GameObject: {fileID: 330585543}
152 | m_Enabled: 1
153 | --- !u!20 &330585545
154 | Camera:
155 | m_ObjectHideFlags: 0
156 | m_CorrespondingSourceObject: {fileID: 0}
157 | m_PrefabInstance: {fileID: 0}
158 | m_PrefabAsset: {fileID: 0}
159 | m_GameObject: {fileID: 330585543}
160 | m_Enabled: 1
161 | serializedVersion: 2
162 | m_ClearFlags: 2
163 | m_BackGroundColor: {r: 0.38679248, g: 0.38679248, b: 0.38679248, a: 0}
164 | m_projectionMatrixMode: 1
165 | m_GateFitMode: 2
166 | m_FOVAxisMode: 0
167 | m_SensorSize: {x: 36, y: 24}
168 | m_LensShift: {x: 0, y: 0}
169 | m_FocalLength: 50
170 | m_NormalizedViewPortRect:
171 | serializedVersion: 2
172 | x: 0
173 | y: 0
174 | width: 1
175 | height: 1
176 | near clip plane: 0.3
177 | far clip plane: 1000
178 | field of view: 60
179 | orthographic: 0
180 | orthographic size: 5
181 | m_Depth: -1
182 | m_CullingMask:
183 | serializedVersion: 2
184 | m_Bits: 4294967295
185 | m_RenderingPath: -1
186 | m_TargetTexture: {fileID: 0}
187 | m_TargetDisplay: 0
188 | m_TargetEye: 3
189 | m_HDR: 1
190 | m_AllowMSAA: 1
191 | m_AllowDynamicResolution: 0
192 | m_ForceIntoRT: 0
193 | m_OcclusionCulling: 1
194 | m_StereoConvergence: 10
195 | m_StereoSeparation: 0.022
196 | --- !u!4 &330585546
197 | Transform:
198 | m_ObjectHideFlags: 0
199 | m_CorrespondingSourceObject: {fileID: 0}
200 | m_PrefabInstance: {fileID: 0}
201 | m_PrefabAsset: {fileID: 0}
202 | m_GameObject: {fileID: 330585543}
203 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
204 | m_LocalPosition: {x: 0, y: 1, z: -10}
205 | m_LocalScale: {x: 1, y: 1, z: 1}
206 | m_ConstrainProportionsScale: 0
207 | m_Children: []
208 | m_Father: {fileID: 0}
209 | m_RootOrder: 0
210 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
211 | --- !u!114 &330585547
212 | MonoBehaviour:
213 | m_ObjectHideFlags: 0
214 | m_CorrespondingSourceObject: {fileID: 0}
215 | m_PrefabInstance: {fileID: 0}
216 | m_PrefabAsset: {fileID: 0}
217 | m_GameObject: {fileID: 330585543}
218 | m_Enabled: 1
219 | m_EditorHideFlags: 0
220 | m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
221 | m_Name:
222 | m_EditorClassIdentifier:
223 | m_RenderShadows: 1
224 | m_RequiresDepthTextureOption: 2
225 | m_RequiresOpaqueTextureOption: 2
226 | m_CameraType: 0
227 | m_Cameras: []
228 | m_RendererIndex: -1
229 | m_VolumeLayerMask:
230 | serializedVersion: 2
231 | m_Bits: 1
232 | m_VolumeTrigger: {fileID: 0}
233 | m_VolumeFrameworkUpdateModeOption: 2
234 | m_RenderPostProcessing: 1
235 | m_Antialiasing: 0
236 | m_AntialiasingQuality: 2
237 | m_StopNaN: 0
238 | m_Dithering: 0
239 | m_ClearDepth: 1
240 | m_AllowXRRendering: 1
241 | m_RequiresDepthTexture: 0
242 | m_RequiresColorTexture: 0
243 | m_Version: 2
244 | --- !u!1 &410087039
245 | GameObject:
246 | m_ObjectHideFlags: 0
247 | m_CorrespondingSourceObject: {fileID: 0}
248 | m_PrefabInstance: {fileID: 0}
249 | m_PrefabAsset: {fileID: 0}
250 | serializedVersion: 6
251 | m_Component:
252 | - component: {fileID: 410087041}
253 | - component: {fileID: 410087040}
254 | - component: {fileID: 410087042}
255 | m_Layer: 0
256 | m_Name: Directional Light
257 | m_TagString: Untagged
258 | m_Icon: {fileID: 0}
259 | m_NavMeshLayer: 0
260 | m_StaticEditorFlags: 0
261 | m_IsActive: 1
262 | --- !u!108 &410087040
263 | Light:
264 | m_ObjectHideFlags: 0
265 | m_CorrespondingSourceObject: {fileID: 0}
266 | m_PrefabInstance: {fileID: 0}
267 | m_PrefabAsset: {fileID: 0}
268 | m_GameObject: {fileID: 410087039}
269 | m_Enabled: 1
270 | serializedVersion: 10
271 | m_Type: 1
272 | m_Shape: 0
273 | m_Color: {r: 1, g: 1, b: 1, a: 1}
274 | m_Intensity: 2
275 | m_Range: 10
276 | m_SpotAngle: 30
277 | m_InnerSpotAngle: 21.80208
278 | m_CookieSize: 10
279 | m_Shadows:
280 | m_Type: 2
281 | m_Resolution: -1
282 | m_CustomResolution: -1
283 | m_Strength: 1
284 | m_Bias: 0.05
285 | m_NormalBias: 0.4
286 | m_NearPlane: 0.2
287 | m_CullingMatrixOverride:
288 | e00: 1
289 | e01: 0
290 | e02: 0
291 | e03: 0
292 | e10: 0
293 | e11: 1
294 | e12: 0
295 | e13: 0
296 | e20: 0
297 | e21: 0
298 | e22: 1
299 | e23: 0
300 | e30: 0
301 | e31: 0
302 | e32: 0
303 | e33: 1
304 | m_UseCullingMatrixOverride: 0
305 | m_Cookie: {fileID: 0}
306 | m_DrawHalo: 0
307 | m_Flare: {fileID: 0}
308 | m_RenderMode: 0
309 | m_CullingMask:
310 | serializedVersion: 2
311 | m_Bits: 4294967295
312 | m_RenderingLayerMask: 1
313 | m_Lightmapping: 4
314 | m_LightShadowCasterMode: 0
315 | m_AreaSize: {x: 1, y: 1}
316 | m_BounceIntensity: 1
317 | m_ColorTemperature: 5000
318 | m_UseColorTemperature: 1
319 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
320 | m_UseBoundingSphereOverride: 0
321 | m_UseViewFrustumForShadowCasterCull: 1
322 | m_ShadowRadius: 0
323 | m_ShadowAngle: 0
324 | --- !u!4 &410087041
325 | Transform:
326 | m_ObjectHideFlags: 0
327 | m_CorrespondingSourceObject: {fileID: 0}
328 | m_PrefabInstance: {fileID: 0}
329 | m_PrefabAsset: {fileID: 0}
330 | m_GameObject: {fileID: 410087039}
331 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
332 | m_LocalPosition: {x: 0, y: 3, z: 0}
333 | m_LocalScale: {x: 1, y: 1, z: 1}
334 | m_ConstrainProportionsScale: 0
335 | m_Children: []
336 | m_Father: {fileID: 0}
337 | m_RootOrder: 1
338 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
339 | --- !u!114 &410087042
340 | MonoBehaviour:
341 | m_ObjectHideFlags: 0
342 | m_CorrespondingSourceObject: {fileID: 0}
343 | m_PrefabInstance: {fileID: 0}
344 | m_PrefabAsset: {fileID: 0}
345 | m_GameObject: {fileID: 410087039}
346 | m_Enabled: 1
347 | m_EditorHideFlags: 0
348 | m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3}
349 | m_Name:
350 | m_EditorClassIdentifier:
351 | m_Version: 1
352 | m_UsePipelineSettings: 1
353 | m_AdditionalLightsShadowResolutionTier: 2
354 | m_LightLayerMask: 1
355 | m_CustomShadowLayers: 0
356 | m_ShadowLayerMask: 1
357 | m_LightCookieSize: {x: 1, y: 1}
358 | m_LightCookieOffset: {x: 0, y: 0}
359 | --- !u!1 &832575517
360 | GameObject:
361 | m_ObjectHideFlags: 0
362 | m_CorrespondingSourceObject: {fileID: 0}
363 | m_PrefabInstance: {fileID: 0}
364 | m_PrefabAsset: {fileID: 0}
365 | serializedVersion: 6
366 | m_Component:
367 | - component: {fileID: 832575519}
368 | - component: {fileID: 832575518}
369 | m_Layer: 0
370 | m_Name: Global Volume
371 | m_TagString: Untagged
372 | m_Icon: {fileID: 0}
373 | m_NavMeshLayer: 0
374 | m_StaticEditorFlags: 0
375 | m_IsActive: 1
376 | --- !u!114 &832575518
377 | MonoBehaviour:
378 | m_ObjectHideFlags: 0
379 | m_CorrespondingSourceObject: {fileID: 0}
380 | m_PrefabInstance: {fileID: 0}
381 | m_PrefabAsset: {fileID: 0}
382 | m_GameObject: {fileID: 832575517}
383 | m_Enabled: 1
384 | m_EditorHideFlags: 0
385 | m_Script: {fileID: 11500000, guid: 172515602e62fb746b5d573b38a5fe58, type: 3}
386 | m_Name:
387 | m_EditorClassIdentifier:
388 | m_IsGlobal: 1
389 | priority: 0
390 | blendDistance: 0
391 | weight: 1
392 | sharedProfile: {fileID: 11400000, guid: a6560a915ef98420e9faacc1c7438823, type: 2}
393 | --- !u!4 &832575519
394 | Transform:
395 | m_ObjectHideFlags: 0
396 | m_CorrespondingSourceObject: {fileID: 0}
397 | m_PrefabInstance: {fileID: 0}
398 | m_PrefabAsset: {fileID: 0}
399 | m_GameObject: {fileID: 832575517}
400 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
401 | m_LocalPosition: {x: 0, y: 0, z: 0}
402 | m_LocalScale: {x: 1, y: 1, z: 1}
403 | m_ConstrainProportionsScale: 0
404 | m_Children: []
405 | m_Father: {fileID: 0}
406 | m_RootOrder: 2
407 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
408 | --- !u!1 &2144447264
409 | GameObject:
410 | m_ObjectHideFlags: 0
411 | m_CorrespondingSourceObject: {fileID: 0}
412 | m_PrefabInstance: {fileID: 0}
413 | m_PrefabAsset: {fileID: 0}
414 | serializedVersion: 6
415 | m_Component:
416 | - component: {fileID: 2144447266}
417 | - component: {fileID: 2144447265}
418 | - component: {fileID: 2144447267}
419 | m_Layer: 0
420 | m_Name: MenuDemo
421 | m_TagString: Untagged
422 | m_Icon: {fileID: 0}
423 | m_NavMeshLayer: 0
424 | m_StaticEditorFlags: 0
425 | m_IsActive: 1
426 | --- !u!114 &2144447265
427 | MonoBehaviour:
428 | m_ObjectHideFlags: 0
429 | m_CorrespondingSourceObject: {fileID: 0}
430 | m_PrefabInstance: {fileID: 0}
431 | m_PrefabAsset: {fileID: 0}
432 | m_GameObject: {fileID: 2144447264}
433 | m_Enabled: 1
434 | m_EditorHideFlags: 0
435 | m_Script: {fileID: 19102, guid: 0000000000000000e000000000000000, type: 0}
436 | m_Name:
437 | m_EditorClassIdentifier:
438 | m_PanelSettings: {fileID: 11400000, guid: acf6bffd1af10bc4b9c8e417887f3236, type: 2}
439 | m_ParentUI: {fileID: 0}
440 | sourceAsset: {fileID: 9197481963319205126, guid: de1780246a9eac0479b6ed49f4ffc9fa,
441 | type: 3}
442 | m_SortingOrder: 0
443 | --- !u!4 &2144447266
444 | Transform:
445 | m_ObjectHideFlags: 0
446 | m_CorrespondingSourceObject: {fileID: 0}
447 | m_PrefabInstance: {fileID: 0}
448 | m_PrefabAsset: {fileID: 0}
449 | m_GameObject: {fileID: 2144447264}
450 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
451 | m_LocalPosition: {x: 0, y: 0, z: 0}
452 | m_LocalScale: {x: 1, y: 1, z: 1}
453 | m_ConstrainProportionsScale: 0
454 | m_Children: []
455 | m_Father: {fileID: 0}
456 | m_RootOrder: 3
457 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
458 | --- !u!114 &2144447267
459 | MonoBehaviour:
460 | m_ObjectHideFlags: 0
461 | m_CorrespondingSourceObject: {fileID: 0}
462 | m_PrefabInstance: {fileID: 0}
463 | m_PrefabAsset: {fileID: 0}
464 | m_GameObject: {fileID: 2144447264}
465 | m_Enabled: 1
466 | m_EditorHideFlags: 0
467 | m_Script: {fileID: 11500000, guid: 4969a9dc89256034eb8038f9f5e61cf3, type: 3}
468 | m_Name:
469 | m_EditorClassIdentifier:
470 | uiDocument: {fileID: 2144447265}
471 |
--------------------------------------------------------------------------------
/Assets/Plugins/Demigiant/DOTween/Modules/DOTweenModuleUnityVersion.cs:
--------------------------------------------------------------------------------
1 | // Author: Daniele Giardini - http://www.demigiant.com
2 | // Created: 2018/07/13
3 |
4 | using System;
5 | using UnityEngine;
6 | using DG.Tweening.Core;
7 | using DG.Tweening.Plugins.Options;
8 | //#if UNITY_2018_1_OR_NEWER && (NET_4_6 || NET_STANDARD_2_0)
9 | //using Task = System.Threading.Tasks.Task;
10 | //#endif
11 |
12 | #pragma warning disable 1591
13 | namespace DG.Tweening
14 | {
15 | ///
16 | /// Shortcuts/functions that are not strictly related to specific Modules
17 | /// but are available only on some Unity versions
18 | ///
19 | public static class DOTweenModuleUnityVersion
20 | {
21 | #if UNITY_4_3 || UNITY_4_4 || UNITY_4_5 || UNITY_4_6 || UNITY_5 || UNITY_2017_1_OR_NEWER
22 | #region Unity 4.3 or Newer
23 |
24 | #region Material
25 |
26 | /// Tweens a Material's color using the given gradient
27 | /// (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
28 | /// Also stores the image as the tween's target so it can be used for filtered operations
29 | /// The gradient to useThe duration of the tween
30 | public static Sequence DOGradientColor(this Material target, Gradient gradient, float duration)
31 | {
32 | Sequence s = DOTween.Sequence();
33 | GradientColorKey[] colors = gradient.colorKeys;
34 | int len = colors.Length;
35 | for (int i = 0; i < len; ++i) {
36 | GradientColorKey c = colors[i];
37 | if (i == 0 && c.time <= 0) {
38 | target.color = c.color;
39 | continue;
40 | }
41 | float colorDuration = i == len - 1
42 | ? duration - s.Duration(false) // Verifies that total duration is correct
43 | : duration * (i == 0 ? c.time : c.time - colors[i - 1].time);
44 | s.Append(target.DOColor(c.color, colorDuration).SetEase(Ease.Linear));
45 | }
46 | s.SetTarget(target);
47 | return s;
48 | }
49 | /// Tweens a Material's named color property using the given gradient
50 | /// (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
51 | /// Also stores the image as the tween's target so it can be used for filtered operations
52 | /// The gradient to use
53 | /// The name of the material property to tween (like _Tint or _SpecColor)
54 | /// The duration of the tween
55 | public static Sequence DOGradientColor(this Material target, Gradient gradient, string property, float duration)
56 | {
57 | Sequence s = DOTween.Sequence();
58 | GradientColorKey[] colors = gradient.colorKeys;
59 | int len = colors.Length;
60 | for (int i = 0; i < len; ++i) {
61 | GradientColorKey c = colors[i];
62 | if (i == 0 && c.time <= 0) {
63 | target.SetColor(property, c.color);
64 | continue;
65 | }
66 | float colorDuration = i == len - 1
67 | ? duration - s.Duration(false) // Verifies that total duration is correct
68 | : duration * (i == 0 ? c.time : c.time - colors[i - 1].time);
69 | s.Append(target.DOColor(c.color, property, colorDuration).SetEase(Ease.Linear));
70 | }
71 | s.SetTarget(target);
72 | return s;
73 | }
74 |
75 | #endregion
76 |
77 | #endregion
78 | #endif
79 |
80 | #if UNITY_5_3_OR_NEWER || UNITY_2017_1_OR_NEWER
81 | #region Unity 5.3 or Newer
82 |
83 | #region CustomYieldInstructions
84 |
85 | ///
86 | /// Returns a that waits until the tween is killed or complete.
87 | /// It can be used inside a coroutine as a yield.
88 | /// Example usage:yield return myTween.WaitForCompletion(true);
89 | ///
90 | public static CustomYieldInstruction WaitForCompletion(this Tween t, bool returnCustomYieldInstruction)
91 | {
92 | if (!t.active) {
93 | if (Debugger.logPriority > 0) Debugger.LogInvalidTween(t);
94 | return null;
95 | }
96 | return new DOTweenCYInstruction.WaitForCompletion(t);
97 | }
98 |
99 | ///
100 | /// Returns a that waits until the tween is killed or rewinded.
101 | /// It can be used inside a coroutine as a yield.
102 | /// Example usage:yield return myTween.WaitForRewind();
103 | ///
104 | public static CustomYieldInstruction WaitForRewind(this Tween t, bool returnCustomYieldInstruction)
105 | {
106 | if (!t.active) {
107 | if (Debugger.logPriority > 0) Debugger.LogInvalidTween(t);
108 | return null;
109 | }
110 | return new DOTweenCYInstruction.WaitForRewind(t);
111 | }
112 |
113 | ///
114 | /// Returns a that waits until the tween is killed.
115 | /// It can be used inside a coroutine as a yield.
116 | /// Example usage:yield return myTween.WaitForKill();
117 | ///
118 | public static CustomYieldInstruction WaitForKill(this Tween t, bool returnCustomYieldInstruction)
119 | {
120 | if (!t.active) {
121 | if (Debugger.logPriority > 0) Debugger.LogInvalidTween(t);
122 | return null;
123 | }
124 | return new DOTweenCYInstruction.WaitForKill(t);
125 | }
126 |
127 | ///
128 | /// Returns a that waits until the tween is killed or has gone through the given amount of loops.
129 | /// It can be used inside a coroutine as a yield.
130 | /// Example usage:yield return myTween.WaitForElapsedLoops(2);
131 | ///
132 | /// Elapsed loops to wait for
133 | public static CustomYieldInstruction WaitForElapsedLoops(this Tween t, int elapsedLoops, bool returnCustomYieldInstruction)
134 | {
135 | if (!t.active) {
136 | if (Debugger.logPriority > 0) Debugger.LogInvalidTween(t);
137 | return null;
138 | }
139 | return new DOTweenCYInstruction.WaitForElapsedLoops(t, elapsedLoops);
140 | }
141 |
142 | ///
143 | /// Returns a that waits until the tween is killed
144 | /// or has reached the given time position (loops included, delays excluded).
145 | /// It can be used inside a coroutine as a yield.
146 | /// Example usage:yield return myTween.WaitForPosition(2.5f);
147 | ///
148 | /// Position (loops included, delays excluded) to wait for
149 | public static CustomYieldInstruction WaitForPosition(this Tween t, float position, bool returnCustomYieldInstruction)
150 | {
151 | if (!t.active) {
152 | if (Debugger.logPriority > 0) Debugger.LogInvalidTween(t);
153 | return null;
154 | }
155 | return new DOTweenCYInstruction.WaitForPosition(t, position);
156 | }
157 |
158 | ///
159 | /// Returns a that waits until the tween is killed or started
160 | /// (meaning when the tween is set in a playing state the first time, after any eventual delay).
161 | /// It can be used inside a coroutine as a yield.
162 | /// Example usage:yield return myTween.WaitForStart();
163 | ///
164 | public static CustomYieldInstruction WaitForStart(this Tween t, bool returnCustomYieldInstruction)
165 | {
166 | if (!t.active) {
167 | if (Debugger.logPriority > 0) Debugger.LogInvalidTween(t);
168 | return null;
169 | }
170 | return new DOTweenCYInstruction.WaitForStart(t);
171 | }
172 |
173 | #endregion
174 |
175 | #endregion
176 | #endif
177 |
178 | #if UNITY_2018_1_OR_NEWER
179 | #region Unity 2018.1 or Newer
180 |
181 | #region Material
182 |
183 | /// Tweens a Material's named texture offset property with the given ID to the given value.
184 | /// Also stores the material as the tween's target so it can be used for filtered operations
185 | /// The end value to reach
186 | /// The ID of the material property to tween (also called nameID in Unity's manual)
187 | /// The duration of the tween
188 | public static TweenerCore DOOffset(this Material target, Vector2 endValue, int propertyID, float duration)
189 | {
190 | if (!target.HasProperty(propertyID)) {
191 | if (Debugger.logPriority > 0) Debugger.LogMissingMaterialProperty(propertyID);
192 | return null;
193 | }
194 | TweenerCore t = DOTween.To(() => target.GetTextureOffset(propertyID), x => target.SetTextureOffset(propertyID, x), endValue, duration);
195 | t.SetTarget(target);
196 | return t;
197 | }
198 |
199 | /// Tweens a Material's named texture scale property with the given ID to the given value.
200 | /// Also stores the material as the tween's target so it can be used for filtered operations
201 | /// The end value to reach
202 | /// The ID of the material property to tween (also called nameID in Unity's manual)
203 | /// The duration of the tween
204 | public static TweenerCore DOTiling(this Material target, Vector2 endValue, int propertyID, float duration)
205 | {
206 | if (!target.HasProperty(propertyID)) {
207 | if (Debugger.logPriority > 0) Debugger.LogMissingMaterialProperty(propertyID);
208 | return null;
209 | }
210 | TweenerCore t = DOTween.To(() => target.GetTextureScale(propertyID), x => target.SetTextureScale(propertyID, x), endValue, duration);
211 | t.SetTarget(target);
212 | return t;
213 | }
214 |
215 | #endregion
216 |
217 | #region .NET 4.6 or Newer
218 |
219 | #if UNITY_2018_1_OR_NEWER && (NET_4_6 || NET_STANDARD_2_0)
220 |
221 | #region Async Instructions
222 |
223 | ///
224 | /// Returns an async that waits until the tween is killed or complete.
225 | /// It can be used inside an async operation.
226 | /// Example usage:await myTween.WaitForCompletion();
227 | ///
228 | public static async System.Threading.Tasks.Task AsyncWaitForCompletion(this Tween t)
229 | {
230 | if (!t.active) {
231 | if (Debugger.logPriority > 0) Debugger.LogInvalidTween(t);
232 | return;
233 | }
234 | while (t.active && !t.IsComplete()) await System.Threading.Tasks.Task.Yield();
235 | }
236 |
237 | ///
238 | /// Returns an async that waits until the tween is killed or rewinded.
239 | /// It can be used inside an async operation.
240 | /// Example usage:await myTween.AsyncWaitForRewind();
241 | ///
242 | public static async System.Threading.Tasks.Task AsyncWaitForRewind(this Tween t)
243 | {
244 | if (!t.active) {
245 | if (Debugger.logPriority > 0) Debugger.LogInvalidTween(t);
246 | return;
247 | }
248 | while (t.active && (!t.playedOnce || t.position * (t.CompletedLoops() + 1) > 0)) await System.Threading.Tasks.Task.Yield();
249 | }
250 |
251 | ///
252 | /// Returns an async that waits until the tween is killed.
253 | /// It can be used inside an async operation.
254 | /// Example usage:await myTween.AsyncWaitForKill();
255 | ///
256 | public static async System.Threading.Tasks.Task AsyncWaitForKill(this Tween t)
257 | {
258 | if (!t.active) {
259 | if (Debugger.logPriority > 0) Debugger.LogInvalidTween(t);
260 | return;
261 | }
262 | while (t.active) await System.Threading.Tasks.Task.Yield();
263 | }
264 |
265 | ///
266 | /// Returns an async that waits until the tween is killed or has gone through the given amount of loops.
267 | /// It can be used inside an async operation.
268 | /// Example usage:await myTween.AsyncWaitForElapsedLoops();
269 | ///
270 | /// Elapsed loops to wait for
271 | public static async System.Threading.Tasks.Task AsyncWaitForElapsedLoops(this Tween t, int elapsedLoops)
272 | {
273 | if (!t.active) {
274 | if (Debugger.logPriority > 0) Debugger.LogInvalidTween(t);
275 | return;
276 | }
277 | while (t.active && t.CompletedLoops() < elapsedLoops) await System.Threading.Tasks.Task.Yield();
278 | }
279 |
280 | ///
281 | /// Returns an async that waits until the tween is killed or started
282 | /// (meaning when the tween is set in a playing state the first time, after any eventual delay).
283 | /// It can be used inside an async operation.
284 | /// Example usage:await myTween.AsyncWaitForPosition();
285 | ///
286 | /// Position (loops included, delays excluded) to wait for
287 | public static async System.Threading.Tasks.Task AsyncWaitForPosition(this Tween t, float position)
288 | {
289 | if (!t.active) {
290 | if (Debugger.logPriority > 0) Debugger.LogInvalidTween(t);
291 | return;
292 | }
293 | while (t.active && t.position * (t.CompletedLoops() + 1) < position) await System.Threading.Tasks.Task.Yield();
294 | }
295 |
296 | ///
297 | /// Returns an async that waits until the tween is killed.
298 | /// It can be used inside an async operation.
299 | /// Example usage:await myTween.AsyncWaitForKill();
300 | ///
301 | public static async System.Threading.Tasks.Task AsyncWaitForStart(this Tween t)
302 | {
303 | if (!t.active) {
304 | if (Debugger.logPriority > 0) Debugger.LogInvalidTween(t);
305 | return;
306 | }
307 | while (t.active && !t.playedOnce) await System.Threading.Tasks.Task.Yield();
308 | }
309 |
310 | #endregion
311 | #endif
312 |
313 | #endregion
314 |
315 | #endregion
316 | #endif
317 | }
318 |
319 | // █████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
320 | // ███ CLASSES █████████████████████████████████████████████████████████████████████████████████████████████████████████
321 | // █████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
322 |
323 | #if UNITY_5_3_OR_NEWER || UNITY_2017_1_OR_NEWER
324 | public static class DOTweenCYInstruction
325 | {
326 | public class WaitForCompletion : CustomYieldInstruction
327 | {
328 | public override bool keepWaiting { get {
329 | return t.active && !t.IsComplete();
330 | }}
331 | readonly Tween t;
332 | public WaitForCompletion(Tween tween)
333 | {
334 | t = tween;
335 | }
336 | }
337 |
338 | public class WaitForRewind : CustomYieldInstruction
339 | {
340 | public override bool keepWaiting { get {
341 | return t.active && (!t.playedOnce || t.position * (t.CompletedLoops() + 1) > 0);
342 | }}
343 | readonly Tween t;
344 | public WaitForRewind(Tween tween)
345 | {
346 | t = tween;
347 | }
348 | }
349 |
350 | public class WaitForKill : CustomYieldInstruction
351 | {
352 | public override bool keepWaiting { get {
353 | return t.active;
354 | }}
355 | readonly Tween t;
356 | public WaitForKill(Tween tween)
357 | {
358 | t = tween;
359 | }
360 | }
361 |
362 | public class WaitForElapsedLoops : CustomYieldInstruction
363 | {
364 | public override bool keepWaiting { get {
365 | return t.active && t.CompletedLoops() < elapsedLoops;
366 | }}
367 | readonly Tween t;
368 | readonly int elapsedLoops;
369 | public WaitForElapsedLoops(Tween tween, int elapsedLoops)
370 | {
371 | t = tween;
372 | this.elapsedLoops = elapsedLoops;
373 | }
374 | }
375 |
376 | public class WaitForPosition : CustomYieldInstruction
377 | {
378 | public override bool keepWaiting { get {
379 | return t.active && t.position * (t.CompletedLoops() + 1) < position;
380 | }}
381 | readonly Tween t;
382 | readonly float position;
383 | public WaitForPosition(Tween tween, float position)
384 | {
385 | t = tween;
386 | this.position = position;
387 | }
388 | }
389 |
390 | public class WaitForStart : CustomYieldInstruction
391 | {
392 | public override bool keepWaiting { get {
393 | return t.active && !t.playedOnce;
394 | }}
395 | readonly Tween t;
396 | public WaitForStart(Tween tween)
397 | {
398 | t = tween;
399 | }
400 | }
401 | }
402 | #endif
403 | }
404 |
--------------------------------------------------------------------------------