Saving has no effect. Your class is missing the FilePath

I thought 2022 LTS would have less odd console messages! /rant

I get this after webgl builds:
Saving has no effect. Your class ‘UnityEditor.WebGL.HttpServerEditorWrapper’ is missing the FilePathAttribute. Use this attribute to specify where to save your ScriptableSingleton.

No idea what this is talking about!

Full text:

Saving has no effect. Your class 'UnityEditor.WebGL.HttpServerEditorWrapper' is missing the FilePathAttribute. Use this attribute to specify where to save your ScriptableSingleton.
Only call Save() and use this attribute if you want your state to survive between sessions of Unity.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:LogWarning (object)
UnityEditor.ScriptableSingleton`1<UnityEditor.WebGL.HttpServerEditorWrapper>:Save (bool)
UnityEditor.WebGL.HttpServerEditorWrapper:Create (string,int)
UnityEditor.WebGL.HttpServerEditorWrapper:CreateIfNeeded (string,int&)
UnityEditor.WebGL.WebGlBuildPostprocessor:LaunchPlayer (UnityEditor.Modules.BuildLaunchPlayerArgs)
UnityEditor.PostprocessBuildPlayer:Launch (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,string,string,UnityEditor.BuildOptions,UnityEditor.Build.Reporting.BuildReport)
UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun (bool)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()
4 Likes

Sorry about the warning! Can you share a project/script that produces this warning. I’ve never seen it before so it’ll speed up the looking-into-it part :slight_smile:

It happens in a brand new URP/UI project, but here is a case report: IN-67385

This is not being fixed: Unity Issue Tracker - “Saving has no effect. Your class ‘UnityEditor.WebGL.HttpServerEditorWrapper’ is missing the FilePathAttribute” warning is thrown when building a WebGL Player (unity3d.com)

I thank the team for a quick response, but a little more info could be provided, like “this is a harmless message to do with…”.
Because just saying won’t fix is not very helpful and rather blunt.

2 Likes

Hi @andyz . You’re right. That message is generic. I’ll bring it up with the team to see if we can refine it, I’m not sure how fast that will happen. However, we are adding a task to address this warning so our implementation of HttpServerEditorWrapper doesn’t trigger it.

1 Like

i found this problem too.
Did u have something news?
"
Saving has no effect. Your class ‘UnityEditor.WebGL.HttpServerEditorWrapper’ is missing the FilePathAttribute. Use this attribute to specify where to save your ScriptableSingleton.
Only call Save() and use this attribute if you want your state to survive between sessions of Unity.
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()
"

1 Like

I am getting this problem every time i have selected different type of terrain tools. Any solution on this? 

2 Likes

I experienced the same error, but after updating the editor version to 2021.3.39f1, I re-imported terrain tools from the editor, and this was fixed.

i am currently using 2022.3.29f1 . do I need to update previous version?

1 Like

Did you update to the previous version? I am getting the same warning as yours whenever I choose a terrain brush and my version is 2022.3.31f1

Yes, we fixed the issue by updating to the previous version. If you need the latest version of the feature and cannot update the previous version, open an error script and type [FilePathAttribute(“FileName”, FilePathAttribute.Location.ProjectFolder)] in the top line of the class. (The file path to save the data must be entered between double quotes.)