Serialized references will always stay references. The only exception are references to child objects when cloning gameobjects.
ScriptableObjects are assets. Assets can only reference other assets. So if you want a “true” deep copy it would have a quite heavy effect. For example when your scriptable object references other scriptable objects which might reference prefabs. A deep copy would require to also duplicate those “referenced” scriptableobjects as well. However since they are assets they need a new file name. However the referenced prefabs would also need to be duplicated. If the prefabs reference Meshes and materials those need to be duplicated as well. The Material will reference a shader and some textures which would be duplicated as well. I can’t really imagine any situation where you need that.
In most cases you will have only some specific references you want to duplicate. In that case you have to duplicate those manually. Keep in mind that all assets need to be stored in some sort of asset file.
If that doesn’t answer your question you should be more specific about what kind of references you talk about and what you mean by “deep copy”.
well quite a while ago and i dug into other stuff, but still I can't even copy a string from one object to another... what am i doing wrong? ApplyModifiedProperties as well as serializedObject.Update() don't work.
The problem is that Instantiate and CopySerialized both do a shallow copy. Any nested ScriptableObject references just carry over pointing to the same original assets — none of the built-in methods walk the hierarchy and duplicate them.
To actually do it properly you need to iterate the serialized properties using SerializedObject/SerializedProperty, find every nested SO reference, CreateInstance a copy of each, save them as new .asset files, then re-wire the references back up the chain. This gets very deep into recursive C# reflection calls, especially once you have more than a couple levels of nesting, and is not pretty.
K thanx anyway, I think I can 'sort of' understand it I am just a bit confused about magnitude but I will search it up on the documentation.
– CoolOlivie