PixelSensorAsyncOperationResult
NameSpace: PixelSensors
Represents the progress of an async Pixel sensor operation More...
Inherits from:
CustomYieldInstruction
Detailed Description
public class PixelSensorAsyncOperationResult : CustomYieldInstruction
Details*
Can be yielded inside a coroutine or has events that can be subscribed to
Public Fields
DidOperationFail
public bool DidOperationFail { get; set; }
DidOperationFinish
public bool DidOperationFinish { get; set; }
Public Attributes
DidOperationSucceed
public bool DidOperationSucceed => DidOperationFinish && !DidOperationFail;
keepWaiting
public override bool keepWaiting => !DidOperationFinish;
Public Events
OnOperationFailed
public Action< PixelSensorId, PixelSensorStatus, IReadOnlyList< uint > > OnOperationFailed()
OnOperationFinishedSuccessfully
public Action< PixelSensorId, PixelSensorStatus, IReadOnlyList< uint > > OnOperationFinishedSuccessfully()
OnOperationStarted
public Action< PixelSensorId, PixelSensorStatus, IReadOnlyList< uint > > OnOperationStarted()