Disabling Shadows by code

Hi guys,

I’m tryng to disable completly shadow computation by code, i don’t want to do this trough the quality settings.
The way i’m doing this, is just by placing shadowDistace = 0.

QualitySettings.shadowDistance = 0;

Is this the way to do this ? I can’t find anything in the QualitySettings regarding shutting down the shadow code.
And about the Anti-Aliasing quality (none, 2x,4x,8x,etc) I can’t see it either.

Thanks for any help,
Bruno

Shadows are turned off and on in the lights (light.shadows = LightShadows.None/Hard/Soft). There is no setting for AA at runtime.

–Eric