docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IDataProduced

    Interface for consuming data. Consumers must implement this, and return true from Initialize if the consumer is able/desired to operate.

    Namespace: Unity.SimulationPro
    Assembly: Unity.SimulationPro.Capture.dll
    Syntax
    public interface IDataProduced

    Methods

    Consume(object, bool, bool)

    Called when data is availabl for consumption. All consumers are notified.

    Declaration
    void Consume(object data, bool synchronous = false, bool isArtifact = true)
    Parameters
    Type Name Description
    object data

    Typically this is a string path to a file.

    bool synchronous

    When true, the comsumption completes before the call returns.

    bool isArtifact

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

    ConsumptionStillInProgress()

    Called on Shutdown to ask the consumer if any asynchronous requests are still being handled.

    Declaration
    bool ConsumptionStillInProgress()
    Returns
    Type Description
    bool

    true if there are still asynchronous consumption operations in progress; otherwise, false.

    Initialize()

    Gives the consumer the opportunity to check if it can operate, and return status accordingly. Consumers that return false are not notified of data that is produced by the SDK.

    Declaration
    bool Initialize()
    Returns
    Type Description
    bool

    true if the consumer initialized successfully and is ready to receive data; otherwise, false.

    In This Article
    Back to top
    Copyright © 2026 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)