Class IESReader
Class to Parse IES File
Inherited Members
Namespace: UnityEditor.Rendering
Syntax
[Serializable]
public class IESReader
Properties
FileFormatVersion
Version of the IES File
Declaration
public string FileFormatVersion { get; }
Property Value
| Type | Description |
|---|---|
| String |
MaxCandelas
Maximum of Candela in the IES File
Declaration
public float MaxCandelas { get; }
Property Value
| Type | Description |
|---|---|
| Single |
PhotometricType
Type of Photometric light in the IES file, varying per IES-Type and version
Declaration
public int PhotometricType { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
TotalLumens
Total light intensity (in Lumens) stored on the file, usage of it is optional (through the prefab subasset inside the IESObject)
Declaration
public float TotalLumens { get; }
Property Value
| Type | Description |
|---|---|
| Single |
Methods
ReadFile(String)
Main function to read the file
Declaration
public string ReadFile(string iesFilePath)
Parameters
| Type | Name | Description |
|---|---|---|
| String | iesFilePath | The path to the IES File on disk. |
Returns
| Type | Description |
|---|---|
| String | Return the error during the import otherwise null if no error |