Skip to main content

Query Object Path

The Object path is used by the Gamium Client to query and manipulate the desired object.

info

The Object Path can be found using the methods below.


Below is an example of using Object path in Gamium Client.

const cameraObj = await gamium.find(By.path('/Main Camera[1]'));

In the example above, we are looking for a camera using the Object path called '/Main Camera [1]'. The reason for using the function By.path() is to inform you that you are searching through Object path among the object search methods.


Alternatively, you can find it using the tag as shown below.

const cameraObj = await gamium.find(By.tag('MainCamera'));