def validate_unreal_path_by_property(properties, property_name, detailed_message=False):
    """
    This function returns a validation message about the property passed in
    :param object properties: The property group that contains variables that maintain the addon's correct state.
    :param str property_name: Property Name to check
    :param bool detailed_message: Boolean to determine whether to return a detailed message
    :return str: The message from validation
    """

    message = ""
    if properties.path_mode in ['send_to_unreal', 'both']:
        if property_name == "incorrect_unreal_mesh_folder_path":
            if getattr(properties, property_name):
                message = f'The mesh folder "{properties.unreal_mesh_folder_path}" needs to start with "/Game`". '

                if detailed_message:
                    message += f'Please make sure that the path under "Mesh Folder (Unreal)" was entered correctly.'

            return message

        if property_name == "incorrect_unreal_animation_folder_path":
            if getattr(properties, property_name):
                message = f'The animation folder "{properties.unreal_animation_folder_path}" needs to start with "/Game`". '

                if detailed_message:
                    message += f'Please make sure that the path under "Animation Folder (Unreal)" was entered correctly.'

            return message

        if property_name == "incorrect_unreal_skeleton_path":
            if getattr(properties, property_name):
                message = f'The skeleton asset "{properties.unreal_skeleton_asset_path}" does not exist in unreal.'

                if detailed_message:
                    message += f' Please make sure that the path under "Skeleton Asset (Unreal)" was entered correctly.'

            return message

    return message