This version of Unity is unsupported.

Lightmapping.GIWorkflowMode.OnDemand

Description

This property is now obsolete. Use LightingSettings.autoGenerate.