Skip to content

fix(unity): treat a MonoBehaviour with a missing script as classless - #3

Merged
nichinichisou0609 merged 1 commit into
mainfrom
dev
Sep 27, 2026
Merged

nichinichisou0609 merged 1 commit into
mainfrom
dev

Conversation

@nichinichisou0609

Copy link
Copy Markdown
Collaborator

A component whose m_Script is null (a missing script) made script_class raise; it now returns None, so prefabs that keep such a component export normally. Adds a unit test.

🤖 Generated with Claude Code

script_class returned an error for a component whose m_Script is null; it now returns None, so
prefabs that keep such a component export normally.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@nichinichisou0609
nichinichisou0609 merged commit 83dd161 into main Sep 27, 2026
5 checks passed
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