Well, I’m working on a WebGL app that allows the user to add contents like images, sounds, 3D objects, etc… over augmented reality targets.
This app is responsible of the creation of any of the contents and later it should serialize all the contents added by the user and save them in a server to be able to reproduce them in a mobile app.
**My problem is: **
I want to save the position data of the contents that the user adds but since I’m trying to serialize the data from the scripts attached to each content (i.e. image gameobject has a image script) and those scripts inherit from Monobehavior I can’t serialize the transform data for that content.
So now I’m trying to find a solution for that issue creating separate scripts that contain only the data that will be saved (without being attached to a gameobject) and I was thinking, is there a library or something similar to Automapper in C# to map the values between the scripts when the app saves the data?
Note: I’ve also tried downloading Automapper dll and use it as a plugin but I can’t find a proper version that works with .Net Unity Subset 3.5.
Thanks in advance.