public static string GetConnectionError(bool clear)
	{
#if HOUDINIENGINEUNITY_ENABLED
	    int bufferLength = 0;
	    HAPI_Result result = HEU_HAPIImports.HAPI_GetConnectionErrorLength(out bufferLength);
	    if (result == HAPI_Result.HAPI_RESULT_SUCCESS)
	    {
		if (bufferLength > 0)
		{
		    StringBuilder sb = new StringBuilder(bufferLength);
		    result = HEU_HAPIImports.HAPI_GetConnectionError(sb, bufferLength, clear);
		    if (result == HAPI_Result.HAPI_RESULT_SUCCESS)
		    {
			return sb.ToString();
		    }
		}
		else
		{
		    // Empty string for no error
		    return "";
		}
	    }
#endif
	    return "Failed to get connection error";
	}
	public static bool ClearConnectionError()
	{
#if HOUDINIENGINEUNITY_ENABLED
	    HAPI_Result result = HEU_HAPIImports.HAPI_ClearConnectionError();
	    return (result == HAPI_Result.HAPI_RESULT_SUCCESS);
#else
	    return true;
#endif
	}