Game Development Reference
In-Depth Information
Adding a watch to the Watch window
On adding a new watch, you can enter any valid expression or variable name in the
Name
field, and the resultant value will be shown in the
Value
column, as shown
in the following screenshot. The values shown in the
Watch
field are valid for the
current line of execution only, and they will change as the program progresses.
Remember that you can add a watch for any valid variable that can be referenced
in the current scope, including
name
,
tag
,
transform.position
, and so on.
Adding a watch to the Watch window