Class IESReader
Class to Parse IES File
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
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 |
---|---|
float |
PhotometricType
Type of Photometric light in the IES file, varying per IES-Type and version
Declaration
public int PhotometricType { get; }
Property Value
Type | Description |
---|---|
int |
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 |
---|---|
float |
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 |