Class TrackablesChangedEventUnit<TManager, TSubsystem, TSubsystemDescriptor, TProvider, TSessionRelativeData, TTrackable, TEventArgs, TListener>
Uses a TListener
to listen for a trackables-changed event on the visual scripting event bus
and assign the TEventArgs
to a newly triggered Flow.
Inheritance
Namespace: UnityEngine .XR.ARFoundation.VisualScripting
Assembly: Unity.XR.ARFoundation.VisualScripting.dll
Syntax
[Obsolete("TrackablesChangedEventUnit has been deprecated in AR Foundation version 6.0.", false)]
public abstract class TrackablesChangedEventUnit<TManager, TSubsystem, TSubsystemDescriptor, TProvider, TSessionRelativeData, TTrackable, TEventArgs, TListener> : GameObjectEventUnit<TEventArgs> where TManager : ARTrackableManager<TSubsystem, TSubsystemDescriptor, TProvider, TSessionRelativeData, TTrackable> where TSubsystem : TrackingSubsystem<TSessionRelativeData, TSubsystem, TSubsystemDescriptor, TProvider>, new() where TSubsystemDescriptor : SubsystemDescriptorWithProvider<TSubsystem, TProvider> where TProvider : SubsystemProvider<TSubsystem> where TSessionRelativeData : struct, ITrackable where TTrackable : ARTrackable<TSessionRelativeData, TTrackable> where TListener : MessageListener
Type Parameters
Name | Description |
---|---|
TManager | The manager type. |
TSubsystem | The subsystem type. |
TSubsystemDescriptor | The subsystem descriptor type. |
TProvider | The subsystem provider type. |
TSessionRelativeData | The session-relative data type. |
TTrackable | The type of trackable for which we are listening. |
TEventArgs | The trackables-changed event arguments type. |
TListener | The MessageListener type. |
Properties
MessageListenerType
The MessageListener type.
Declaration
public override Type MessageListenerType { get; }
Property Value
Type | Description |
---|---|
Type |
added
Trackables added since the last frame.
Declaration
public ValueOutput added { get; }
Property Value
Type | Description |
---|---|
Value |
removed
Trackables removed since the last frame.
Declaration
public ValueOutput removed { get; }
Property Value
Type | Description |
---|---|
Value |
updated
Trackables updated since the last frame.
Declaration
public ValueOutput updated { get; }
Property Value
Type | Description |
---|---|
Value |
Methods
Definition()
Unit definition.
Declaration
protected override void Definition()