There is a good method for loading data from a disk
Is there a method for storing of an information on the disk like
Resources.Save()?
Thank you.
There is a good method for loading data from a disk
Is there a method for storing of an information on the disk like
Resources.Save()?
Thank you.
In edtior-mode you can use
ScriptableObject like:
public class InventoryItemList : ScriptableObject
{
public List<InventoryItem> itemList;
}
///////////////////////////////////////////////////////////////////////////////
InventoryItemList asset = ScriptableObject.CreateInstance<InventoryItemList>();
AssetDatabase.CreateAsset(asset,"Assets/InventoryItemList.asset");
AssetDatabase.SaveAssets();
or
Mesh yourMesh = <get any mesh class>;
AssetDatabase.CreateAsset(yourMesh,"Assets/yourmesh.asset");
AssetDatabase.SaveAssets();
but in gamemode i think your only option is playerprefs or just FileStream/StreamWriter functions from c#.