Skip to content

Components ​

Components are reusable behaviors you attach to scene objects. An object can carry many at once. Each one exposes inspector fields, Flow actions and events, and — for native types — an OpalScript class you look up with GetComponent.

If it's your first time using components, start here:

Most games never leave the inspector and Flow. Custom types are Behavior Components in Script Studio — you do not edit engine source. When a graph needs reusable code, the Scripting API lists the native classes.

Where to work ​

Editor areaWhat you do there
Arrange inspectorBrowse, add, remove, and configure components on selected objects
Scripts workspaceCreate Behavior Components and OpalScript classes
Object FlowUse component action, condition, and event nodes
PlayComponents run; inspect live values

Additional resources ​