Skip to content

feat: add Unity project, MonoBehaviour, ScriptableObject, and scene/p… - #58

Open
rohith24576 wants to merge 1 commit into
Houseofmvps:mainfrom
rohith24576:feat/unity-support-issue-49
Open

rohith24576 wants to merge 1 commit into
Houseofmvps:mainfrom
rohith24576:feat/unity-support-issue-49

Conversation

@rohith24576

Copy link
Copy Markdown

Description

Addresses the Unity gap in #49 by adding first-class Unity project detection and extraction (zero external dependencies):

  • Scanner: Detects Unity projects via ProjectSettings/ProjectVersion.txt or Assets/ + Packages/manifest.json (com.unity.*), ignores Unity cache/build directories (Library, Temp, Obj, Logs, MemoryCaptures), and includes .unity and .prefab files.
  • Components (MonoBehaviour / NetworkBehaviour / StateMachineBehaviour): Extracts components and their serialized fields ([SerializeField] and public instance fields) as props.
  • Schemas (ScriptableObject): Extracts ScriptableObject classes with typed fields and custom-type relations.
  • Routes (Scenes & Prefabs): Maps .unity scenes, .prefab assets (with YAML GameObject names), and SceneManager.LoadScene / LoadSceneAsync calls.

Testing

  • Added unit test suite Unity Project Detection in tests/detectors.test.ts covering project detection, Library/ exclusion, MonoBehaviour props, ScriptableObject schemas, and scene/prefab routes.
  • Verified TypeScript build (tsc) and Unity Project Detection test pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant