Parsing.ParseFogParameters C# (CSharp) Method

ParseFogParameters() public static method

public static ParseFogParameters ( string literal, FogParameters, &result ) : bool
literal string
result FogParameters,
return bool
    public static bool ParseFogParameters(string literal, ref FogParameters result)
    {
        //Debug.Log("Parsing " + literal + " as FogParams");
        var i = 0;
        if (!ParseRgb(literal, ref i, ref result.Color) || !ParseDecimal(literal, ref i, ref result.Density))
        {
            Debug.LogWarning("Parsing '" + literal + "' as FogParameters failed; skipping the rest.");
            return false;
        }
        return true;
    }