Class SyncLight
This class specifies information about a light that can be included in a SyncObject.
Inherited Members
Namespace: Unity.Reflect.Model
Syntax
public class SyncLight
Constructors
SyncLight(SyncLightType, SyncColor, Single, Single, SyncLightIntensityUnit, Single, Single)
Creates a SyncLight.
Declaration
public SyncLight(SyncLightType type, SyncColor color, float temperature, float intensity, SyncLightIntensityUnit intensityUnit, float range, float spotAngle)
Parameters
Type | Name | Description |
---|---|---|
SyncLightType | type | The light type |
SyncColor | color | The light color |
Single | temperature | The light temperature |
Single | intensity | The light intensity |
SyncLightIntensityUnit | intensityUnit | The light intensity unit |
Single | range | The light range |
Single | spotAngle | The light spot angle |
Properties
Color
The light color.
Declaration
public SyncColor Color { get; set; }
Property Value
Type | Description |
---|---|
SyncColor |
Intensity
The light intensity, for the provided IntensityUnit.
Declaration
public float Intensity { get; set; }
Property Value
Type | Description |
---|---|
Single |
IntensityUnit
The light intensity unit.
Declaration
public SyncLightIntensityUnit IntensityUnit { get; set; }
Property Value
Type | Description |
---|---|
SyncLightIntensityUnit |
Range
The light range.
Declaration
public float Range { get; set; }
Property Value
Type | Description |
---|---|
Single |
SpotAngle
The light spot angle.
Declaration
public float SpotAngle { get; set; }
Property Value
Type | Description |
---|---|
Single |
Temperature
The light temperature.
Declaration
public float Temperature { get; set; }
Property Value
Type | Description |
---|---|
Single |
Type
The light type.
Declaration
public SyncLightType Type { get; set; }
Property Value
Type | Description |
---|---|
SyncLightType |