Reference to a SFTime event-in slot.
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract class EventInSFTime :  EventIn
Collapse/Expand Remarks
Use this class to write values into SFTime event-in slots.
Collapse/Expand Members

Click here to see the list of members.

Collapse/Expand Example
The following example demonstrates how to start a TimeSensor in 5 seconds from the current time:
C#
Vrml.EAI.Node timeSensor = ...;
Vrml.EAI.Field.EventInSFTime set_startTime = (Vrml.EAI.Field.EventInSFTime)timeSensor.GetEventIn("set_startTime");
System.DateTime baseTime = new System.DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
System.TimeSpan deltaTime = System.DateTime.UtcNow.Subtract(baseTime);
set_startTime.SetValue(deltaTime.TotalSeconds + 5.0);