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 ()
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
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.
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.
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 ()
"
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.)