...
Table of Contents |
---|
...
Overview
The Color Detector is a component that can be used to detect a specific color with tolerance.
...
A Color Detector analysing three cubes for a Red color. The Output Signal returns High for the red cube, and low for the green and blue cubes
...
Where to find
The Color Detector Physical and Logic components can be found under Standard Components > Color Sensor > Color Detector.
...
Note |
---|
A new GameObject will be created if you do not have a GameObject selected. Otherwise, the Color Detector will be added to the selected GameObject |
...
Feature layout
Physical Component
...
Live Data | |
State | Shows whether the Color Detector is currently active and thus whether it will detect a color |
Output Signal | Shows whether or not the Color Detector is currently detecting the Reference Color |
Match Percentage | The percentage with which the detected color matches the Reference Color |
...
Control Panel | |
Generate Control Panel for ColorDetector | Click this button to generate a Control Panel for the Color Detector |
...
Logic Component
...
Properties | |
ColorDetector | The Phyisical Color Detector component attached to this Logic component |
...
PLC I/O | In the PLC I/O panel you can see the latest input and output values from the PLC |
PLC settings and Debugging
These settings are general Logic Component settings.
...
How to use
Assign a Color Detector physical component to a GameObject, or create a new one directly from the menu
Select the desired settings under the Properties tab
In Play Mode, the Match Percentage of detected objects will be displayed, as well as the Output Signal