Navigation
API > API/Runtime > API/Runtime/MovieSceneCapture > API/Runtime/MovieSceneCapture/UMovieSceneCaptureProtocolBase
Description
Test whether this capture protocol thinks the file should be written to. Only called when we're not overwriting existing files. By default, we simply test for the file's existence, however this can be overridden to afford complex behaviour like writing out multiple video files for different file names
| Name | CanWriteToFile |
| Type | function |
| Header File | /Engine/Source/Runtime/MovieSceneCapture/Public/MovieSceneCaptureProtocolBase.h |
| Include Path | #include "MovieSceneCaptureProtocolBase.h" |
| Source | /Engine/Source/Runtime/MovieSceneCapture/Private/MovieSceneCaptureProtocolBase.cpp |
bool CanWriteToFile
(
const TCHAR * InFilename,
bool bOverwriteExisting
) const
Whether we should deem this file writable or not
Parameters
| Name | Remarks |
|---|---|
| InFilename | The filename to test |
| bOverwriteExisting | Whether we are allowed to overwrite existing files |