WatchVariableDescriptor
WatchVariableDescriptor
class allows you to specify which type members to include or exclude in the generated watch variable, along with custom names and additional parameters.
Reset
Clears all specified data in the descriptor.SetSelfRecursion
Determines whether the type can include members of the same type, useful for types likeTransform
and Vector3
to ignore recursive members.
Self recursion is disabled by default.
SetTypeMask
Defines which member types (Field
, Property
, Method
, or All
) can be included. By default, it includes fields and properties but excludes methods.
RenameMember
Changes a member's displayed name in the variable.IgnoreMember
Excludes a member from the generated variable.IgnoreMembers
Excludes multiple members.AllowMember
Re-includes a member that was ignored in a lower priority descriptor.AllowMembers
Re-includes multiple members.ShowOnlyMember
Excludes all other members except the specified one. CombinesShowOnlyMember
and RenameMember
.
ShowOnlyMembers
Same asShowOnlyMember
, but for multiple members.
IgnoreAllMembersDeclaredInClass
Ignores all members from the target class, useful for base class definitions. Same asIgnoreAllMembersDeclaredInClass
, but for a specified class in the hierarchy.
AllowAllMembersDeclaredInClass
Restores all previously ignored members from the target class. Same asAllowAllMembersDeclaredInClass
, but for a specified class in the hierarchy.