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

Click here to see the list of members.

Collapse/Expand Example
The following example demonstrates how to set the diffuseColor field of a Material node to red:
C#
Vrml.EAI.Node material = ...;
Vrml.EAI.Field.EventInSFColor set_diffuseColor = (Vrml.EAI.Field.EventInSFColor)material.GetEventIn("set_diffuseColor");
float red_component = 1.0f;
float green_component = 0.0f;
float blue_component = 0.0f;
float[] color = new float[] { red_component, green_component, blue_component };
set_diffuseColor.SetValue(color);