This version of Unity is unsupported.

Foldout.value

public bool value;

Description

Contains the collapse state. True if the Foldout is open and the contents are visible. False if it's collapsed.