c903626c3a
The converter was declared public with a default constructor, so generic Newtonsoft scanners (e.g. jillejr's newtonsoft-json-for-unity converters) could pick it up and bind it into JsonConvert.DefaultSettings. Once attached globally, any unrelated project code serializing a struct or class containing a UnityEngine.Object reference would silently get an asset path string back instead of the expected object JSON — purely from having MCP for Unity installed. Make the converter internal and expose Runtime internals to the Editor and test assemblies via a Runtime AssemblyInfo so existing internal consumers (UnityJsonSerializer, GameObjectSerializer) keep compiling.
12 lines
240 B
Plaintext
12 lines
240 B
Plaintext
fileFormatVersion: 2
|
|
guid: 96306c75346e49089f53d7f73de24a3b
|
|
MonoImporter:
|
|
externalObjects: {}
|
|
serializedVersion: 2
|
|
defaultReferences: []
|
|
executionOrder: 0
|
|
icon: {instanceID: 0}
|
|
userData:
|
|
assetBundleName:
|
|
assetBundleVariant:
|