Step on the Pit
Do the editor some settings serialization exists locally when the class inheriting from Scriptableobject passes
The created asset file.
After restarting unity, look at this asset and discover that all of the serialized attributes above are missing, and the report's error is
Find the answer after finding a website that doesn't exist
A scriptableobject that needs to be serialized locally must have its own entity script file with the same name.
That is, the class name that can be found in the SCIPT option. cs file
Unity seems to find the script file based on the serialized class name, recheck the script's serializable entries, and then deserialize the serializable option again.
That's the problem, just create a new data class with the same name CS file, and then move the code over
Test--
Problem solving
Scriptableobject after local serialization restarts unity and reports the associated script can not be loaded. Fix any compile errors and assign a valid script pit