How shobhitx64/whats-it-called works
1. This is a Unity application repo, not a typical code-first service. The runtime is driven by Unity scenes under Assets/Scenes, with SampleScene.unity and working first.unity as the main entry points.
2. The product intent is clear from the README: “point at objects to identify them in real time in your preferred language.” Architecturally, that implies a live camera/input pipeline feeding object/text recognition, then a translation/display layer.
3. The main application logic appears to live in Assets/scripts, with two scripts:
- camtotext.cs: likely responsible for capturing camera frames or triggering recognition/OCR.
- translate.cs: likely responsible for converting recognized labels/text into the user’s chosen language and updating the UI.
These two scripts are the core functional boundary of the app.
4. Assets/plugins/SimpleJSON.cs indicates the project parses JSON responses directly in Unity. That strongly suggests one or more external services are being called for recognition and/or translation, with JSON used as the data interchange format.
5. The UI/output layer is built around TextMesh Pro rather than Unity’s default text system. The Assets/TextMesh Pro package and Assets/fonts folder provide fonts, TMP assets, styles, shaders, and sprite assets used to render translated labels and on-screen prompts cleanly.
6. Visual assets are organized as Unity resources rather than a custom asset pipeline:
- Assets/materials contains at least one custom material.
- Assets/fonts contains SDF font assets (NotoSans-Light SDF, NotoSans-Regular SDF), which are well-suited for crisp runtime text.
This suggests the visible architecture is centered on readable overlay text, not complex 3D rendering.
7. The repo contains no obvious backend service, database, or server-side code. That means the app is likely a self-contained client built in Unity, depending on Unity runtime plus external web APIs/services for AI/translation functionality if any network calls exist in the scripts.
8. The scene layer is the orchestration boundary: scenes load the scripts, camera/input sources, and text UI elements, while the scripts manage the live flow from sensing to labeling. In an architecture diagram, the scene should be shown as the composition root connecting camera input, recognition logic, translation logic, and UI output.
9. The project settings show standard Unity subsystems enabled/configured (InputManager, Physics2D, GraphicsSettings, XRSettings, etc.), but none of these appear to be the core product differentiator. They matter mainly as Unity runtime infrastructure supporting input, rendering, and build configuration.
10. The most important data flow is likely:
camera/object view → recognition/OCR or detection logic in camtotext.cs → raw label/text → translation logic in translate.cs → JSON-based service response parsing via SimpleJSON → TextMesh Pro UI presentation.
11. There is a clear separation between logic and presentation:
- Logic: scripts in Assets/scripts and JSON parsing in Assets/plugins
- Presentation: scenes, TMP assets, fonts, and materials
- Platform/runtime: Unity ProjectSettings and Packages
This separation should be reflected in any architecture diagram.
12. Overall, the repo is a compact Unity client focused on real-time identification and translation, with the two custom scripts forming the application core and TextMesh Pro providing the rendered output layer.
Main entry points: translate.cs Translate · camtotext.cs Cam To Text · SampleScene.unity SampleScene · working first.unity Working First
Components 12
Scenes
Unity entry points and scene composition
- SampleScene · Main scene entry point
Assets/Scenes/SampleScene.unity - Working First · Alternate scene entry point
Assets/Scenes/working first.unity
Logic
Real-time capture, recognition, and translation scripts
- Cam To Text · Captures live input and triggers object/text recognition
Assets/scripts/camtotext.cs - Translate · Converts recognized labels and prepares displayed text
Assets/scripts/translate.cs - SimpleJSON · Parses API responses and structured data
Assets/plugins/SimpleJSON.cs
Presentation
Text rendering assets and visual resources
- TextMesh Pro · Runtime text system for on-screen labels and prompts
Assets/TextMesh Pro - Noto Sans SDF · Readable SDF fonts for translated UI text
Assets/fonts - TMP Assets · Fallbacks, styles, sprites, and TMP settings
Assets/TextMesh Pro/Resources - Materials · Custom material(s) used by the UI and text rendering
Assets/materials
Runtime
Unity package and project settings
- Packages · Installed Unity package dependencies
Packages/manifest.json - Project Settings · Unity runtime and build configuration
ProjectSettings - Unity Runtime · Engine subsystems for input, graphics, physics, and build execution
Connections 15
- SampleScene → Cam To Text: loads · Scene composes the capture/recognition script
- SampleScene → Translate: loads · Scene composes the translation/output script
- Working First → Cam To Text: loads · Alternate scene composes the capture/recognition script
- Working First → Translate: loads · Alternate scene composes the translation/output script
- Cam To Text → SimpleJSON: parses · Recognition or API responses are decoded from JSON
- Translate → SimpleJSON: parses · Translation or lookup responses are decoded from JSON
- Cam To Text → Translate: passes text · Recognized labels flow into translation
- Translate → TextMesh Pro: renders · Translated text is presented in the UI
- Translate → Noto Sans SDF: uses · Translated text relies on SDF font assets
- Translate → TMP Assets: uses · TMP styles, sprite assets, and settings support rendering
- Translate → Materials: styles · UI text appearance is supported by custom materials
- Packages → Unity Runtime: extends · Package dependencies plug into the Unity engine
- Project Settings → Unity Runtime: configures · Project settings define runtime behavior and platform support
- SampleScene → Unity Runtime: runs on · Scene executes within the Unity engine
- Working First → Unity Runtime: runs on · Scene executes within the Unity engine