Component

Component() function

Warning: This API is now obsolete.

use ScriptComponent instead https://docs.oncyber.io/components (opens in a new tab)

Defines a script as a component that can be added to the world space via the studio You can annotate the script class properties using @Param to make them editable in the studio

Signature:

export declare function Component(options: ComponentOptions): ClassDecorator;

Parameters

Parameter

Type

Description

options

ComponentOptions

**Returns:**

ClassDecorator