setBackgroundImage abstract method
Set the background image to path
(which should have a file extension .png, .jpg, or .ktx).
This will be rendered at the maximum depth (i.e. behind all other objects including the skybox).
If fillHeight
is false, the image will be rendered at its original size. Note this may cause issues with pixel density so be sure to specify the correct resolution
If fillHeight
is true, the image will be stretched/compressed to fit the height of the viewport.
Implementation
Future setBackgroundImage(String path, {bool fillHeight = false});