Class CameraFrameReceivedEventUnit
Uses an ARCameraManagerListener to listen for a camera-frame-received event on the visual scripting event bus and assign the ARCameraFrameEventArgs to a newly triggered Flow.
Namespace: UnityEngine.XR.ARFoundation.VisualScripting
Assembly: Unity.XR.ARFoundation.VisualScripting.dll
Syntax
public sealed class CameraFrameReceivedEventUnit : GameObjectEventUnit<ARCameraFrameEventArgs>
Properties
MessageListenerType
The MessageListener type.
Declaration
public override Type MessageListenerType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
frameEventArgs
ARCameraFrameEventArgs output.
Declaration
public ValueOutput frameEventArgs { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
hookName
The hook name.
Declaration
protected override string hookName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
AssignArguments(Flow, ARCameraFrameEventArgs)
Assigns args to flow.
Declaration
protected override void AssignArguments(Flow flow, ARCameraFrameEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow | The flow. |
| ARCameraFrameEventArgs | args | The arguments. |
Definition()
Unit definition.
Declaration
protected override void Definition()