Method AddLight
AddLight(Light, out int)
Creates a glTF light based on a Unity light Uses the KHR_lights_punctual extension.
Declaration
public bool AddLight(Light uLight, out int lightId)
Parameters
| Type | Name | Description |
|---|---|---|
| Light | uLight | Unity light |
| int | lightId | glTF light index |
Returns
| Type | Description |
|---|---|
| bool | True if light was successfully created, false otherwise |