docs.unity3d.com
    Show / Hide Table of Contents

    Class FileProducer

    File write utility class that reports data written to the manager for uploading.

    Inheritance
    Object
    FileProducer
    Namespace: Unity.Simulation
    Syntax
    public static class FileProducer

    Methods

    Write(String, Array, Boolean, Boolean)

    Write the data to the file system and inform the consumers for uploading it to the cloud.

    Declaration
    public static bool Write(string path, Array data, bool uploadSynchronously = false, bool isArtifact = true)
    Parameters
    Type Name Description
    String path

    Full path to the file.

    Array data

    An array of data

    Boolean uploadSynchronously

    boolean indicating if the upload needs to happen synchronously.

    Boolean isArtifact

    A flag indicating if the data being written is an artifact or not.

    Returns
    Type Description
    Boolean

    boolean indicating if the write was successful

    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