Skip to main content
Skip table of contents

Adding components to an entity

OKO Web Client 4.6.1 - CSP 6.36.0


How to add a component

In this example, we will add a Light Component to an empty entity and position it over the statue in the space. 

image-20260521-102919.png

To create an empty entity, first select the hierarchy icon on the top left to open the menu. 

image-20260521-103030.png

Select the circular icon next to the search bar and then select New Root Entity.

image-20260521-103238.png

This will create an empty entity in the 3D viewport, which will be added to the hierarchy list.

image-20260521-103337.png

Open the Entity Properties panel by clicking on the properties button in the right sidebar.

image-20260521-103529.png

Press the Add Component button to view a list of component types which can be added to the entity. We’ll select the Light Component for this example. 

image-20260521-103711.png

Notice that a Point Light Component gets added to the new Entity. An icon representing the point light appears in the 3D Viewport and the Property Panel is now populated with a variety of options for that Light Component. 

image-20260521-103842.png

You can now adjust the parameters for this component and move it around to position it anywhere in your scene, as shown in the image below.

Adding a component using the OKO Unreal plugin

image-20260521-105010.png

We’ll start by adding an empty actor to the space. To do this, find the upper ribbon and select Quickly add to the project. Search for OKO and add an OKO Space Entity.

The OKO Entity Actor will appear in the viewport. 

image-20260521-105151.png

To add a component to that entity, select the entity and click on the + Add button in the Details panel on the right.

image-20260521-105226.png

Search for the component you want to add. All OKO components are prefixed, for example, OKO Image Component.

image-20260521-105425.png

When using an Image Component, you’ll also need to associate it with an asset uploaded to the space.

image-20260521-105450.png

To do so, first open the OKO Home panel via Window → OKO → Home.

image-20260521-105624.png

Find your current space in the spaces list on the left of the Home panel and select it. You will see all assets uploaded to the space on the right-hand side.

image-20260521-105729.png
image-20260521-105922.png

In this example, we’ll add a raw image asset to the space via the + button. Follow the flow, select an image from your local machine, and the asset will be uploaded to the space.

image_component.gif

Finally, drag your uploaded asset onto the image component’s asset property.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.