Outline

Classes

Outline : NativeComponent

This component adds outline effect to the node. It enables outlining the node with given color and thickness.

To use this component, add the following line to your project file:

require engine.core_components.outline_component // or require engine.core

Usage example:

var node = create_node(NodeData())
add_component(node, new Outline(color = float3(1)))
Properties:

Outline.color: float3
Outline.color =(value: float3)

Color of the outline. Default is (1f, 1f, 1f)

Arguments:
  • value : float3

Outline.zTest: OutlineZTest
Outline.zTest =(value: OutlineZTest)

Z-test mode for outline rendering. Can be {OutlineZTest.ZTestOff, OutlineZTest.ZTestOn, OutlineZTest.ZTestInverted}. Default is ZTestOff.

Arguments:
  • value : OutlineZTest