Class NtpTimecodeSource
A component that gets timecode from an network time protocol (NTP) server.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.LiveCapture.Ntp
Assembly: Unity.LiveCapture.Ntp.dll
Syntax
[ExecuteAlways]
[CreateTimecodeSourceMenuItem("NTP Timecode Source", 0)]
[AddComponentMenu("Live Capture/Timecode/NTP Timecode Source")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.live-capture@4.0/manual/ref-component-ntp-timecode-source.html")]
public class NtpTimecodeSource : TimecodeSource, ITimecodeSource, IRegistrable
Properties
FrameRate
Declaration
public override FrameRate FrameRate { get; }
Property Value
Type | Description |
---|---|
FrameRate |
Overrides
FriendlyName
Declaration
public override string FriendlyName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
ForceUpdate()
Queries the NTP server to resynchronize the time with the server clock.
Declaration
public void ForceUpdate()
OnDisable()
Declaration
protected override void OnDisable()
Overrides
OnEnable()
Declaration
protected override void OnEnable()
Overrides
TryPollTimecode(out FrameRate, out Timecode)
Declaration
protected override bool TryPollTimecode(out FrameRate frameRate, out Timecode timecode)
Parameters
Type | Name | Description |
---|---|---|
FrameRate | frameRate | |
Timecode | timecode |
Returns
Type | Description |
---|---|
bool |