@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.
21 lines (17 loc) • 707 B
text/typescript
import { Color, Vector2 } from "three"
import { serializable } from "../../engine/engine_serialization.js";
import { RGBAColor } from "../../engine/js-extensions/index.js";
import { Behaviour } from "../Component.js";
/**
* [Outline](https://engine.needle.tools/docs/api/Outline) is a UI component that adds an outline effect to UI elements.
* You can customize the outline color and distance to create a visual border around the UI element.
* @summary Add an outline effect to UI elements
* @category User Interface
* @group Components
*/
export class Outline extends Behaviour {
(RGBAColor)
effectColor?: RGBAColor;
(Vector2)
effectDistance?: Vector2;
}