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.
Console InspectorUnity-Gamium Editor
Below is an example of using Object path in Gamium Client.
- TypeScript
- Python
const cameraObj = await gamium.find(By.path('/Main Camera[1]'));
cameraObj = 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.
- TypeScript
- Python
const cameraObj = await gamium.find(By.tag('MainCamera'));
cameraObj = gamium.find(By.tag('MainCamera'))