docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FileNameGenerator

    A class that provides a way to generate names of output files, with support for wildcards.

    Inheritance
    object
    FileNameGenerator
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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 "/").

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023