Debug.Log Extensions
Documentation (1.1.9)

◆ LogState() [1/3]

static void Debug.LogState ( [CanBeNull] object  target,
BindingFlags  flags = DefaultInstanceBindingFlags 
)
static

Logs to the Console the name and value of every field and property of target matched using the specified flags .

With a small number of listed members a comma will be used to separate them, and with a larger number of members a line break will be used.

Parameters
targetobject instance whose class members are to be listed.
flagsBindingFlags used when searching for the members.

By default only public and non-inherited instance members are listed.