Image changed. (For version 1.10.2)
commited
commit
aaa4d6b4a5132e31615c70ebd3aeec87a01206d3
... | ... | @@ -1,18 +1,20 @@ |
1 | 1 | Displays the value given to the input, allowing you to inspect values. |
2 | [[/uploads/Inspect.png|width=336px]] |
|
2 | ||
3 | ![Inspect_1](https://www.fancade.com/wiki/uploads/Screenshot_2022-09-29-19-20-44-138~2.jpeg) |
|
3 | 4 | |
4 | 5 | ## Importance |
5 | 6 | This block is essential for debugging your games because by using it you can make sure that you don't get unexpected values that break your game. If you connect its only input to a variable or value block, the data will be printed on its top. |
6 | 7 | |
7 | [[/uploads/inspect_block.jpg]] |
|
8 | ![Inspect_2](https://www.fancade.com/wiki/uploads/Screenshot_2022-09-29-19-14-11-550.jpeg) |
|
8 | 9 | |
9 | 10 | ## Advanced mode |
10 | 11 | Often you [[set camera]] or need to inspect local variables inside a block and it becomes impossible to know the value when it's displayed on the Inspect block top side. For such cases, you can switch to an "Advanced" mode by selecting any Inspect block and clicking on "Advanced" option in the hotbar. |
11 | [[/uploads/Inspect_advanced_checkbox.jpg]] |
|
12 | ||
13 | ![Inspect_3](https://www.fancade.com/wiki/uploads/Screenshot_2022-09-29-19-15-51-812.jpeg) |
|
12 | 14 | |
13 | 15 | While playing, if the mode is activated, all inspected values will be displayed on the right side of your screen. If you tap on one of them, it will be printed to a "console log" on the left side. It's helpful if you want to keep track of how values change over time. |
14 | 16 | |
15 | [[/uploads/advanced_mode.png]] |
|
17 | ![Inspect_4](https://www.fancade.com/wiki/uploads/Screenshot_2022-09-29-19-19-23-419.jpeg) |
|
16 | 18 | |
17 | 19 | The first three lines of the log will always be occupied by percentages of object, script, and block limits consumed. |
18 | 20 |