Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


serializedobject

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
serializedobject [2021/02/23 16:51] 73.95.178.156serializedobject [2021/04/29 19:11] uninomiconadmin
Line 4: Line 4:
 Getting a managed reference out of a SerializedProperty is very challenging. It's better to just use C# reflection on the original object and force the asset / object to re-save. Getting a managed reference out of a SerializedProperty is very challenging. It's better to just use C# reflection on the original object and force the asset / object to re-save.
  
-See also: [[https://forum.unity.com/threads/setting-a-serializedproperty-to-a-struct.521752/]]+See:  
 +  * [[https://forum.unity.com/threads/setting-a-serializedproperty-to-a-struct.521752/]] 
 +  * [[https://answers.unity.com/questions/1347203/a-smarter-way-to-get-the-type-of-serializedpropert.html]] ((This link has very poor code, but the general approach is correct. It is missing many corner cases, including inheritance and private fields, etc))
  
  
serializedobject.txt · Last modified: 2025/01/15 04:35 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki