Turn on PBRMaterial debug mode in code?

Hey folks,

Is there any ways to switch to different debug mode via code?

I know we can do it on inspector GUI. But is there a way to do it via code?

Many thanks,
Tawibox

You can use the debugMode and debugLimit properties:

We don’t have constants, though, for the value of debugMode, you will have to look at the inspector code to know which value corresponds to which feature.

@Evgeni_Popov aha! this is awesome! Thank you!!