docs.unity3d.com
  • Manual
  • Scripting API
  • Changelog
  • License
Show / Hide Table of Contents
    • AddCollectorMenuAttribute
  • Unity.Simulation
    • AggregatedSample
    • AggregationEvent
    • ArrayCast
    • ArrayUtilities
    • AsyncRequest
    • AsyncRequest.ExecutionContext
    • AsyncRequest.Result
    • AsyncRequest.State
    • AsyncRequest<T>
    • BaseDataConsumer<T>
    • BaseDataConsumer<T>.Uploadable
    • Category
    • ChunkedStream
    • ChunkedUnityLog
    • CollectorBase
    • CollectorBase.ConsumeCollectorReport
    • CollectorElement
    • CollectorsBaseEditor
    • CollectorsList
    • Configuration
    • Configuration.SimulationConfiguration
    • ContentType
    • ContinuousEvents
    • ContinuousEvents.EventCollectionDelegate
    • ContinuousEvents.EventDispatchDelegate
    • CoreProfilerUtils
    • CounterEvent
    • CounterEventData
    • DXChunkedStream
    • DXChunkedUnityLog
    • DXFile
    • DXFormat
    • DXManager
    • DXTimeLogger
    • DataCapturePaths
    • DirectoryNameComponent
    • Dispatcher
    • EventBase
    • ExecUtility
    • ExitPlaymode
    • ExtensionNameComponent
    • FileNameComponent
    • FileProducer
    • Format
    • FrameCountCondition
    • FrameLimit
    • FrameNumberNameComponent
    • ICondition
    • IDataProduced
    • IGlobalProfilerDataDispatcher
    • IgnoreCollectorAttribute
    • LabelNameComponent
    • LambdaJob
    • LambdaJob.DelegateType
    • Log
    • Log.Level
    • Manager
    • Manager.NotificationDelegate
    • Manager.TickDelegate
    • NameComponent
    • NameGenerator
    • Options
    • PackageImportTests
    • PathUtility
    • PerfStatsManager
    • PlayerResolution
    • PlayerResolutionSettings
    • ProfilerManager
    • ProfilerProperties
    • ProfilerReport
    • ProfilerSamplingEvent
    • ReportingUtils
    • Sample
    • SampleProfilerCollector
    • SequenceNameComponent
    • SequencedPathName
    • SignedURLDataConsumer
    • SimSecondsCondition
    • SimulationProfiler
    • SimulationProfilerBase
    • SimulationProfilerEditor
    • TestUtility
    • ThreadUtility
    • TimeLimit
    • TimeLogger
    • TimeScale
    • TimeScaleEditor
    • TimeUtility
    • Timer
    • TimerSource
    • TimestampNameComponent
    • WallSecondsCondition

Class SignedURLDataConsumer

Cloud agnostic consumer for uploading data.

Inheritance
object
BaseDataConsumer<bool>
SignedURLDataConsumer
Implements
IDataProduced
Inherited Members
BaseDataConsumer<bool>.Consume(object, bool, bool)
BaseDataConsumer<bool>.ConsumptionStillInProgress()
BaseDataConsumer<bool>.kMaxUploadRetryAttempts
BaseDataConsumer<bool>.kMaxSimultaneousUploads
BaseDataConsumer<bool>.kUseConsoleLog
BaseDataConsumer<bool>._uploadQueue
BaseDataConsumer<bool>._uploadIsArtifact
BaseDataConsumer<bool>._uploadsInFlight
BaseDataConsumer<bool>._keysToRemove
BaseDataConsumer<bool>._ServiceName()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Unity.Simulation
Assembly: Unity.Simulation.Core.dll
Syntax
public class SignedURLDataConsumer : BaseDataConsumer<bool>, IDataProduced

Methods

Initialize()

Initializes the signed URL uploader If not running in the cloud, or no signed URL endpoint is specified, then this consumer is disabled.

Declaration
public bool Initialize()
Returns
Type Description
bool

LocalPathToObjectPath(string)

Converts a local file system path into a remote cloud path.

Declaration
public override string LocalPathToObjectPath(string localPath)
Parameters
Type Name Description
string localPath

The path to the file on the local file system.

Returns
Type Description
string

The remote cloud system path.

Overrides
BaseDataConsumer<bool>.LocalPathToObjectPath(string)

Upload(string, string, bool)

Synchronously uploads data to the cloud.

Declaration
public override bool Upload(string localPath, string objectPath, bool isArtifact = true)
Parameters
Type Name Description
string localPath

The path to the file on the local file system.

string objectPath

The path to the file on the remote cloud system..

bool isArtifact

A flag indicating if object being uploaded is artifact or not.

Returns
Type Description
bool
Overrides
BaseDataConsumer<bool>.Upload(string, string, bool)

UploadAsync(Stream, string, bool)

Asynchronously uploads data to the cloud.

Declaration
public override Task<bool> UploadAsync(Stream source, string objectPath, bool isArtifact = true)
Parameters
Type Name Description
Stream source

Open stream representing the data to upload.

string objectPath

The path to the file on the remote cloud system..

bool isArtifact

A flag indicating if object being uploaded is artifact or not.

Returns
Type Description
Task<bool>
Overrides
BaseDataConsumer<bool>.UploadAsync(Stream, string, bool)

Implements

IDataProduced
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