Click or drag to resize

ExpandCollapseOnClick Fields

The ExpandCollapseOnClick type exposes the following members.

Fields
  NameDescription
Public fieldanimDuration
The duration of the expand(or collapse) animation
Public fieldbutton
The button to whose onClock to subscribe. If not specified, will try to GetComponent<Button> from the GO containing this script
Public fieldexpanded
This keeps track of the 'expanded' state. If true, on click the animation will set nonExpandedSize as the target size; else, nonExpandedSize x expandFactor
Public fieldexpandFactor
When expanding, the initial size will be nonExpandedSize and the target size will be nonExpandedSize x expandFactor; opposite is true when collapsing
Public fieldnonExpandedSize
This is the size from which the item will start expanding
Public fieldonExpandAmounChanged
Public fieldsizeChangesHandler
Top
See Also