Sets the value of the SFTime event-in slot.
Declaring type: EventInSFTime
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void SetValue (
        double value
) 
Parameters
value
The new time value. The time is specified in a double value containing the number of seconds since January the 1st, 1970, 00:00:00 GMT.
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);