Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

...

Table of Contents

...

Overview

The Color Sensor is a component that can be used to detect colors directly in front of it within a certain range.

...

A Color Sensor detecting colors of the objects in its field of view

...

Where to find

The Color Sensor Physical and Logic components can be found under Standard Components > Color Sensor > Color Sensor.

...

Note

A new GameObject will be created if you do not have a GameObject selected. Otherwise, the Color Sensor will be added to the selected GameObject

...

Feature layout

Physical Component

...

Live Data

State

Shows whether the Color Sensor is currently active and thus whether it will detect colors

Output Signal

Shows what color the ColorSensor currently detects. If no color is detected, it will return its Void Color

...

Control Panel

Generate Control Panel for ColorSensor

Click this button to generate a ControlPanelInterface for the Color Sensor.

...

Logic Component

...

Properties

ColorSensor

The Phyisical Color Sensor 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. Look at the Logic Component Documentation for more details.

...

How to use

  1. Assign a Color Sensor physical component to a GameObject, or create a new one directly from the menu

  2. Select the desired settings under the Properties tab

  3. In Play Mode, the color of detected objects will be displayed in the Output Signal field

...