{"id":21958917,"url":"https://github.com/connffuused/formerlyserializedasforshaderlab","last_synced_at":"2025-04-23T17:26:15.518Z","repository":{"id":125726876,"uuid":"403039510","full_name":"connffuused/FormerlySerializedAsForShaderLab","owner":"connffuused","description":"[FormerlySerializedAs] attribute for ShaderLab in Unity.","archived":false,"fork":false,"pushed_at":"2021-12-30T01:11:06.000Z","size":25,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-16T06:17:57.362Z","etag":null,"topics":["formerlyserializedas","property","rename","shader","shaderlab","unity","unity3d","utility"],"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/connffuused.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,"publiccode":null,"codemeta":null}},"created_at":"2021-09-04T11:31:29.000Z","updated_at":"2024-08-27T09:13:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"9adfa0b5-ce20-4ca3-9636-e36cb94c650f","html_url":"https://github.com/connffuused/FormerlySerializedAsForShaderLab","commit_stats":null,"previous_names":["seonghwan-dev/shader-almighty","kyarusii/formerlyserializedasforshaderlab","connffuused/formerlyserializedasforshaderlab","shaderqu/formerlyserializedasforshaderlab"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connffuused%2FFormerlySerializedAsForShaderLab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connffuused%2FFormerlySerializedAsForShaderLab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connffuused%2FFormerlySerializedAsForShaderLab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connffuused%2FFormerlySerializedAsForShaderLab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/connffuused","download_url":"https://codeload.github.com/connffuused/FormerlySerializedAsForShaderLab/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250479309,"owners_count":21437341,"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":["formerlyserializedas","property","rename","shader","shaderlab","unity","unity3d","utility"],"created_at":"2024-11-29T09:17:49.959Z","updated_at":"2025-04-23T17:26:15.498Z","avatar_url":"https://github.com/connffuused.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FormerlySerializedAs For ShaderLab  \nblog post : https://seonghwan.tistory.com/122\n\n## Features  \n\n### [FormerlySerializedAs()] for shader  \n\nThis attribute in shader file will be a rule to re-serialize your materials that uses the shader. It will read the values from the filesystem in `*.mat`, and put the values at the property of the new name. \n\n#### Example\n\n```shaderlab\nShader \"Custom/UI/Default\"\n{\n    Properties\n    {\n        [FormerlySerializedAs(_PrevValue)] _ChangedValue (\"Changed Value\", Float) = 0\n        ...\n    }\n    ...\n}\n```\n\n![image](https://user-images.githubusercontent.com/79823287/132132555-04eb2577-7073-47ba-b4b3-840fe26e8bd9.png)\n\n\n`[FormerlySerializedAs(OLD_NAME)]` property can specify what you want to re-serialize the materials on postprocess timing from the callback ' `AssetPostprocessor`'. This works likes [FormerlySerializedAs](https://docs.unity3d.com/ScriptReference/Serialization.FormerlySerializedAsAttribute.html) in MonoScript API. \n\n\n## TODO\n\n- Replacement tool\n- Clean up unused property against binded shader.\n\n\n\n## Install\n\n### hosted by npm.js\n\n```json\n{\n    \"dependencies\": {\n        \"kr.seonghwan.shader-almighty\": \"0.0.3\"\n    }\n}\n```\n\n```json\n{\n    \"scopedRegistries\": [\n        {\n            \"name\": \"npm-seonghwan\",\n            \"url\": \"https://registry.npmjs.org\",\n            \"scopes\": [\n                \"kr.seonghwan\",\n                \"aaubry\"\n            ]\n        }\n    ]\n}\n```\n\n\n\n## Dependencies\n\n- [YAML dotnet](https://github.com/aaubry/YamlDotNet) from [Antoine Aubry](https://github.com/aaubry)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnffuused%2Fformerlyserializedasforshaderlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnffuused%2Fformerlyserializedasforshaderlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnffuused%2Fformerlyserializedasforshaderlab/lists"}