docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator implicit operator

    implicit operator FilePath(string)

    Convert a string into a FilePath

    Declaration
    public static implicit operator FilePath(string str)
    Parameters
    Type Name Description
    string str

    The value that needs to be converted

    Returns
    Type Description
    FilePath

    Returns the string converted to a FilePath

    implicit operator string(FilePath)

    Convert back a FilePath to a string

    Declaration
    public static implicit operator string(FilePath path)
    Parameters
    Type Name Description
    FilePath path

    The value that needs to be converted

    Returns
    Type Description
    string

    Returns th FilePath converted to a string

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)