Skip to content

Unity 6.5+ compilation fix - #309

Open
NoixDeXydre wants to merge 1 commit into
Seanba:masterfrom
Gardens-Lies:master
Open

Unity 6.5+ compilation fix#309
NoixDeXydre wants to merge 1 commit into
Seanba:masterfrom
Gardens-Lies:master

Conversation

@NoixDeXydre

Copy link
Copy Markdown

With Unity 6.5 beta, CreateAssetWithContent cannot compile and needs to be replaced with CreateAssetWithTextContent.

@NoixDeXydre NoixDeXydre changed the title Unity 6.5+ compile fix Unity 6.5+ compilation fix Apr 30, 2026
@Lewox

Lewox commented Aug 14, 2026

Copy link
Copy Markdown

Tested it on 6000.5.1f1 and it works well, what I would do @NoixDeXydre is to squash those commits into a single one so Git history is cleaner.

@NoixDeXydre

Copy link
Copy Markdown
Author

Tested it on 6000.5.1f1 and it works well, what I would do @NoixDeXydre is to squash those commits into a single one so Git history is cleaner.

I've just squash the two commits. It should be good now 👍

@Hinen

Hinen commented Sep 2, 2026

Copy link
Copy Markdown

I verified that ProjectWindowUtil.CreateAssetWithTextContent is not present in Unity 6000.3.11f1, while CreateAssetWithContent is still available there. Therefore, UNITY_6000_0_OR_NEWER would break compilation on Unity 6000.0–6000.4. Could you change the guard to UNITY_6000_5_OR_NEWER? I verified that version guard with a full script recompile on Unity 6000.5.10f1.

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.

3 participants