{"id":13661840,"url":"https://github.com/inc8877/GraphicsConfigurator","last_synced_at":"2025-04-25T03:31:37.639Z","repository":{"id":39347165,"uuid":"345061789","full_name":"inc8877/GraphicsConfigurator","owner":"inc8877","description":"API for managing URP asset parameters, including hacking of parameters that are forbidden to change","archived":false,"fork":false,"pushed_at":"2023-04-24T20:20:16.000Z","size":57,"stargazers_count":52,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-08-02T05:13:24.991Z","etag":null,"topics":["3d","api","configurator","configuring","graphics","rendering","settings","unity","universal-render-pipeline","urp","workaround"],"latest_commit_sha":null,"homepage":"","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/inc8877.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-03-06T10:07:43.000Z","updated_at":"2024-07-08T01:51:30.000Z","dependencies_parsed_at":"2024-04-21T09:49:10.313Z","dependency_job_id":"902cc7d4-96d6-4d78-b80c-5a582c41fe51","html_url":"https://github.com/inc8877/GraphicsConfigurator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inc8877%2FGraphicsConfigurator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inc8877%2FGraphicsConfigurator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inc8877%2FGraphicsConfigurator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inc8877%2FGraphicsConfigurator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inc8877","download_url":"https://codeload.github.com/inc8877/GraphicsConfigurator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223979921,"owners_count":17235490,"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":["3d","api","configurator","configuring","graphics","rendering","settings","unity","universal-render-pipeline","urp","workaround"],"created_at":"2024-08-02T05:01:42.654Z","updated_at":"2024-11-10T16:32:20.250Z","avatar_url":"https://github.com/inc8877.png","language":"C#","funding_links":[],"categories":["C\\#"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/29813954/115538937-11fc8f00-a2a5-11eb-8547-b8f9d02c7278.png\"\u003e\n\u003c/p\u003e\n\n# GraphicsConfigurator\n\n[![openupm](https://img.shields.io/npm/v/com.inc8877.graphicsconfigurator?label=openupm\u0026registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.inc8877.graphicsconfigurator/)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/f6b7fb15b9f24273b303c3b79409cbfb)](https://www.codacy.com/gh/inc8877/GraphicsConfigurator/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=inc8877/GraphicsConfigurator\u0026amp;utm_campaign=Badge_Grade)\n\nAPI for managing URP asset parameters, including hacking of parameters that are forbidden to change.\n\n## Table of Contents\n\n- [GraphicsConfigurator](#graphicsconfigurator)\n  - [Table of Contents](#table-of-contents)\n  - [Download](#download)\n  - [How to use](#how-to-use)\n  - [Installation](#installation)\n    - [Install via OpenUPM](#install-via-openupm)\n    - [Install via Git URL](#install-via-git-url)\n    - [Include GraphicsConfigurator `.dll` into the project](#include-graphicsconfigurator-dll-into-the-project)\n  - [Examples](#examples)\n  - [Tested devices](#tested-devices)\n  - [Known issues](#known-issues)\n\n\u003cdetails\u003e\u003csummary\u003eProblem\u003c/summary\u003e\n\u003cp\u003e\n\nUnity closed access to change important parameters such as shadows casting, shadow resolution, lighting modes, etc.\n\nIf you want to give the user the ability to customize the resolution of shadows, then the suggestion from unit sounds like this: ***\"create multiple assets and rearrange them\"***\n\nIf you follow this way, you will have to create hundreds of pipeline assets to give users the ability to customize the graphics settings.\n\nAt the moment the Unity dev team does not disclose the reasons why they closed the ability to change many important parameters.\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eSolution\u003c/summary\u003e\n\u003cp\u003e\nCreate a wrapper to bypass the restrictions to modify private parameters.\n\u003c/p\u003e\n\u003c/details\u003e\n\n## Download\n\n|      URP       |                                        LINK                                         |\n| :------------: | :---------------------------------------------------------------------------------: |\n|     11.0.0     | [:arrow_down:](https://github.com/inc8877/GraphicsConfigurator/releases/tag/v1.1.1) |\n| 10.3.1, 10.3.2 | [:arrow_down:](https://github.com/inc8877/GraphicsConfigurator/releases/tag/v1.0.0) |\n\n## How to use\n\n1. Add wrapper to your project ([installation](#installation))\n2. Include wrapper library in code ([how](#examples))\n3. Change any parameters of the URP Asset in one line. In the bag :clap:\n\n## Installation\n\n### Install via OpenUPM\n\nThe package is available on the [openupm](https://openupm.com) registry. It's recommended to install it via [openupm-cli](https://github.com/openupm/openupm-cli).\n\n```c#\nopenupm add com.inc8877.graphicsconfigurator\n```\n\n### Install via Git URL\n\nOpen `Packages/manifest.json` with your favorite text editor. Add the following line to the dependencies block.\n\n```c#\n{\n  \"dependencies\": {\n    \"com.inc8877.graphicsconfigurator\": \"https://github.com/inc8877/GraphicsConfigurator.git\",\n   }\n}\n```\n\n### Include GraphicsConfigurator `.dll` into the project\n\nAdd `.dll` to your project, you can find it in [every release](https://github.com/inc8877/GraphicsConfigurator/releases). You can find a suitable version [here](#download)\n\n## Examples\n\nFirst, plugin necessary libraries\n\n```c#\nusing GraphicsConfigurator.API.URP;\nusing UnityEngine.Rendering.Universal;\nusing ShadowResolution = UnityEngine.Rendering.Universal.ShadowResolution;\n```\n\n\u003cbr\u003eTo change the active URP Asset, you need to do the following:\n\n```c#\n// ...\n// code somewhere\nConfiguring.CurrentURPA.OpaqueDownsampling(Downsampling._4xBox);\nConfiguring.CurrentURPA.AntiAliasing(MsaaQuality._4x);\n\nConfiguring.CurrentURPA.MainLightMode(LightRenderingMode.PerPixel);\nConfiguring.CurrentURPA.MainLightShadowsCasting(true);\nConfiguring.CurrentURPA.MainLightShadowResolution(ShadowResolution._1024);\n// ...\n```\n\n\u003cbr\u003eIf you want to work with a specific URP Asset, do it like this:\n\n```c#\nprivate URPAssetConfiguring URPA = new URPAssetConfiguring(target);\n\n// ...\n// code somewhere\nURPA.MainLightShadowsCasting(true);\nURPA.Cascade3Split(new Vector2(0.1f, 0.3f));\n// ...\n```\n\n## Tested devices\n\n|    CPU    |         GPU         |       OS       | Graphics API | Backend | .Net  |\n| :-------: | :-----------------: | :------------: | :----------: | :-----: | :---: |\n|  SD 855   |     Adreno 640      | Android 10.3.8 |    Vulkan    | IL2CPP  |  4.x  |\n|  SD 845   |     Adreno 630      | Android 10.3.7 |    Vulkan    | IL2CPP  |  4.x  |\n| i7 6700HQ | AMD Randeon Pro 450 |  macOS 11.2.1  |    Metal     | IL2CPP  |  4.x  |\n\n## Known issues\n\n- When there is a change in the additional light rendering mode with the display of the target asset in the inspector,\n  then the mode changes briefly, after which it has the parameters that were set before the change was attempted.\n  This happens only in editor mode, it is not observed in assemblies.\n  If, in editor mode, you try to change the rendering mode of the additional light and do not display the target asset in the inspector,\n  then everything is successful.\n  Presumably the problem lies in the way the asset editor works.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finc8877%2FGraphicsConfigurator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finc8877%2FGraphicsConfigurator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finc8877%2FGraphicsConfigurator/lists"}