Skip to content

UOperatingSystemVideoFile

#include <OperatingSystemSimulator/Public/Files/OperatingSystemVideoFile.h>
class UOperatingSystemVideoFile

Defined in OperatingSystemVideoFile.h:19

Inherits: UOperatingSystemFile

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemVideoFile["UOperatingSystemVideoFile"]
  class UOperatingSystemFile["UOperatingSystemFile"]
  UOperatingSystemFile <|-- UOperatingSystemVideoFile
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemVideoFile {
    +UOperatingSystemVideoFile()
    +MediaSource : TSoftObjectPtr< UMediaSource >
    +OnValidate(FGenericError &OutError) override
  }

Represents an operating system video file.

UOperatingSystemVideoFile is a subclass of UOperatingSystemFile that represents a video file in the operating system. It provides functionality to store and validate a video media source.

ReturnNameDescription
UOperatingSystemVideoFile

UOperatingSystemVideoFile()

Defined in OperatingSystemVideoFile.h:31

ReturnNameDescription
TSoftObjectPtr< UMediaSource >MediaSourceVideo media source.

TSoftObjectPtr< UMediaSource > MediaSource

Defined in OperatingSystemVideoFile.h:27 Video media source.

ReturnNameDescription
voidOnValidate virtual overrideValidates the operating system video file.

virtual override

virtual void OnValidate(FGenericError & OutError) override

Defined in OperatingSystemVideoFile.h:43 Validates the operating system video file.

This method checks if the MediaSource is null and sets the OutError object if it is. The error message will be of the format ”‘%s’ has no media source set.”, where s is replaced by the file name returned from GetFileName().

  • OutError The reference to a FGenericError object that will store the error information if the validation fails.