Method CreateTrackableImmediate
CreateTrackableImmediate(TSessionRelativeData)
Creates a TTrackable
immediately and leaves it in a "pending" state.
Declaration
protected TTrackable CreateTrackableImmediate(TSessionRelativeData sessionRelativeData)
Parameters
Type | Name | Description |
---|---|---|
TSessionRelativeData | sessionRelativeData | The data associated with the trackable. All spatial data should be relative to the ARSessionOrigin. |
Returns
Type | Description |
---|---|
TTrackable | A new |
Remarks
Trackables are usually created, updated, or destroyed during Update(). This method creates a trackable immediately and marks it as "pending" until it is reported as added by the subsystem. This is useful for subsystems that deal with trackables that can be both detected and manually created.
This method does not invoke OnTrackablesChanged(List<TTrackable>, List<TTrackable>, List<TTrackable>), so no "added" notifications will occur until the next call to Update().
The trackable will appear in the trackables collection immediately.