x


save meshfilter for retrieval even after app termination iphone android

What is the best way to save a mesh (edited at runtime) for retrieval after an app has terminated (available also for future sessions when the app is run)?

Is there a method more straight-forward than converting it to something like obj, then using an obj importer? It seems like some unnecessary processing, if the end target view client will simply be the same Unity engine app that reads meshfilters

more ▼

asked Jan 04 '11 at 06:55 AM

ina gravatar image

ina
3.3k 492 549 598

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

What you need to do is serialize the MeshFilter to disk. Unfortunately, Unity's support for serialization is pretty poor. You'll have to roll your own (like dumping MeshFilter properties to disk as XML or a binary blob, as well as mesh instances), or do the lengthy process that you mentioned.

Although honestly I'm not sure how the way that you mention would work. My knowledge is honestly a little lacking in this area.

If you want to read more about serialization in C#, check out this link: http://www.codeproject.com/KB/cs/objserial.aspx

more ▼

answered Jan 04 '11 at 02:39 PM

d3coy gravatar image

d3coy
252 1 1 10

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2471
x1999
x1359
x300
x64

asked: Jan 04 '11 at 06:55 AM

Seen: 1273 times

Last Updated: Jan 04 '11 at 06:55 AM