blog post : https://seonghwan.tistory.com/122
This 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.
Shader "Custom/UI/Default"
{
Properties
{
[FormerlySerializedAs(_PrevValue)] _ChangedValue ("Changed Value", Float) = 0
...
}
...
}[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 in MonoScript API.
- Replacement tool
- Clean up unused property against binded shader.
{
"dependencies": {
"kr.seonghwan.shader-almighty": "0.0.3"
}
}{
"scopedRegistries": [
{
"name": "npm-seonghwan",
"url": "https://registry.npmjs.org",
"scopes": [
"kr.seonghwan",
"aaubry"
]
}
]
}- YAML dotnet from Antoine Aubry
