This version of Unity is unsupported.

DepthState.writeEnabled

public bool writeEnabled;

Description

Controls whether pixels from this object are written to the depth buffer.