forResolutions

fun FileHandleResolver.forResolutions(vararg resolutions: ResolutionFileResolver.Resolution): ResolutionFileResolver

Decorates this FileHandleResolver with a ResolutionFileResolver.

Return

a new ResolutionFileResolver decorating this resolver.

Parameters

resolutions

each Resolution points to a folder with assets specific to the chosen bounds. During asset loading, screen width and height are chosen to select the closest matching Resolution, which will be used to select the assets directory.

See also

ResolutionFileResolver