Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning

Due to a Unity bug the Indicator Light shows unexpected behavior behaviour when the material inspectors is are open. Please make sure to close the material inspectors when using the Indicator Light.

Overview

The Indicator Light is a component that lights up a Game Object. The Indicator light works by changing the emission property of a material to simulate a light. It consists of two components; Physical and Logic. Both are needed to control the light through a logic adapter (connecting the Indicator Light to an external controller through a Logic Simulator ). Adding a Control Panel gives you the option to control the light from the Unity scene.

...

The light state can be switched between enabled and disabled. The intensity of the light can also be customized as well as along with the color of the light used by the when in enabled and or disabled state.

...

Where to find

...

Note

The Indicator Light script will only be added if the GameObject has a MeshRenderer and a Mesh.

...

Feature Layout - Physical Component

...

Properties

 

Light Color

The emission color to light up with when enabled.

Base Color

The emission color when disabled.

Select a Material

The base material to use.

...

How to use

  1. Add the Indicator Light script to the GameObject

...

3. Select the Light Color by clicking Light Color

...

4. Select the Base Color in the same way by selecting Base Color

5. Select a material by clicking the “Select material“ button if no material is selected. It automatically grabs the first material to be selected and should be selected by default

...

6. Open the Control Panel tab and click “Generate Generate Control Panel for IndicatorLight“IndicatorLight

...

7. Select the generated control panel. Click Enable/Disable to Enable/Disable the light. Drag the intensity slider to change the Intensity

...

Properties

 

IndicatorLight

Select an Indicator Light to connect.

In the PLC I/Opanel you can see the latest input and output values from the PLC.

...