kr.seonghwan.shader-almighty
v0.0.3
Published
This package helps to modify properties of materials and shader.
Downloads
4
Readme
Shader Almighty
Features
[FormerlySerializedAs()] for shader
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.
Example
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.
TODO
- Replacement tool
- Clean up unused property against binded shader.
Install
hosted by npm.js
{
"dependencies": {
"kr.seonghwan.shader-almighty": "0.0.2"
}
}
{
"scopedRegistries": [
{
"name": "npm-seonghwan",
"url": "https://registry.npmjs.org",
"scopes": [
"kr.seonghwan",
"aaubry"
]
}
]
}
Dependencies
- YAML dotnet from Antoine Aubry