Saving Class Components C#

58 Views Asked by At

So I have a class inside my unity project, during gameplay, some properties get assigned some values and stuff, is there is a way to save the whole class to be reloaded again later on ?

I use Microsoft.ML and apparently it's having a hard time loading stuff on android

var mlContext = new MLContext();

ITransformer mlModel = mlContext.Model.Load(MLNetModelPath, out var _);

inside my class I have this and I would like to run the project on my pc, save the mlModel components to use them later on android phones. Help please ?

0

There are 0 best solutions below