I'm afraid that it's not possible to save prefabs as it would require too much processor power and memory to do so. You should instead save only the variables that you need to save (for example, the Transform, or variables in any scripts you have attached to the prefab).
Regards,
Joel
Search found 4855 matches
- Wed May 08, 2013 10:48 am
- Forum: (Legacy) Easy Save 2 General Discussion
- Topic: Saving to and loading from mySQL
- Replies: 7
- Views: 14764
- Wed May 08, 2013 9:47 am
- Forum: (Legacy) Easy Save 2 General Discussion
- Topic: Saving to and loading from mySQL
- Replies: 7
- Views: 14764
Re: Saving to and loading from mySQL
Basically, usually ES2 uploads data with a header attached, which tells us information about the type of data being stored among other things. The data is also encoded in a way which allows it to be stored and loaded quicker. However, when you use UploadRaw, it stores it in the database as a string ...
- Wed May 08, 2013 9:31 am
- Forum: (Legacy) Easy Save 2 General Discussion
- Topic: Saving to and loading from mySQL
- Replies: 7
- Views: 14764
Re: Saving to and loading from mySQL
Hi again, 3. Again, because data is stored in Easy Save's own format, it would be difficult to display the data to a standard PHP page. However, ES2Web does include an UploadRaw method which allows you to upload a string to the database, without any of the ES2 formatting data. The ES2 MySQL database...
- Wed May 08, 2013 7:50 am
- Forum: (Legacy) Easy Save 2 General Discussion
- Topic: EasySave2 Mobile Questions
- Replies: 1
- Views: 5858
Re: EasySave2 Mobile Questions
Hi kromenak, The cost of performing file I/O is negligible, especially in the grand scheme of a game engine. Caching would also use up memory, which seems to be more important, especially on mobile. If it's essential that you have caching, in Easy Save 2 you can set the save location to Playerprefs,...
- Tue May 07, 2013 8:50 pm
- Forum: (Legacy) Easy Save 2 General Discussion
- Topic: Saving to and loading from mySQL
- Replies: 7
- Views: 14764
Re: Saving to and loading from mySQL
Hi Bond, I'll answer your questions in order: 1. Like all WWW communication in Unity, saving/loading to web uses a coroutine, so it spreads it across multiple frames if it needs to (for example, if the internet connection is very slow). Unless you're transferring large amounts of data (such as large...
- Sat May 04, 2013 7:40 am
- Forum: (Legacy) Easy Save 2 General Discussion
- Topic: Proper way to load 2d array?
- Replies: 2
- Views: 7745
Re: Proper way to load 2d array?
The simplest way in your case is indeed to have a separate scripts which handles saving and loading, rather than getting each individual object. Also you are correct in saying that you will have to save and load the entire array. Easy Save 2 is very fast, so I wouldn't worry about performance. Somet...
- Tue Apr 30, 2013 4:38 pm
- Forum: (Legacy) Easy Save 2 General Discussion
- Topic: web.Upload array error
- Replies: 1
- Views: 5769
Re: web.Upload array error
Hi there, Your syntax is perfect; the problem is at our end. For some reason the compiler has ignored the Upload methods for collections. We're going to revert back to the earlier version of the compiler so this will be fixed in the upcoming update, which we hope will be available within the next we...
- Sun Apr 21, 2013 10:25 am
- Forum: (Legacy) Easy Save 2 Examples and Tutorials
- Topic: Saving, Loading and Instantiating Prefabs
- Replies: 5
- Views: 73526
Saving, Loading and Instantiating Prefabs
Saving, Loading and Instantiating Prefabs In this example, we create a script which saves and loads prefabs. The main functions we use in this example are: Unity's Instantiate Function to create our prefabs ES2.Save ES2.Load self-assigning function, which loads the data into the Component supplied ...
- Fri Apr 19, 2013 12:11 pm
- Forum: (Legacy) Easy Save 2 General Discussion
- Topic: ES2 Web Questions
- Replies: 1
- Views: 5649
Re: ES2 Web Questions
Hi ltcastro, Easy Save is a saving method in its own right, so you do not use Playerprefs or PlayerprefsX. For the record, ES2 will automatically store data in Playerprefs on webplayer. Examples can be found HERE , including this example explaining how to save to web . Encryption can be used by spec...
- Fri Apr 05, 2013 9:10 pm
- Forum: (Legacy) Easy Save 2 Examples and Tutorials
- Topic: Creating 'Quit' & 'Continue' buttons with Easy Save
- Replies: 2
- Views: 43672
Creating 'Quit' & 'Continue' buttons with Easy Save
Creating 'Quit' & 'Continue' buttons with Easy Save This basic example shows how you can use GUIButtons to allow the user to Save and Load the state of the game. When the user presses 'Quit', it saves whichever variables we need to save. When they press 'Continue', it loads these variables. pub...