Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Assets/FUnity/Editor/FUnityProjectCreatorWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,17 @@ private void CreateProjectAssets(string projectName)
AssetDatabase.SaveAssets();
AssetDatabase.Refresh();

// シーン内の FUnityManager が存在する場合は、新規作成した ProjectData を紐付けてすぐ利用できるようにする。
var manager = Object.FindObjectOfType<FUnityManager>();
if (manager != null)
{
Undo.RecordObject(manager, "Switch FUnity Project");
manager.Project = projectData;
Comment on lines +156 to +157
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Assignment uses undefined FUnityManager.Project property

The new undo block assigns manager.Project = projectData, but FUnityManager exposes only the ProjectData getter and the editor-only Editor_SetProjectData(...) helper in Runtime/Core/FUnityManager.cs and has no writable Project member. This code will not compile in the editor assembly, blocking the entire project build until the assignment is rewritten to use the available API.

Useful? React with 👍 / 👎.

EditorUtility.SetDirty(manager);

Debug.Log($"[FUnity] Switched current FUnityManager project to '{projectName}'.");
}

Selection.activeObject = projectData;

EditorUtility.DisplayDialog(
Expand Down