{"id":13786178,"url":"https://github.com/rfadeev/dotween-configs","last_synced_at":"2025-03-23T15:31:15.838Z","repository":{"id":139273968,"uuid":"120987037","full_name":"rfadeev/dotween-configs","owner":"rfadeev","description":"Configs to setup DOTween's tween parameters via Unity editor.","archived":false,"fork":false,"pushed_at":"2023-02-09T22:28:52.000Z","size":27,"stargazers_count":26,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T21:52:09.586Z","etag":null,"topics":["csharp","dotween","unity","unity-editor"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rfadeev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-02-10T05:21:03.000Z","updated_at":"2024-09-10T02:55:26.000Z","dependencies_parsed_at":"2024-01-17T05:13:59.505Z","dependency_job_id":"eb9f1d06-5bd8-4486-9b36-f5fbf61054fd","html_url":"https://github.com/rfadeev/dotween-configs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rfadeev%2Fdotween-configs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rfadeev%2Fdotween-configs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rfadeev%2Fdotween-configs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rfadeev%2Fdotween-configs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rfadeev","download_url":"https://codeload.github.com/rfadeev/dotween-configs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245122741,"owners_count":20564364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotween","unity","unity-editor"],"created_at":"2024-08-03T19:01:11.067Z","updated_at":"2025-03-23T15:31:15.438Z","avatar_url":"https://github.com/rfadeev.png","language":"C#","readme":"[![license](https://img.shields.io/github/license/rfadeev/dotween-configs.svg)](https://github.com/rfadeev/unity-forge-anim-callbacks/blob/master/LICENSE.md)\n\n# DOTween Configs\nConfigs to setup DOTween's tween parameters via Unity editor.\n\n## Motivation\nWhile [DOTween](http://dotween.demigiant.com) provides shortcuts to start tween with given parameters,\nthese parameters are usually either hardcoded, extracted to constants or serialized by Unity.\nOnly latter approach allows tuning parameters via Unity editor without code changes. Since DOTween API\nexpects each parameter to be passed separately, it's not convinent to setup various tweens this way.\nThe goal of this project is to ease such configuration.\n\n## How to use\nDOTween is required for tween configs. You can download it [here](http://dotween.demigiant.com/download.php).\n\nAdd this repository as submodule under `Assets` folder or download it and put to `Assets` folder of your Unity project.\nImport `DOTweenConfigs` namespace to use tween configs.\n\nThere are two ways to use tween configs: either use [serializable version](https://github.com/rfadeev/dotween-configs/tree/master/Configs/Serializable) or [scriptable object](https://github.com/rfadeev/dotween-configs/tree/master/Configs/ScriptableObject) one.\nScriptable object version allows sharing same tween config between several objects.\n\n### Serializable version\nAdd tween config serializable field to your object and setup tween parameters.\nUse coressponding extension method to start tween with this tween config.\n\nExample of serializable [position 3D tween config](https://github.com/rfadeev/dotween-configs/blob/master/Configs/Serializable/Position/Position3DTweenConfig.cs)\nused in `DOMove` extension method:\n```chsarp\nusing UnityEngine;\nusing DOTweenConfigs;\n\npublic class DOMoveSerializableExample : MonoBehaviour\n{\n    [SerializeField]\n    private Position3DTweenConfig tweenConfig;\n\n    private void Start()\n    {\n        transform.DOMove(tweenConfig);\n    }\n}\n```\n\n### Scriptable object version\nFirst create scriptable object asset for tween config. Available options can be found in create asset menu.\nNavigate there either via top Unity panel \"Assets/Create/DOTweenConfigs\" or via \"Create\" button in project\nwindow: \"Create/DOTweenConfigs\". After clicking desired config, new asset file with tween config is created.\nSetup tween parameters for tween config asset via inspector.\nAdd tween config asset serializable field to your object and link desired tween config asset. \nUse coressponding extension method to start tween with this tween config asset.\n\nExample of [position 3D tween config scriptable object](https://github.com/rfadeev/dotween-configs/blob/master/Configs/ScriptableObject/Position/Position3DTweenConfigAsset.cs)\nused in `DOMove` extension method:\n```chsarp\nusing UnityEngine;\nusing DOTweenConfigs;\n\npublic class DOMoveScriptableObjectExample : MonoBehaviour\n{\n    [SerializeField]\n    private Position3DTweenConfig tweenConfigAsset;\n\n    private void Start()\n    {\n        transform.DOMove(tweenConfigAsset.TweenConfig);\n    }\n}\n```\n\n## Installation\nProject supports Unity Package Manager. To install project as Git package, update package manifest dependencies to have `com.rfadeev.dotweenconfigs` package:\n```json\n{\n  \"dependencies\": {\n    \"com.rfadeev.dotweenconfigs\": \"https://github.com/rfadeev/dotween-configs\"\n  }\n}\n```\n\nTo use DOTween configs for Physics, Physics2D, Sprites and UI DOTween modules, additionnal setup is required.\n1. Create assembly definition file for DOTween modules. For that click \"Create ASMDEF...\" button in DOTween Utility Panel.\n2. Add following defines to your [scripting define symbols](https://docs.unity3d.com/Manual/CustomScriptingSymbols.html)\n    * `DOTWEEN_PHYSICS_MODULE_ENABLED` for Physics module\n    * `DOTWEEN_PHYSICS2D_MODULE_ENABLED` for Physics2D module\n    * `DOTWEEN_SPRITE_MODULE_ENABLED` for Sprite module. It is called Sprites module in the DOTween Utility Panel, but Sprite in the DOTween code.\n    * `DOTWEEN_UI_MODULE_ENABLED` for UI module\n","funding_links":[],"categories":["Easing"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frfadeev%2Fdotween-configs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frfadeev%2Fdotween-configs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frfadeev%2Fdotween-configs/lists"}