Load Texture 2D From File

load-texture-2-from-file

DESCRIPTION:

Loads an image file from the disk,  and creates an Unreal Engine texture 2D from it.

INPUTS:

  • Target [PhotoComponent]: Virtual Mirror photo component  object.
  • Full File Path [FString]: Absolute path to the  image file.

OUTPUTS:

  • IsValid [Boolean]: True if image files is loaded successfully.
  • Width [Integer]: Width of the texture
  • Height [Integer]: Height of the texture
  • Return Value [UTexture2D]: Image file in Unreal Engine texture 2D format.