Method CreateMarker
CreateMarker(Type, double)
Creates a marker of the requested type, at a specific time, and adds the marker to the current asset.
선언
public IMarker CreateMarker(Type type, double time)
파라미터
타입 | 이름 | 설명 |
---|---|---|
Type | type | The type of marker. |
double | time | The time where the marker is created. |
반환
타입 | 설명 |
---|---|
IMarker | Returns the instance of the created marker. |
참고
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 InvalidOperationException with tracks that do not support notifications if type
implements the INotification interface.
참고
CreateMarker<T>(double)
Creates a marker of the requested type, at a specific time, and adds the marker to the current asset.
선언
public T CreateMarker<T>(double time) where T : ScriptableObject, IMarker
파라미터
타입 | 이름 | 설명 |
---|---|---|
double | time | The time where the marker is created. |
반환
타입 | 설명 |
---|---|
T | Returns the instance of the created marker. |
타입 파라미터
이름 | 설명 |
---|---|
T | The type of marker to create. |
참고
All markers that implement IMarker and inherit from ScriptableObject are supported.
CreateMarker will throw InvalidOperationException with tracks that do not support notifications if T
implements the INotification interface.