Debug.Log Extensions
Documentation (1.1.9)

◆ LogChanges() [2/2]

static void Debug.LogChanges ( [CanBeNull] object  memberOwner,
[NotNull] MemberInfo  classMember,
bool  pauseOnChanged = false 
)
static

Logs to the Console the name and value of classMember any time its value is changed.

This will continue happening until CancelLogChanges(MemberInfo) is called with an expression pointing to the same class member.

At runtime logging takes place at the end of each frame.

Parameters
memberOwnerInstance of the class that contains the member and from which the value of the member is read.

This can be null if the MemberInfo represents a static member.

Parameters
classMemberMemberInfo representing the class member to track.
pauseOnChangedIf true then the editor will be paused whenever the value of the class member changes; otherwise, editor will not be paused.

In builds this parameter will have no effect; the application will not be paused regardless of its value.