docs.unity3d.com
    Show / Hide Table of Contents

    Method WriteFile

    WriteFile(String, String, FileRegistry)

    Utility method to write a file. The directory will be created if it does not exist.

    Declaration
    protected static bool WriteFile(string path, string content, FileRegistry registry)
    Parameters
    Type Name Description
    String path

    The path of the file to write.

    String content

    The content of the file.

    FileRegistry registry

    The file registry used to track all produced artifacts.

    Returns
    Type Description
    Boolean

    True if the file was written.

    Back to top
    Terms of use
    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