Method CreateMarker
CreateMarker(Type, double)
Creates a marker of the requested type, at a specific time, and adds the marker to the current asset.
Declaration
public IMarker CreateMarker(Type type, double time)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type of marker. |
| double | time | The time where the marker is created. |
Returns
| Type | Description |
|---|---|
| IMarker | Returns the instance of the created marker. |
Remarks
All markers that implement IMarker and inherit from ScriptableObject are supported. Markers that implement the INotification interface cannot be added to tracks that do not support notifications. CreateMarker will throw an
InvalidOperationException with tracks that do not support notifications if type implements the INotification interface.
See Also
CreateMarker<T>(double)
Creates a marker of the requested type, at a specific time, and adds the marker to the current asset.
Declaration
public T CreateMarker<T>(double time) where T : ScriptableObject, IMarker
Parameters
| Type | Name | Description |
|---|---|---|
| double | time | The time where the marker is created. |
Returns
| Type | Description |
|---|---|
| T | Returns the instance of the created marker. |
Type Parameters
| Name | Description |
|---|---|
| T |
Remarks
All markers that implement IMarker and inherit from ScriptableObject are supported. CreateMarker will throw an
InvalidOperationException with tracks that do not support notifications if T implements the INotification interface.