M

ViewDisplayBackground.CreateImage

Description:
Creates an object that can be passed to View.SetBackground method to set the background of the Image type.
public static ViewDisplayBackground CreateImage(
	string imagePath,
	ViewDisplayBackgroundImageFlags flags,
	UV imageOffsets,
	UV imageScales
)
  • String
    imagePath
    File path with the image to be used.
  • flags
    Combination of flags (binary) that control how image is displayed in relation to the view/crop boundary.
  • imageOffsets
    Horizontal (u) and vertical (v) offsets of the image.
  • imageScales
    Horizontal (u) and vertical (v) scales of the image (1 == no change).
Return Value ViewDisplayBackground New background object to pass to View.SetBackground .