Class GetTrackablesUnit<TManager, TSubsystem, TSubsystemDescriptor, TProvider, TSessionRelativeData, TTrackable>
Outputs all trackables managed by the input ARTrackableManager using its
trackables property.
Inheritance
GetTrackablesUnit<TManager, TSubsystem, TSubsystemDescriptor, TProvider, TSessionRelativeData, TTrackable>
Namespace: UnityEngine.XR.ARFoundation.VisualScripting
Assembly: Unity.XR.ARFoundation.VisualScripting.dll
Syntax
public abstract class GetTrackablesUnit<TManager, TSubsystem, TSubsystemDescriptor, TProvider, TSessionRelativeData, TTrackable> : Unit 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>
Type Parameters
| Name | Description |
|---|---|
| TManager | The AR Trackable Manager type. |
| TSubsystem | The tracking subsystem type. |
| TSubsystemDescriptor | The subsystem descriptor type. |
| TProvider | The subsystem provider type. |
| TSessionRelativeData | The session relative data type. |
| TTrackable | The AR Trackable type. |
Remarks
TrackableCollection<TTrackable> is not a serializable type, therefore we need a custom unit to copy the contents into a serializable List to use this data in a visual scripting context.
Properties
flowIn
Flow input.
Declaration
public ControlInput flowIn { get; }
Property Value
| Type | Description |
|---|---|
| ControlInput |
flowOut
Flow output.
Declaration
public ControlOutput flowOut { get; }
Property Value
| Type | Description |
|---|---|
| ControlOutput |
managerIn
AR Trackable Manager input.
Declaration
public ValueInput managerIn { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
trackablesIn
Declaration
public ValueInput trackablesIn { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
trackablesOut
Outputs a List<T>.
Declaration
public ValueOutput trackablesOut { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
Methods
Definition()
Declaration
protected override void Definition()