以下の内容はhttps://baba-s.hatenablog.com/entry/2019/03/12/090000より取得しました。


【Unity】Shader で 2つの MaterialPropertyDrawer が使用できる「ShaderInspector」紹介

はじめに

「ShaderInspector」を Unity プロジェクトに導入することで
Shader で 2つの MaterialPropertyDrawer が使用できます

使用例

Disable

Shader "Mya/TestShader"
{
    Properties
    {
        _MainTex1 ("Texture1", 2D) = "white" {}
        _Color1 ("Color1" , Color) = (1,1,1,1)
        _Float1 ("Float1" , Float) = 0
        _Range1 ("Range1" , Range(0,1)) = 0
        _VetorVal1 ("VectorVal1" , Vector) = (0,0,0,0)

        [Disable]_MainTex2 ("Texture2", 2D) = "white" {}
        [Disable]_Color2 ("Color2" , Color) = (1,1,1,1) 
        [Disable]_Float2 ("Float2" , Float) = 0
        [Disable]_Range2 ("Range2" , Range(0,1)) = 0
        [Disable]_VetorVal2 ("VectorVal2" , Vector) = (0,0,0,0)
        
        ...

f:id:baba_s:20181231203911p:plain

Int

Shader "Unlit/IntDraweTest"
{
    Properties
    {
        _IntValue("float Value" , float) = 1
        _IntValue2("Int Value" , int) = 1
        [Int]_IntValue3("float Value" , float) = 1
        [Int]_IntValue4("Int Value" , int) = 1
        
        ...

f:id:baba_s:20181231203918p:plain




以上の内容はhttps://baba-s.hatenablog.com/entry/2019/03/12/090000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14