Class FileNameGenerator
A class that provides a way to generate names of output files, with support for wildcards.
Inherited Members
Namespace: UnityEditor.Recorder
Assembly: solution.dll
Syntax
[Serializable]
public class FileNameGenerator
Properties
Name | Description |
---|---|
FileName | Stores the default set of tags that make up the output file name. |
ForceAssetsFolder | Specifies whether the generated file is saved in the Assets folder or not. |
Leaf | Indicates the filename part of the full path (without the extension). |
Root | Indicates the root location the paths are relative to. |
Methods
Name | Description |
---|---|
AddWildcard(string, Func<RecordingSession, string>) | Adds a tag and the corresponding callback to resolve it. |
BuildAbsolutePath(RecordingSession) | Builds an absolute path from the list of configured output file tags replaced by the RecordingSession. |
CreateDirectory(RecordingSession) | Creates the directory structure containing the output file from the list of tags and a RecordingSession. |
SanitizePath(string) | Makes the output file path compliant with any OS (replacing any "" by "/"). |