AcTools.Render.Kn5Specific.Materials.Kn5MaterialExtend.GetPropertyValueAByName C# (CSharp) Method

GetPropertyValueAByName() public static method

public static GetPropertyValueAByName ( this mat, string name, float defaultValue = 0.0f ) : float
mat this
name string
defaultValue float
return float
        public static float GetPropertyValueAByName(this Kn5Material mat, string name, float defaultValue = 0.0f) {
            var property = mat.GetPropertyByName(name);
            return property?.ValueA ?? defaultValue;
        }