0.0.3 • Published 3 years ago

kr.seonghwan.shader-almighty v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago