0 corresponds to no light while 100 corresponds to a light shining directly onto module.
What ports can I use it on?
1,2,7,8
Code
var daylight =Magic.modules.light.brightness;
usingMagic;publicclassDemo:MonoBehaviour{ // create a reference to the modulepublicMagic.Modules.LightModule light;voidStart() { }voidUpdate() { // access the property of the moduleint daylight =light.brightness; }}