Open the folder "ccf-body-ui" in Unity version 2021.3.4f1.
This project includes the requirements put forth in the test:
Scene:
- Main
GameObjects:
- Camera
- Directional Light
- Cube
- URLHandler
- EditorHandler
Scripts:
- Script
Movement.csto move a 3D cube by .001 scene units every time the user presses the relevant key. Script attached to GameObjectCube. - Script
WebRequestHandler.csthat uses a coroutine to make a URL call usingUnityWebRequest. Script is attached to GameObjectURLHandler. - Script
EditorHandler.csto show the captured response in the Unity Inspector. Script attached to GameObjectEditorHandler.
Fig.1. URL response in console and inspector.
Fig.2. URL response showing every field in the inspector.