Esempio n. 1
0
    public override void DrawAdvancedOptions(Material material)
    {
        SimpleLitGUI.Advanced(shadingModelProperties);
        base.DrawAdvancedOptions(material);
        // Draw
        materialEditor.ShaderProperty(_PosTexProp, "Positions Animations", 1);
        materialEditor.ShaderProperty(_NmlTexProp, "Normal Animations", 1);
        materialEditor.ShaderProperty(_DTProp, "Delta Time", 1);
        materialEditor.ShaderProperty(_LengthProp, "Length", 1);
        materialEditor.ShaderProperty(_LoopProp, "Loop", 1);

        if (_LoopProp.floatValue > 0)
        {
            material.EnableKeyword("_ANIM_LOOP");
        }
        else
        {
            material.DisableKeyword("_ANIM_LOOP");
        }
    }
 public override void DrawAdvancedOptions(Material material)
 {
     SimpleLitGUI.Advanced(shadingModelProperties);
     base.DrawAdvancedOptions(material);
 }