Quantcast
Channel: Latest Questions by Brian-Kehrer
Viewing all articles
Browse latest Browse all 18

Is it possible to serialize and store custom structs on the iPhone in scriptableObjects?

$
0
0

This is the general idea. I'd like to store a bunch of these in a scriptable object without making them classes. Unfortunately it fails to save the data when stored as a struct.

I've seen forum threads mentioning using custom inspectors, but those are not available in the iPhone IDE.

[System.Serializable]
public struct Point{
    public int x;
    public int y;

}

As a thought, if this IS possible in 2.6, how would one go about saving the data, and could that data be imported into iPhone Unity once serialized as an asset?


Viewing all articles
Browse latest Browse all 18

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>