├── Assets ├── Plugins │ ├── OpenUnityTools │ │ ├── unityserializer-ng │ │ │ ├── Serialization │ │ │ │ ├── .gitignore │ │ │ │ ├── Rooms.meta │ │ │ │ ├── Rooms │ │ │ │ │ ├── Examples.meta │ │ │ │ │ ├── Room.cs.meta │ │ │ │ │ ├── RoomLoader.cs.meta │ │ │ │ │ ├── RoomManager.cs.meta │ │ │ │ │ ├── DontStoreObjectInRoom.cs.meta │ │ │ │ │ ├── Examples │ │ │ │ │ │ ├── PlayerLocator.cs.meta │ │ │ │ │ │ ├── PlayerSpawnPoint.cs.meta │ │ │ │ │ │ ├── PlayerLocator.cs │ │ │ │ │ │ └── PlayerSpawnPoint.cs │ │ │ │ │ ├── PreserveObjectWhenLoading.cs.meta │ │ │ │ │ ├── RoomDataSaveGameStorage.cs.meta │ │ │ │ │ ├── Room.cs │ │ │ │ │ ├── RoomDataSaveGameStorage.cs │ │ │ │ │ ├── RoomLoader.cs │ │ │ │ │ ├── PreserveObjectWhenLoading.cs │ │ │ │ │ ├── DontStoreObjectInRoom.cs │ │ │ │ │ └── RoomManager.cs │ │ │ │ ├── PersistentStorage.meta │ │ │ │ ├── Entry.cs.meta │ │ │ │ ├── GetSet.cs.meta │ │ │ │ ├── IStorage.cs.meta │ │ │ │ ├── Storage.cs.meta │ │ │ │ ├── prewarm.cs.meta │ │ │ │ ├── GetSetGeneric.cs.meta │ │ │ │ ├── InRangeItem.cs.meta │ │ │ │ ├── LevelLoader.cs.meta │ │ │ │ ├── RemoveEditors.cs.meta │ │ │ │ ├── StoreMesh.cs.meta │ │ │ │ ├── LevelSerializer.cs.meta │ │ │ │ ├── OnlyInRangeManager.cs.meta │ │ │ │ ├── PrefabIdentifier.cs.meta │ │ │ │ ├── SaveGameManager.cs.meta │ │ │ │ ├── SerializationUnits.cs.meta │ │ │ │ ├── StoreInformation.cs.meta │ │ │ │ ├── StoreMaterials.cs.meta │ │ │ │ ├── StoredReferences.cs.meta │ │ │ │ ├── TimeSpecialist.cs.meta │ │ │ │ ├── UniqueIdentifier.cs.meta │ │ │ │ ├── UnitySerializer.cs.meta │ │ │ │ ├── EmptyObjectIdentifier.cs.meta │ │ │ │ ├── GetWritableAttributes.cs.meta │ │ │ │ ├── PersistentStorage │ │ │ │ │ ├── FilePrefs.cs.meta │ │ │ │ │ ├── SaveOnQuit.cs.meta │ │ │ │ │ ├── DataContainer.cs.meta │ │ │ │ │ ├── SaveOnQuit.cs │ │ │ │ │ └── FilePrefs.cs │ │ │ │ ├── UnitySerializationExtensions.cs.meta │ │ │ │ ├── StoreAnimator.cs.meta │ │ │ │ ├── RemoveEditors.cs │ │ │ │ ├── TimeSpecialist.cs │ │ │ │ ├── GetSet.cs │ │ │ │ ├── EmptyObjectIdentifier.cs │ │ │ │ ├── StoreInformation.cs │ │ │ │ ├── PrefabIdentifier.cs │ │ │ │ ├── Storage.cs │ │ │ │ ├── InRangeItem.cs │ │ │ │ ├── StoreMesh.cs │ │ │ │ ├── Entry.cs │ │ │ │ ├── UniqueIdentifier.cs │ │ │ │ ├── GetSetGeneric.cs │ │ │ │ └── StoredReferences.cs │ │ │ ├── license.txt.meta │ │ │ ├── LitJson.meta │ │ │ ├── Radical.meta │ │ │ ├── SharpZIP.meta │ │ │ ├── Utility.meta │ │ │ ├── Serialization.meta │ │ │ ├── SharpZIP │ │ │ │ ├── src.meta │ │ │ │ └── src │ │ │ │ │ ├── Checksums.meta │ │ │ │ │ ├── Encryption.meta │ │ │ │ │ ├── Compression.meta │ │ │ │ │ ├── Compression │ │ │ │ │ ├── Streams.meta │ │ │ │ │ ├── Deflater.cs.meta │ │ │ │ │ ├── Inflater.cs.meta │ │ │ │ │ ├── DeflaterConstants.cs.meta │ │ │ │ │ ├── DeflaterEngine.cs.meta │ │ │ │ │ ├── DeflaterHuffman.cs.meta │ │ │ │ │ ├── DeflaterPending.cs.meta │ │ │ │ │ ├── InflaterDynHeader.cs.meta │ │ │ │ │ ├── PendingBuffer.cs.meta │ │ │ │ │ ├── InflaterHuffmanTree.cs.meta │ │ │ │ │ ├── Streams │ │ │ │ │ │ ├── OutputWindow.cs.meta │ │ │ │ │ │ ├── InflaterInputStream.cs.meta │ │ │ │ │ │ ├── StreamManipulator.cs.meta │ │ │ │ │ │ └── DeflaterOutputStream.cs.meta │ │ │ │ │ └── DeflaterPending.cs │ │ │ │ │ ├── ZipEntry.cs.meta │ │ │ │ │ ├── ZipConstants.cs.meta │ │ │ │ │ ├── ZipExtraData.cs.meta │ │ │ │ │ ├── Checksums │ │ │ │ │ ├── Adler32.cs.meta │ │ │ │ │ ├── CRC32.cs.meta │ │ │ │ │ ├── IChecksum.cs.meta │ │ │ │ │ ├── StrangeCRC.cs.meta │ │ │ │ │ └── IChecksum.cs │ │ │ │ │ ├── ZipHelperStream.cs.meta │ │ │ │ │ ├── Encryption │ │ │ │ │ ├── PkzipClassic.cs.meta │ │ │ │ │ ├── ZipAESStream.cs.meta │ │ │ │ │ └── ZipAESTransform.cs.meta │ │ │ │ │ ├── SharpZipBaseException.cs.meta │ │ │ │ │ └── SharpZipBaseException.cs │ │ │ ├── Radical │ │ │ │ ├── System.meta │ │ │ │ ├── System │ │ │ │ │ ├── Testing.meta │ │ │ │ │ ├── Delegates.meta │ │ │ │ │ ├── Curves.cs.meta │ │ │ │ │ ├── Easing.cs.meta │ │ │ │ │ ├── Loom.cs.meta │ │ │ │ │ ├── Radical.cs.meta │ │ │ │ │ ├── Broadcaster.cs.meta │ │ │ │ │ ├── Smoothing.cs.meta │ │ │ │ │ ├── XmlSupport.cs.meta │ │ │ │ │ ├── InheritableRPC.cs.meta │ │ │ │ │ ├── LoadAnimations.cs.meta │ │ │ │ │ ├── MonoBehaviourEx.cs.meta │ │ │ │ │ ├── RadicalRoutine.cs.meta │ │ │ │ │ ├── Testing │ │ │ │ │ │ ├── Inherited.cs.meta │ │ │ │ │ │ ├── SimpleCaller.cs.meta │ │ │ │ │ │ ├── Inherited.cs │ │ │ │ │ │ └── SimpleCaller.cs │ │ │ │ │ ├── RadicalRoutineHelper.cs.meta │ │ │ │ │ ├── TransformExtensions.cs.meta │ │ │ │ │ ├── Delegates │ │ │ │ │ │ └── DelegateSupport.cs.meta │ │ │ │ │ ├── LoadAnimations.cs │ │ │ │ │ ├── XmlSupport.cs │ │ │ │ │ ├── MonoBehaviourEx.cs │ │ │ │ │ ├── Broadcaster.cs │ │ │ │ │ ├── InheritableRPC.cs │ │ │ │ │ ├── RadicalRoutineHelper.cs │ │ │ │ │ ├── Loom.cs │ │ │ │ │ └── TransformExtensions.cs │ │ │ │ ├── RPCEnabler.cs.meta │ │ │ │ └── RPCEnabler.cs │ │ │ ├── ResultLogger.cs.meta │ │ │ ├── SevenZipHelper.cs.meta │ │ │ ├── Utility │ │ │ │ ├── Types.cs.meta │ │ │ │ └── Types.cs │ │ │ ├── UnitySerializerVersion.cs.meta │ │ │ ├── UnitySerializerVersion.cs │ │ │ ├── license.txt │ │ │ ├── ResultLogger.cs │ │ │ └── SevenZipHelper.cs │ │ └── unityserializer-ng.meta │ ├── Editor.meta │ ├── OpenUnityTools.meta │ └── Editor │ │ ├── OpenUnityTools.meta │ │ └── OpenUnityTools │ │ ├── unityserializer-ng │ │ ├── Assets │ │ │ ├── Id.tga │ │ │ ├── Prefab.tga │ │ │ ├── Room.tga │ │ │ ├── Store.tga │ │ │ ├── Manager.tga │ │ │ ├── Materials.tga │ │ │ ├── RoomExclude.tga │ │ │ ├── Id.tga.meta │ │ │ ├── Manager.tga.meta │ │ │ ├── Prefab.tga.meta │ │ │ ├── Room.tga.meta │ │ │ ├── Store.tga.meta │ │ │ ├── Materials.tga.meta │ │ │ └── RoomExclude.tga.meta │ │ ├── Assets.meta │ │ ├── ShaderDB.meta │ │ ├── EditPrefabIdentifier.cs.meta │ │ ├── EditSaveGameManager.cs.meta │ │ ├── EditStoreInformation.cs.meta │ │ ├── UnitySerializerWindow.cs.meta │ │ ├── StoreMaterialsEditor.cs.meta │ │ ├── ShaderDB │ │ │ └── ShaderDBGenerator.cs.meta │ │ ├── EditSaveGameManager.cs │ │ ├── EditStoreInformation.cs │ │ ├── EditPrefabIdentifier.cs │ │ └── StoreMaterialsEditor.cs │ │ └── unityserializer-ng.meta ├── UnitySerializerExamples │ ├── Materials │ │ ├── box.tga │ │ ├── paused.tga │ │ ├── Floor.mat.meta │ │ ├── Object.mat.meta │ │ ├── Materials │ │ │ ├── paused.mat.meta │ │ │ └── paused.mat │ │ ├── Materials.meta │ │ ├── box.tga.meta │ │ ├── paused.tga.meta │ │ ├── Object.mat │ │ └── Floor.mat │ ├── Scripts │ │ ├── HelloWorld.cs │ │ ├── TestAnimation.anim.meta │ │ ├── ColorMe.cs.meta │ │ ├── Spawner.cs.meta │ │ ├── AddSomeForce.cs.meta │ │ ├── ChangeColor.cs.meta │ │ ├── HelloWorld.cs.meta │ │ ├── Movement.cs.meta │ │ ├── OpenDoor.cs.meta │ │ ├── PauseMenu.cs.meta │ │ ├── RenameObject.cs.meta │ │ ├── SaveAndLoad.cs.meta │ │ ├── ScaleObject.cs.meta │ │ ├── SwitchMesh.cs.meta │ │ ├── TestLoading.cs.meta │ │ ├── AdditionalData.cs.meta │ │ ├── ArrayOfPrefabs.cs.meta │ │ ├── CentreAndPointMe.cs.meta │ │ ├── CharacterMotor.cs.meta │ │ ├── CreateChildSphere.cs.meta │ │ ├── DeleteComponent.cs.meta │ │ ├── DeletedComponent.cs.meta │ │ ├── IsDeserializing.cs.meta │ │ ├── KeepAReference.cs.meta │ │ ├── TestCoroutines.cs.meta │ │ ├── VariablesToSave.cs.meta │ │ ├── AdditionalDataStorage.cs.meta │ │ ├── SwitchMesh.cs │ │ ├── OpenDoor.cs │ │ ├── RenameObject.cs │ │ ├── ArrayOfPrefabs.cs │ │ ├── DeletedComponent.cs │ │ ├── KeepAReference.cs │ │ ├── TestLoading.cs │ │ ├── IsDeserializing.cs │ │ ├── ChangeColor.cs │ │ ├── DeleteComponent.cs │ │ ├── CentreAndPointMe.cs │ │ ├── AddSomeForce.cs │ │ ├── AdditionalDataStorage.cs │ │ ├── SaveAndLoad.cs │ │ ├── CreateChildSphere.cs │ │ ├── AdditionalData.cs │ │ ├── ScaleObject.cs │ │ ├── TestCoroutines.cs │ │ ├── Movement.cs │ │ ├── VariablesToSave.cs │ │ ├── ColorMe.cs │ │ ├── Spawner.cs │ │ ├── PauseMenu.cs │ │ └── TestAnimation.anim │ ├── Example.unity.meta │ ├── Getting Started Guide.pdf │ ├── Initial.unity.meta │ ├── readme.txt.meta │ ├── Getting Started Guide.pdf.meta │ ├── Prefabs │ │ ├── Cube.prefab.meta │ │ ├── Sphere.prefab.meta │ │ ├── OtherCube.prefab.meta │ │ └── Sphere.prefab │ ├── ExampleObjectSaveAndLoad.unity.meta │ ├── Materials.meta │ ├── Prefabs.meta │ ├── Scripts.meta │ ├── Physic Materials.meta │ ├── ScriptableObjects │ │ ├── example.asset.meta │ │ ├── example2.asset.meta │ │ ├── example.asset │ │ └── example2.asset │ ├── Physic Materials │ │ ├── Ice.physicmaterial.meta │ │ ├── Metal.physicmaterial.meta │ │ ├── Wood.physicmaterial.meta │ │ ├── Bouncy.physicmaterial.meta │ │ ├── Rubber.physicmaterial.meta │ │ ├── Rubber.physicmaterial │ │ ├── Metal.physicmaterial │ │ ├── Ice.physicmaterial │ │ ├── Wood.physicmaterial │ │ └── Bouncy.physicmaterial │ ├── Room Management in Unity Serializer.pdf │ ├── Room Management in Unity Serializer.pdf.meta │ └── ScriptableObjects.meta ├── Plugins.meta ├── Resources.meta └── UnitySerializerExamples.meta ├── .gitignore ├── LICENSE ├── QUICKSTART.md └── MECANIM.md /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated source code files 2 | GENERATED/* 3 | GENERATED.meta -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Materials/box.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSniperFan/unityserializer-ng/HEAD/Assets/UnitySerializerExamples/Materials/box.tga -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/HelloWorld.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class HelloWorld : MonoBehaviour { 5 | } 6 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3cbbb85852424b4aa5dde0aab68a611 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a248c414f063459fa081883c57e0f32 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Materials/paused.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSniperFan/unityserializer-ng/HEAD/Assets/UnitySerializerExamples/Materials/paused.tga -------------------------------------------------------------------------------- /Assets/Plugins/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea91dbae15e414c169b9a32aa46b62ad 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Example.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ff26fee55919428f8a34334b20f3cda 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Getting Started Guide.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSniperFan/unityserializer-ng/HEAD/Assets/UnitySerializerExamples/Getting Started Guide.pdf -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Initial.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40f4a6d201f214cfca295478c51483a1 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/readme.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0136188f41d664d57b42010cdb1f29d7 3 | TextScriptImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67048ae4d8e8ea145b9eac616bf20aeb 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0df237d7e2cfd5641b63b0344f80ff2a 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20f75105fbe707c4aac53b2e6afd39cf 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Getting Started Guide.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9dbe9b38d30404be0bc3b0abec9ce499 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Materials/Floor.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 978b311b48b934d51947aae4a00b26c7 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Materials/Object.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 040cb578f791c694cbe501e9edfc9292 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Prefabs/Cube.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25731789d905d497aab2bb59d19f936e 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Prefabs/Sphere.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa2736a0a137f4d9394fe610fedb3e1d 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/license.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a7bdf19155a04231aa3861da131f74c 3 | TextScriptImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/ExampleObjectSaveAndLoad.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d067e245ea0444d7bb2903766dcef0b 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4cb63bf523ab34262b65209570f700db 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5f860bfb617e4be3aadb9f23726b6d2 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Prefabs/OtherCube.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 253b1035f30874a389666226b3bf8a37 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d1199e383fa245c3a4390d1b41332d7 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/TestAnimation.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec7f08d1c5329406180f5a360fa8e770 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Physic Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c48f755640f4048aeaa765302f0c14b3 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/ScriptableObjects/example.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8ee7326411f04983bb5e7e112668b61 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/ScriptableObjects/example2.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a54be6f1c68ae4e578f72833425ebbb9 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Id.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSniperFan/unityserializer-ng/HEAD/Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Id.tga -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6da669c190005ef4b85789a29da4a1f2 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Physic Materials/Ice.physicmaterial.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5410a64fad11e8d6d00011d98d76c639 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Physic Materials/Metal.physicmaterial.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67db31eead11e8d6d00011d98d76c639 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Physic Materials/Wood.physicmaterial.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cdf7d3f1ad11f8d6d00011d98d76c639 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Room Management in Unity Serializer.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSniperFan/unityserializer-ng/HEAD/Assets/UnitySerializerExamples/Room Management in Unity Serializer.pdf -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Room Management in Unity Serializer.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0aed67b976a0e497dbe1cbba790913cb 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/ScriptableObjects.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e91e6fd3ca2b64a39840fa6bdcee3413 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23a51102b70cac54e89f2303e0398afd 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Prefab.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSniperFan/unityserializer-ng/HEAD/Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Prefab.tga -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Room.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSniperFan/unityserializer-ng/HEAD/Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Room.tga -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Store.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSniperFan/unityserializer-ng/HEAD/Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Store.tga -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/LitJson.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d51ee5d1ef2542fc89ca95c9af6b10a 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 24e5ecf423d6b4e9cbc21639a57f7d17 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ac7f515426d24de78884721b76a7e8a 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Utility.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb3a287c681644835bd724fbde59a6cc 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Physic Materials/Bouncy.physicmaterial.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99e86ee0ad11f8d6d00011d98d76c639 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Physic Materials/Rubber.physicmaterial.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa9a139ead11e8d6d00011d98d76c639 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f57cafb37b062415892157c960a4410f 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Manager.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSniperFan/unityserializer-ng/HEAD/Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Manager.tga -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71d727ae793f94515b15ac0362df15ae 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f2e58e8884fe47a5b026dda9964f324 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Materials.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSniperFan/unityserializer-ng/HEAD/Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Materials.tga -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/RoomExclude.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSniperFan/unityserializer-ng/HEAD/Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/RoomExclude.tga -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a7d6a8c85f3841e5be2435b842ce263 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Testing.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f13a3c57187ad443688e122fd22665e8 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44bf56efa508344749a6911b8cfbd320 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Checksums.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16f5f6337a00f4a8bb3edc2780aacdaf 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Encryption.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d483596590e3c488890dab814e65c6f8 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Delegates.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2f0ca43622d444ab9f3444a8fa8b398 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/Examples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48e9d9a0c64b54ef693e4df8febb086d 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: baeb369a1df174dc394735380079a6e9 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/PersistentStorage.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6efdb33d1243c3e4a91a54f418eeba6e 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/Streams.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d689d04cd88064b59aa8afc17969a586 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Materials/Materials/paused.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9470b3367d5ddde458185f8fe3a96708 3 | timeCreated: 1426102879 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Materials/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 486a3fb5d1fa5134d8da1f2fe253c7a4 3 | folderAsset: yes 4 | timeCreated: 1426102879 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/ColorMe.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd009281c0c25454da574245c2edec36 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/Spawner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f34cf46dff49aa45bfd2a4de07a4184 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/AddSomeForce.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8fb50b7bbe504030b2849f791c67273 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/ChangeColor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b1fd9311ffa94e4aaa1d8187dd07958 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/HelloWorld.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 727a773b9e73c3f418fa4cbf5edef254 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/Movement.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40cc22df3edbb1f418ebf9efe7a57a18 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/OpenDoor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b372ad714d5c461d84d1890e5f24044 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/PauseMenu.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 810dd5fbf04b77942bbc0a93cdff1fdc 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/RenameObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1e450f7f3d5f488ea60bd44490b60cc 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/SaveAndLoad.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: edc17004b84ab4095994632757806888 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/ScaleObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2bbed7d88e209463d84519f8729aa1bf 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/SwitchMesh.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dabf92c7f04ef452fa5e33ef27ba98ec 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/TestLoading.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a8ff0406fa5440aba4dee7e99f33b2d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/ShaderDB.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 372f3e35c4fa4e04c888761843a6fc67 3 | folderAsset: yes 4 | timeCreated: 1426371139 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/AdditionalData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c986b5240af204e06923c9a485b9ea4f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/ArrayOfPrefabs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ac8867c87b4245008f8df1555be4420 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/CentreAndPointMe.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04cc4fd8034704b97bcd9637dde19676 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/CharacterMotor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0088b1c66df68a49ae1db4b1c5f7d26 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/CreateChildSphere.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c17ef1de75a5949f6949e38e99f38f37 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/DeleteComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 75fad4a3361ef45d09eacb981bb2e799 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/DeletedComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 74a0f207ad31947cb83f9f80145262ea 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/IsDeserializing.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b784fc0cbaff4a9fafce57883be2e19 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/KeepAReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 49b0af0e77ec94a91b3d96f909ceac24 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/TestCoroutines.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b227248b820d4e7c91f0b284ecff7fc 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/VariablesToSave.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c9dcf33fd88084f89aab7768c5028f9b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/ResultLogger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71f79fc168e274731b61e00d277c3227 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/AdditionalDataStorage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13a1d0245c6724bfaa5b7de9576c217b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SevenZipHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0299ad50876c54c7b87f778daa1bf6cd 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Utility/Types.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03b4eee448fe04ea390e87bd05d2b379 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/SwitchMesh.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class SwitchMesh : MonoBehaviour { 5 | [SerializeField] 6 | private Mesh mesh; 7 | 8 | private void OnMouseDown() { 9 | GetComponent().mesh = mesh; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/RPCEnabler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39cb5ae51c2db4676bcb38d4d72127ef 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Curves.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a63412f534c594a9d84b05c65be4bf5d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Easing.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f62338a8fc594e45a648876650eb6bc 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Loom.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3375d4960566b4163b7b5b9f6cb9a17e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Radical.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a27a78b259714ea287211766d04070e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Entry.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ea67d475e498416e8def1aa2832dbd6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/GetSet.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4400e92d574d94460888564130cb0a12 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/IStorage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd14ac5f60876412886a11afd634be87 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Storage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 517312263296a421ca53fdc4263e6e41 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/prewarm.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9fbd77edb9a14a18a64a4c2a0d199b6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/ZipEntry.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2dfc22748693a41229faab0ebe15702f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/UnitySerializerVersion.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1777c67566af847aba0a476e4654a06d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/EditPrefabIdentifier.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f98924db16a44b66bbb490d5e895d7b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/EditSaveGameManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8821d59dabd8a4e02b50b3c672cf3a88 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/EditStoreInformation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: baaa34b25c8c14f4e93de05d888eba29 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Broadcaster.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c68998c249ee44734b6bdbaaad19dba8 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Smoothing.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99f34011eb12f4dd4914b659a71c9632 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/XmlSupport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9d3c0d4be543413dad912a48f7ce8b9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/GetSetGeneric.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4dadfa53aa09441d9b2d5954ae0a523f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/InRangeItem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d44335c9d199445b8ad1c51d50847a66 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/LevelLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc16b825980394e5cb8d4e1e4e674b87 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/RemoveEditors.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5aeb0af3e37554068a05f78ff383c44d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/Room.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 510d9a634d2bd4e98bfb44e67370314f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/StoreMesh.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76709bcbe3e18469dbeac7f3b0ba7a24 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/ZipConstants.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a25f9c5095324e7c9f273bf5d868767 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/ZipExtraData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a0735420d9e84c0aa009a7c69fe005e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/UnitySerializerWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 559de5b6f2687479aba775a6f839a23b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/InheritableRPC.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 754d95386d6cc489195f951bbeeb7345 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/LoadAnimations.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 572979da591b6448ebf32e8c5abd0e94 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/MonoBehaviourEx.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64c9a3211e0f24dd4859b22828c444f7 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/RadicalRoutine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e158569177782460d820881865abd7ee 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Testing/Inherited.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11d81f859981b4774af0a8c8a286db49 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/LevelSerializer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bee295f5f56994a8ea1d4b0555c23d6e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/OnlyInRangeManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3b3f904dd9084af39a3ada597395b75 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/PrefabIdentifier.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5ac6d84dca7648fab1a3a905dbc55b1 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/RoomLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 199ee97bd816f4a6d9c11cae8d3594f4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/RoomManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21b88b609142d4ace8d09e30d7a1af2f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/SaveGameManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d49efd53907b42149a342aa0ce6e3d2 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/SerializationUnits.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d15f334f75ad2492bb23f48eee9186e9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/StoreInformation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd6fd92df3c974ed690d61989eb183ce 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/StoreMaterials.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e43eca1594e1c404d9ca96908baac6c8 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/StoredReferences.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7debdd6cf0c58417c8b76cf5f31b1c12 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/TimeSpecialist.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0469af1f070e3444ab8b806c22cbaa03 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/UniqueIdentifier.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: efc7f0a036bc94ddf9e7626ffd54921d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/UnitySerializer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d12e0b9b8d6014178820f6eccd82da9a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Checksums/Adler32.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6bb5a41c512e643a4ae41c2871c0f4d0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Checksums/CRC32.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34219ca186a904530ba979daf64dfb8a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Checksums/IChecksum.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d757660e6c9f40d2bb12e4cc0dfdc6a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/ZipHelperStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76d7d316cb5a6450aac543d5d4e7bbad 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/RadicalRoutineHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 006eaa8472a6449a0bc9038b127c6f02 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Testing/SimpleCaller.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43fc7e89719804996b7cc293b8e29473 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/TransformExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4a4ab275c87ab4177a0dcc0d231fa401 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/EmptyObjectIdentifier.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf5b7d1cc52e74227abaeedca77ab399 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/GetWritableAttributes.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c40ee9491d94a41419b0410f765ee640 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Checksums/StrangeCRC.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 296010aa6224a422ab67c875415d3bba 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/Deflater.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ab1f30bca12db46f08f3c1b10641edf3 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/Inflater.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe01421d1e4bb44efb748d4f9a9b9205 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Encryption/PkzipClassic.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a245c832080d46ff893e46793b955ad 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Encryption/ZipAESStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3478d438497344efabdf0f3fb3dbb760 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/SharpZipBaseException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b618e5fc9e16a4e5fb711206734a7b0b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Delegates/DelegateSupport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6153c5dfcdc4e4254b3852b22d6df522 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/PersistentStorage/FilePrefs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f481e698282002b418dd2bf549fe9544 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/PersistentStorage/SaveOnQuit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 455ed196df24ebf4690443e4100d22dc 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/DontStoreObjectInRoom.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d17d65ff14be4e0085128cfd4a34e0b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/Examples/PlayerLocator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbddc078c73cf4b7eacbc1407856e9a9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/UnitySerializationExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c189d2ff977d8424ab696a5ccff96c25 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/DeflaterConstants.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 875bd94b8b2eb4b41b9a82ca33113ec9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/DeflaterEngine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a17e4cb8ad29437d9d6693ab2695130 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/DeflaterHuffman.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e167b7359e7545f78386aa11dd24e53 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/DeflaterPending.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a712327092afc421fa009ecba032dd67 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/InflaterDynHeader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2f5add5da0db940e58589501bb4a897d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/PendingBuffer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4c33785ebfe549a4b4b20ec0e87edf7 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Encryption/ZipAESTransform.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ddd7c9f933f094d4b8003025caac7cfb 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/PersistentStorage/DataContainer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c44c1cfa26c56bf4e9f6523a55c4fff8 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/Examples/PlayerSpawnPoint.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cdb0fb1dc46a1408498be4acedd5ac7f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/PreserveObjectWhenLoading.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1740ce0ceac54778a4880662c71d07b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/RoomDataSaveGameStorage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 299b713a9f46a46deac1f4aec00df5f6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/InflaterHuffmanTree.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd438cc01e78c4dbe928b19ff3d3e9cf 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/Streams/OutputWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da7d7e5e442d54b9a8447757b9b9ccba 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/UnitySerializerVersion.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using UnityEngine; 5 | using System.Collections; 6 | 7 | public class UnitySerializerVersion : MonoBehaviour { 8 | 9 | public static int[] version = new [] { 2, 5, 0 }; 10 | } 11 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/Streams/InflaterInputStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4b7d4cd813d84be1b9b21a8096a982f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/Streams/StreamManipulator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 24402f2075e1647ad93760fa8fb57485 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/Streams/DeflaterOutputStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1744c1074974a4e06bbc5102e3fe57e8 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/OpenDoor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class OpenDoor : MonoBehaviour { 5 | 6 | void Update() 7 | { 8 | if(Input.GetKeyDown(KeyCode.B)) 9 | { 10 | GetComponent().AddForceAtPosition(Vector3.forward * 10, transform.position + new Vector3(0.3f,0,0), ForceMode.Impulse); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/StoreMaterialsEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57bfa44da3d329447af8e12f59acfda5 3 | timeCreated: 1425745888 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/StoreAnimator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c068e2a0146e38b4e93ef48011e34eb3 3 | timeCreated: 1455380077 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/ShaderDB/ShaderDBGenerator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9276abcce85f564eb4e1720f7f57639 3 | timeCreated: 1426100407 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/RenameObject.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using UnityEngine; 5 | using System.Collections; 6 | 7 | public class RenameObject : MonoBehaviour { 8 | 9 | // Use this for initialization 10 | void Start () { 11 | 12 | if(!LevelSerializer.IsDeserializing) 13 | name = UnityEngine.Random.Range(0,100000).ToString(); 14 | 15 | } 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/ScriptableObjects/example.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 11500000, guid: c986b5240af204e06923c9a485b9ea4f, type: 3} 12 | m_Name: example 13 | m_EditorClassIdentifier: 14 | value: .693751872 15 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/ArrayOfPrefabs.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class ArrayOfPrefabs : MonoBehaviour { 5 | [SerializeField] 6 | private GUIStyle style; 7 | [SerializeField] 8 | private Transform[] prefabs; 9 | [SerializeField] 10 | private TextAsset aTextAsset; 11 | 12 | void Start() { 13 | if (LevelSerializer.IsDeserializing) return; 14 | style.normal.textColor = Color.red; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/ScriptableObjects/example2.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 11500000, guid: c986b5240af204e06923c9a485b9ea4f, type: 3} 12 | m_Name: example2 13 | m_EditorClassIdentifier: 14 | value: .913911939 15 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Testing/Inherited.cs: -------------------------------------------------------------------------------- 1 | 2 | using UnityEngine; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using System; 6 | using System.Linq; 7 | 8 | public class SomeBaseClass : MonoBehaviour 9 | { 10 | [RPC] 11 | protected void PrintThis(string text) 12 | { 13 | Debug.Log(text); 14 | } 15 | } 16 | 17 | [AddComponentMenu("Storage/Tests/Inherited")] 18 | public class Inherited : SomeBaseClass 19 | { 20 | 21 | } 22 | 23 | 24 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/DeletedComponent.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | 14 | [AddComponentMenu("Storage/Tests/Deleted Component")] 15 | public class DeletedComponent : MonoBehaviour 16 | { 17 | 18 | } 19 | 20 | 21 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/PersistentStorage/SaveOnQuit.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnitySerializerNG.FilePreferences { 4 | public class SaveOnQuit : MonoBehaviour { 5 | public static int Instances { 6 | get; 7 | private set; 8 | } 9 | 10 | public SaveOnQuit() { 11 | Instances++; 12 | } 13 | 14 | private void OnApplicationQuit() { 15 | FilePrefs.Save(); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/RemoveEditors.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Linq; 4 | 5 | [ExecuteInEditMode] 6 | [AddComponentMenu("Storage/Internal/Cleanup Maintenance (Immediately removes itself)")] 7 | public class RemoveEditors : MonoBehaviour 8 | { 9 | 10 | // Use this for initialization 11 | void Awake() 12 | { 13 | LevelSerializer.SavedGames.Clear(); 14 | LevelSerializer.SaveDataToFilePrefs(); 15 | 16 | 17 | Component.DestroyImmediate(this); 18 | } 19 | 20 | } 21 | 22 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Physic Materials/Rubber.physicmaterial: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!134 &13400000 4 | PhysicMaterial: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: Rubber 9 | dynamicFriction: 1 10 | staticFriction: 1 11 | bounciness: 0 12 | frictionCombine: 3 13 | bounceCombine: 0 14 | frictionDirection2: {x: 0, y: 0, z: 0} 15 | dynamicFriction2: 0 16 | staticFriction2: 0 17 | --- !u!1002 &13400001 18 | EditorExtensionImpl: 19 | serializedVersion: 6 20 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/KeepAReference.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | 14 | [AddComponentMenu("Storage/Tests/KeepAReference")] 15 | public class KeepAReference : MonoBehaviour { 16 | public GameObject reference; 17 | public HelloWorld createTextureTest; 18 | } 19 | 20 | 21 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Physic Materials/Metal.physicmaterial: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!134 &13400000 4 | PhysicMaterial: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: Metal 9 | dynamicFriction: .25 10 | staticFriction: .25 11 | bounciness: 0 12 | frictionCombine: 0 13 | bounceCombine: 0 14 | frictionDirection2: {x: 0, y: 0, z: 0} 15 | dynamicFriction2: 0 16 | staticFriction2: 0 17 | --- !u!1002 &13400001 18 | EditorExtensionImpl: 19 | serializedVersion: 6 20 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Physic Materials/Ice.physicmaterial: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!134 &13400000 4 | PhysicMaterial: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: Ice 9 | dynamicFriction: .100000001 10 | staticFriction: .100000001 11 | bounciness: 0 12 | frictionCombine: 2 13 | bounceCombine: 2 14 | frictionDirection2: {x: 0, y: 0, z: 0} 15 | dynamicFriction2: 0 16 | staticFriction2: 0 17 | --- !u!1002 &13400001 18 | EditorExtensionImpl: 19 | serializedVersion: 6 20 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Physic Materials/Wood.physicmaterial: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!134 &13400000 4 | PhysicMaterial: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: Wood 9 | dynamicFriction: .449999988 10 | staticFriction: .449999988 11 | bounciness: 0 12 | frictionCombine: 0 13 | bounceCombine: 0 14 | frictionDirection2: {x: 0, y: 0, z: 0} 15 | dynamicFriction2: 0 16 | staticFriction2: 0 17 | --- !u!1002 &13400001 18 | EditorExtensionImpl: 19 | serializedVersion: 6 20 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Physic Materials/Bouncy.physicmaterial: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!134 &13400000 4 | PhysicMaterial: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: Bouncy 9 | dynamicFriction: .300000012 10 | staticFriction: .300000012 11 | bounciness: 1 12 | frictionCombine: 0 13 | bounceCombine: 3 14 | frictionDirection2: {x: 0, y: 0, z: 0} 15 | dynamicFriction2: 0 16 | staticFriction2: 0 17 | --- !u!1002 &13400001 18 | EditorExtensionImpl: 19 | serializedVersion: 6 20 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/TimeSpecialist.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System; 5 | using System.Linq; 6 | using Serialization; 7 | 8 | [SpecialistProvider] 9 | public class TimeAsFloat : ISpecialist 10 | { 11 | #region ISpecialist implementation 12 | public object Serialize (object value) 13 | { 14 | return (float)value - Time.time; 15 | } 16 | 17 | public object Deserialize (object value) 18 | { 19 | return Time.time + (float)value; 20 | } 21 | #endregion 22 | 23 | } 24 | 25 | 26 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/TestLoading.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using UnityEngine.SceneManagement; 9 | 10 | [AddComponentMenu("Storage/Tests/Test Loading")] 11 | public class TestLoading : MonoBehaviour 12 | { 13 | 14 | 15 | void Start () 16 | { 17 | DontDestroyOnLoad(this); 18 | Invoke("LoadLevel",0.3f); 19 | } 20 | 21 | void LoadLevel() 22 | { 23 | 24 | SceneManager.LoadScene("Example"); 25 | } 26 | } 27 | 28 | 29 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/IsDeserializing.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using UnityEngine; 5 | using System.Collections; 6 | 7 | public class IsDeserializing : MonoBehaviour { 8 | 9 | void Awake() 10 | { 11 | // Debug.Log(GetComponent().IsDeserializing.ToString()); 12 | } 13 | 14 | // Use this for initialization 15 | void Start () { 16 | // Debug.Log("Start " + GetComponent().IsDeserializing.ToString()); 17 | 18 | } 19 | 20 | // Update is called once per frame 21 | void Update () { 22 | 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/ChangeColor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class ChangeColor : MonoBehaviour { 5 | 6 | [SerializeThis] 7 | Color color; 8 | 9 | // Use this for initialization 10 | void Start () { 11 | color.r = Random.value; 12 | color.g = Random.value; 13 | color.b = Random.value; 14 | color.a = 1; 15 | 16 | } 17 | 18 | // Update is called once per frame 19 | void Update () { 20 | 21 | color.r += Random.value/100; 22 | color.g += Random.value/100; 23 | color.b += Random.value/100; 24 | GetComponent().material.color = color; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/DeleteComponent.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | 14 | [AddComponentMenu("Storage/Tests/Delete Component")] 15 | public class DeleteComponent : MonoBehaviour 16 | { 17 | void Start () 18 | { 19 | if(!LevelSerializer.IsDeserializing) 20 | { 21 | Destroy(GetComponent()); 22 | } 23 | } 24 | 25 | 26 | } 27 | 28 | 29 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Testing/SimpleCaller.cs: -------------------------------------------------------------------------------- 1 | 2 | using UnityEngine; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using System; 6 | using System.Linq; 7 | 8 | [AddComponentMenu("Storage/Tests/Simple Caller")] 9 | public class SimpleCaller : MonoBehaviour 10 | { 11 | public NetworkView otherView; 12 | 13 | void Start () 14 | { 15 | Network.InitializeServer(200,8081,true); 16 | } 17 | 18 | void Update () 19 | { 20 | 21 | } 22 | 23 | void OnGUI() 24 | { 25 | if(GUILayout.Button("Call Print")) 26 | { 27 | otherView.RPCEx("PrintThis", RPCMode.All, "Hello World"); 28 | } 29 | } 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/CentreAndPointMe.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class CentreAndPointMe : MonoBehaviour { 5 | 6 | public Transform ball1, ball2; 7 | 8 | // Use this for initialization 9 | void Start () { 10 | 11 | } 12 | 13 | // Update is called once per frame 14 | void Update () { 15 | 16 | Vector3 connectingLine = ball1.position - ball2.position; 17 | transform.position = ball2.position + (0.5f * connectingLine); 18 | Vector3 perpendicular = Vector3.up; 19 | transform.rotation = Quaternion.LookRotation(Quaternion.AngleAxis(90, perpendicular) * connectingLine, perpendicular); 20 | 21 | 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/AddSomeForce.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class AddSomeForce : MonoBehaviour { 4 | private bool done; 5 | 6 | [SerializeField] 7 | private Transform aChild; 8 | 9 | private void Awake() { 10 | aChild = GetComponentsInChildren()[Random.Range(0, transform.childCount)]; 11 | } 12 | 13 | private void FixedUpdate() { 14 | if (done) { 15 | return; 16 | } 17 | done = true; 18 | GetComponent().angularVelocity = Random.insideUnitSphere * 10.0f; 19 | aChild.GetComponent().angularVelocity = Random.insideUnitSphere * 10.0f; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/Room.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | 14 | [AddComponentMenu("Storage/Rooms/Room")] 15 | [DontStore] 16 | public class Room : MonoBehaviour 17 | { 18 | public static Room Current; 19 | 20 | void Awake() 21 | { 22 | Current = this; 23 | } 24 | 25 | public void Save() 26 | { 27 | RoomManager.SaveCurrentRoom(); 28 | } 29 | 30 | 31 | } 32 | 33 | 34 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/GetSet.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System; 3 | 4 | namespace Serialization 5 | { 6 | 7 | public abstract class GetSet 8 | { 9 | public int Priority = 100; 10 | public PropertyInfo Info; 11 | public string Name; 12 | public FieldInfo FieldInfo; 13 | public object Vanilla; 14 | public bool CollectionType; 15 | public Func Get; 16 | public Action Set; 17 | public bool IsStatic; 18 | 19 | public MemberInfo MemberInfo 20 | { 21 | get 22 | { 23 | return Info != null ? (MemberInfo)Info : (MemberInfo)FieldInfo; 24 | } 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/EmptyObjectIdentifier.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Linq; 3 | 4 | [DontStore] 5 | [AddComponentMenu("Storage/Empty Object Identifier")] 6 | [ExecuteInEditMode] 7 | public class EmptyObjectIdentifier : StoreInformation 8 | { 9 | protected override void Awake () 10 | { 11 | base.Awake (); 12 | if(!gameObject.GetComponent()) 13 | gameObject.AddComponent(); 14 | } 15 | 16 | public static void FlagAll(GameObject gameObject) 17 | { 18 | foreach(var c in gameObject.GetComponentsInChildren().Where(c=>!c.GetComponent())) 19 | c.gameObject.AddComponent(); 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/LoadAnimations.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Linq; 4 | 5 | [AddComponentMenu("System/Load Animations")] 6 | public class LoadAnimations : MonoBehaviour { 7 | 8 | public new string name; 9 | 10 | void Awake() 11 | { 12 | var clips = Resources.LoadAll("Animations/" + name, typeof(AnimationClip)).Cast(); 13 | foreach (var c in clips) 14 | { 15 | GetComponent().AddClip(c, c.name.Contains("@") ? c.name.Substring(c.name.LastIndexOf("@") + 1) : c.name); 16 | } 17 | 18 | foreach (var a in GetComponent().Cast()) 19 | { 20 | a.enabled = true; 21 | } 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/AdditionalDataStorage.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | 14 | [AddComponentMenu("Storage/Tests/Additional Data Storage")] 15 | public class AdditionalDataStorage : MonoBehaviour 16 | { 17 | public AdditionalData data; 18 | 19 | 20 | void Start() 21 | { 22 | if(LevelSerializer.IsDeserializing) 23 | return; 24 | if(data == null) 25 | data = AdditionalData.CreateInstance(); 26 | } 27 | } 28 | 29 | 30 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Pp]roject[Ss]ettings/ 6 | 7 | # Additional folders 8 | [Aa]ssets/Test/ 9 | .vs/ 10 | 11 | # Additional files 12 | [Aa]ssets/Test.meta 13 | [Aa]ssets/UnityVS.meta 14 | 15 | # Autogenerated VS/MD solution and project files 16 | /*.csproj 17 | /*.unityproj 18 | /*.sln 19 | /*.suo 20 | /*.user 21 | /*.userprefs 22 | /*.pidb 23 | /*.booproj 24 | 25 | #Builtin shaders 26 | [Aa]ssets/Editor/ 27 | [Aa]ssets/Editor.meta 28 | [Aa]ssets/DefaultResourcesExtra/ 29 | [Aa]ssets/DefaultResourcesExtra.meta 30 | [Aa]ssets/DefaultResources/ 31 | [Aa]ssets/DefaultResources.meta 32 | [Aa]ssets/CGIncludes/ 33 | [Aa]ssets/CGIncludes.meta 34 | 35 | 36 | #Unity3D Generated File On Crash Reports 37 | sysinfo.txt 38 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/RoomDataSaveGameStorage.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | 14 | [AddComponentMenu("Storage/Rooms/Room Data Save Game Storage")] 15 | public class RoomDataSaveGameStorage : DontStoreObjectInRoom 16 | { 17 | 18 | public Dictionary roomData 19 | { 20 | get 21 | { 22 | return RoomManager.rooms; 23 | } 24 | set 25 | { 26 | RoomManager.rooms = value; 27 | } 28 | } 29 | 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/StoreInformation.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | 6 | [DontStore] 7 | [ExecuteInEditMode] 8 | [AddComponentMenu("Storage/Store Information")] 9 | public class StoreInformation : UniqueIdentifier 10 | { 11 | public bool StoreAllComponents = true; 12 | [HideInInspector] 13 | public List Components = new List(); 14 | 15 | protected override void Awake() 16 | { 17 | base.Awake(); 18 | foreach(var c in GetComponents().Where(t=>t.GetType() == typeof(UniqueIdentifier) || 19 | (t.GetType() == typeof(StoreInformation) && t != this))) 20 | DestroyImmediate(c); 21 | } 22 | 23 | } 24 | 25 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/SaveAndLoad.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class SaveAndLoad : MonoBehaviour { 5 | [SerializeField] 6 | private int[] array; 7 | [SerializeField] 8 | private object arrayObject; 9 | [SerializeField] 10 | private byte[] data; 11 | [SerializeField] 12 | private GameObject theObject; 13 | 14 | // Update is called once per frame 15 | void Update() { 16 | if (Input.GetKeyDown(KeyCode.S)) { 17 | data = LevelSerializer.SerializeLevel(false, theObject.GetComponent().Id); 18 | } 19 | if (Input.GetKeyDown(KeyCode.L)) { 20 | LevelSerializer.LoadNow(data, false, false); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/Examples/PlayerLocator.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | 14 | [AddComponentMenu("Storage/Rooms/Examples/Player Locator")] 15 | public class PlayerLocator : MonoBehaviour 16 | { 17 | public static PlayerLocator Current; 18 | public static GameObject PlayerGameObject; 19 | 20 | void Awake() 21 | { 22 | DontDestroyOnLoad(gameObject); 23 | Current = this; 24 | PlayerGameObject = gameObject; 25 | } 26 | 27 | } 28 | 29 | 30 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/PrefabIdentifier.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Linq; 4 | 5 | [DontStore] 6 | [AddComponentMenu("Storage/Prefab Identifier")] 7 | [ExecuteInEditMode] 8 | public class PrefabIdentifier : StoreInformation 9 | { 10 | bool inScenePrefab; 11 | 12 | public bool IsInScene() 13 | { 14 | return inScenePrefab; 15 | } 16 | 17 | protected override void Awake () 18 | { 19 | inScenePrefab = true; 20 | base.Awake(); 21 | foreach (var c in GetComponents().Where(t=>t.GetType() == typeof(UniqueIdentifier) || 22 | (t.GetType() == typeof(PrefabIdentifier) && t != this) || 23 | t.GetType() == typeof(StoreInformation) 24 | )) 25 | DestroyImmediate (c); 26 | } 27 | } -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Storage.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Linq; 4 | using Serialization; 5 | 6 | 7 | 8 | public static class Storage 9 | { 10 | //Serialize an object to a compressed format in a BASE64 string 11 | public static string SerializeToString (this object obj) 12 | { 13 | return Convert.ToBase64String (UnitySerializer.Serialize(obj)); 14 | } 15 | 16 | //Typed deserialization 17 | public static T Deserialize (this string data) where T : class 18 | { 19 | return Deserialize (data) as T; 20 | } 21 | 22 | //Deserialize a compressed object from a string 23 | public static object Deserialize (string data) 24 | { 25 | return UnitySerializer.Deserialize(Convert.FromBase64String(data)); 26 | 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/CreateChildSphere.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class CreateChildSphere : MonoBehaviour { 5 | 6 | static CreateChildSphere() 7 | { 8 | DelegateSupport.RegisterFunctionType(); 9 | DelegateSupport.RegisterFunctionType(); 10 | DelegateSupport.RegisterFunctionType(); 11 | } 12 | 13 | public Transform prefab; 14 | 15 | // Use this for initialization 16 | void Start () { 17 | if(!LevelSerializer.IsDeserializing) 18 | { 19 | if(Random.value < 0.4) 20 | { 21 | var sphere = Instantiate(prefab, transform.position + Random.onUnitSphere * 3, Quaternion.identity) as Transform; 22 | sphere.parent = transform; 23 | 24 | } 25 | } 26 | } 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/InRangeItem.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | 14 | [AddComponentMenu("Storage/Advanced/In Range Item")] 15 | public class InRangeItem : MonoBehaviour 16 | { 17 | void Start () 18 | { 19 | if(OnlyInRangeManager.Instance != null) 20 | { 21 | OnlyInRangeManager.Instance.AddRangedItem(gameObject); 22 | } 23 | } 24 | 25 | void OnDestroy() 26 | { 27 | if(OnlyInRangeManager.Instance != null) 28 | { 29 | OnlyInRangeManager.Instance.DestroyRangedItem(gameObject); 30 | } 31 | 32 | } 33 | 34 | 35 | } 36 | 37 | 38 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/AdditionalData.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | #if UNITY_EDITOR 9 | using UnityEditor; 10 | #endif 11 | using System.Collections; 12 | using System.Collections.Generic; 13 | using System; 14 | using System.Linq; 15 | using Serialization; 16 | 17 | [AddComponentMenu("Storage/Tests/AdditionalData")] 18 | public class AdditionalData : ScriptableObject 19 | { 20 | public float value = UnityEngine.Random.value; 21 | 22 | #if UNITY_EDITOR 23 | 24 | public static void CreateAdditionalData() 25 | { 26 | var data = ScriptableObject.CreateInstance(); 27 | AssetDatabase.CreateAsset(data, "Assets/additionalData.asset"); 28 | } 29 | 30 | #endif 31 | 32 | } 33 | 34 | 35 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/RoomLoader.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | 14 | [AddComponentMenu("Storage/Internal/Room Loader (Internal use only, do not add this to your scene)")] 15 | public class RoomLoader : MonoBehaviour 16 | { 17 | void Awake () 18 | { 19 | DontDestroyOnLoad(gameObject); 20 | } 21 | 22 | 23 | void OnLevelWasLoaded(int level) 24 | { 25 | foreach(var go in GameObject.FindObjectsOfType(typeof(GameObject)).Cast()) 26 | { 27 | go.SendMessage("OnRoomWasLoaded", SendMessageOptions.DontRequireReceiver); 28 | } 29 | Destroy(gameObject); 30 | } 31 | 32 | } 33 | 34 | 35 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/PreserveObjectWhenLoading.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | 14 | [AddComponentMenu("Components/Storage/Preserve Object When Loading")] 15 | public class PreserveObjectWhenLoading : MonoBehaviour 16 | { 17 | void Awake() 18 | { 19 | LevelLoader.OnDestroyObject += HandleLevelLoaderOnDestroyObject; 20 | } 21 | 22 | void HandleLevelLoaderOnDestroyObject (GameObject toBeDestroyed, ref bool cancel) 23 | { 24 | 25 | cancel = true; 26 | } 27 | 28 | void OnDestroy() 29 | { 30 | LevelLoader.OnDestroyObject -= HandleLevelLoaderOnDestroyObject; 31 | } 32 | 33 | 34 | } 35 | 36 | 37 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/ScaleObject.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using UnityEngine; 5 | using System.Collections; 6 | 7 | public class ScaleObject : MonoBehaviour { 8 | 9 | // Use this for initialization 10 | void Start () { 11 | if(!GetComponent().IsDeserializing) 12 | { 13 | this.StartExtendedCoroutine(ScaleMe()); 14 | } 15 | } 16 | 17 | IEnumerator ScaleMe() 18 | { 19 | var scale = transform.localScale; 20 | var newScale = scale * 5; 21 | while(true) 22 | { 23 | var t = 0f; 24 | while(t < 1) 25 | { 26 | 27 | transform.localScale = Vector3.Lerp(scale, newScale, t); 28 | t += Time.deltaTime/3; 29 | yield return null; 30 | } 31 | t = 0; 32 | while(t < 1) 33 | { 34 | 35 | transform.localScale = Vector3.Lerp(newScale, scale, t); 36 | t += Time.deltaTime/3; 37 | yield return null; 38 | } 39 | 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/EditSaveGameManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Linq; 4 | 5 | using UnityEditor; 6 | 7 | 8 | [ExecuteInEditMode] 9 | [CustomEditor(typeof(SaveGameManager))] 10 | public class EditSaveGameManager : Editor 11 | { 12 | bool foldout; 13 | public override void OnInspectorGUI() 14 | { 15 | var t = target as SaveGameManager; 16 | DrawDefaultInspector(); 17 | if(t.Reference != null) 18 | { 19 | foldout = EditorGUILayout.Foldout(foldout,"Tracked Objects: " + t.Reference.Count); 20 | if(foldout) 21 | { 22 | foreach(var g in t.Reference.AllReferences.OrderBy(go=>go.name)) 23 | { 24 | using(new Horizontal()) 25 | { 26 | GUILayout.Space(25); 27 | if(GUILayout.Button(g.name, GUILayout.Width(120))) 28 | { 29 | EditorGUIUtility.PingObject(g); 30 | } 31 | GUILayout.Label(g.GetComponent().Id + " > " + g.GetInstanceID()); 32 | } 33 | } 34 | } 35 | } 36 | 37 | } 38 | } -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/TestCoroutines.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System; 5 | using System.Linq; 6 | using Serialization; 7 | 8 | [AddComponentMenu("Storage/Tests/Coroutines")] 9 | public class TestCoroutines : MonoBehaviour 10 | { 11 | 12 | void Start() 13 | { 14 | if(!LevelSerializer.IsDeserializing) 15 | { 16 | gameObject.StartExtendedCoroutine(MyCoroutine()); 17 | } 18 | StartCoroutine("Hello"); 19 | } 20 | 21 | IEnumerator Hello() 22 | { 23 | var a = 1000; 24 | while(true) 25 | { 26 | a+=1; 27 | yield return StartCoroutine(WaitSeconds(10)); 28 | 29 | } 30 | } 31 | 32 | IEnumerator MyCoroutine() 33 | { 34 | var a = 0; 35 | while(true) 36 | { 37 | a+=1; 38 | yield return WaitSeconds(1); 39 | } 40 | 41 | } 42 | 43 | IEnumerator WaitSeconds(float time) 44 | { 45 | var t= 0f; 46 | while(t < time) 47 | { 48 | yield return null; 49 | t+= Time.deltaTime; 50 | } 51 | } 52 | 53 | } 54 | 55 | 56 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/Movement.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class Movement : MonoBehaviour { 4 | private CharacterController controller; 5 | 6 | private Vector3 moveDirection = Vector3.zero; 7 | private Vector3 forward = Vector3.zero; 8 | private Vector3 right = Vector3.zero; 9 | 10 | private void Start() { 11 | controller = GetComponent(); 12 | } 13 | 14 | private void Update() { 15 | forward = GetComponent().forward; 16 | right = new Vector3(forward.z, 0.0f, -forward.x); 17 | 18 | float horizontalInput = Input.GetAxisRaw("Horizontal"); 19 | float verticalInput = Input.GetAxisRaw("Vertical"); 20 | Vector3 targetDirection = horizontalInput * right + verticalInput * forward; 21 | 22 | moveDirection = Vector3.RotateTowards(moveDirection, targetDirection, 200.0f * Mathf.Deg2Rad * Time.deltaTime, 1000.0f); 23 | 24 | Vector3 movement = moveDirection * Time.deltaTime * 10.0f; 25 | controller.Move(movement); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/RPCEnabler.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | 3 | // (c) whydoidoit.com 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | 14 | //Class that enables calling a routine in a type safe manner and having 15 | //it decide how to pass the call across the network 16 | public static class RPCEnabler 17 | { 18 | 19 | 20 | public static bool Others(this NetworkView networkView, string routineName, params object[] parameters) 21 | { 22 | 23 | if (!networkView.isMine) 24 | { 25 | 26 | networkView.RPC(routineName, RPCMode.Others, parameters); 27 | } 28 | return !networkView.isMine; 29 | 30 | } 31 | 32 | public static bool Server(this NetworkView networkView, string routineName, params object[] parameters) 33 | { 34 | networkView.RPC(routineName, RPCMode.Server, parameters); 35 | return Network.isServer; 36 | } 37 | 38 | 39 | } 40 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 TheSniperFan 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/XmlSupport.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Xml.Serialization; 4 | using System.IO; 5 | using System.Text; 6 | using System; 7 | using Serialization; 8 | 9 | public static class XmlSupport 10 | { 11 | public static T DeserializeXml (this string xml) where T : class 12 | { 13 | var s = new XmlSerializer (typeof(T)); 14 | using (var m = new MemoryStream (UnitySerializer.TextEncoding.GetBytes (xml))) 15 | { 16 | return (T)s.Deserialize (m); 17 | } 18 | 19 | 20 | } 21 | 22 | public static object DeserializeXml(this string xml, Type tp) 23 | { 24 | var s = new XmlSerializer (tp); 25 | using (var m = new MemoryStream (UnitySerializer.TextEncoding.GetBytes (xml))) 26 | { 27 | return s.Deserialize (m); 28 | } 29 | } 30 | 31 | 32 | public static string SerializeXml (this object item) 33 | { 34 | var s = new XmlSerializer (item.GetType ()); 35 | using (var m = new MemoryStream()) 36 | { 37 | s.Serialize (m, item); 38 | m.Flush (); 39 | return UnitySerializer.TextEncoding.GetString (m.GetBuffer ()); 40 | } 41 | 42 | 43 | } 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/VariablesToSave.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class VariablesToSave : MonoBehaviour { 5 | 6 | public const int SomeValue = 1; 7 | 8 | public struct SomeStruct 9 | { 10 | public int value; 11 | } 12 | 13 | public SomeStruct myStruct; 14 | 15 | static VariablesToSave() 16 | { 17 | DelegateSupport.RegisterFunctionType(); 18 | DelegateSupport.RegisterFunctionType(); 19 | DelegateSupport.RegisterFunctionType(); 20 | } 21 | 22 | 23 | private static int _randomNumber = UnityEngine.Random.Range(10,200); 24 | 25 | public static int RandomNumber 26 | { 27 | get 28 | { 29 | return _randomNumber; 30 | } 31 | set 32 | { 33 | _randomNumber = value; 34 | } 35 | } 36 | public string oneVariable; 37 | public int anotherVariable; 38 | 39 | public static bool hasInitialized; 40 | 41 | void Awake() 42 | { 43 | if(!hasInitialized) 44 | { 45 | hasInitialized = true; 46 | useMe = true; 47 | myStruct.value = UnityEngine.Random.Range(0,100000); 48 | } 49 | } 50 | 51 | public bool useMe; 52 | 53 | void Update() 54 | { 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/DontStoreObjectInRoom.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | 14 | [AddComponentMenu("Storage/Rooms/Dont Store Object In Room")] 15 | public class DontStoreObjectInRoom : MonoBehaviour, IControlSerializationEx 16 | { 17 | public bool preserveThisObjectWhenLoading = true; 18 | 19 | void Awake() 20 | { 21 | LevelLoader.OnDestroyObject += HandleLevelLoaderOnDestroyObject; 22 | } 23 | 24 | void HandleLevelLoaderOnDestroyObject (GameObject toBeDestroyed, ref bool cancel) 25 | { 26 | if(toBeDestroyed == gameObject) 27 | cancel = preserveThisObjectWhenLoading; 28 | } 29 | 30 | void OnDestroy() 31 | { 32 | LevelLoader.OnDestroyObject -= HandleLevelLoaderOnDestroyObject; 33 | } 34 | 35 | public bool ShouldSaveWholeObject () 36 | { 37 | return !RoomManager.savingRoom; 38 | } 39 | 40 | public bool ShouldSave () 41 | { 42 | return !RoomManager.savingRoom; 43 | } 44 | 45 | } 46 | 47 | 48 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Materials/box.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 56a9be12322c5a14fb8bd62e2cea6010 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 64 29 | textureSettings: 30 | filterMode: -1 31 | aniso: 1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 2 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Materials/paused.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 645cb0d95e83d1d4fb7e6c3a66e1efc4 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: -1 31 | aniso: 1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 2 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Id.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 36dbfeb22b0f7a7438fccbeb09606ea9 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Manager.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b7f6ec5ea8823004b8e2e636fb9e14b6 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Prefab.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 24bfbd68a9c9a9c4fafb074017168874 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Room.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 181a1bdd43a944a4a9547f15de2bb4f7 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Store.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b01850ab8248c5d4cb88fff6d76452f5 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/Materials.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d401883d3be18f54b825374490a6a6c8 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/Assets/RoomExclude.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8af7e1a3d5b69584c84e3d17b6b07dac 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/EditStoreInformation.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Linq; 4 | using System; 5 | 6 | #if UNITY_EDITOR 7 | 8 | using UnityEditor; 9 | 10 | [CustomEditor(typeof(StoreInformation))] 11 | public class EditStoreInformation : Editor 12 | { 13 | public override void OnInspectorGUI() 14 | { 15 | DrawDefaultInspector(); 16 | var t = target as StoreInformation; 17 | 18 | if (!t.StoreAllComponents) 19 | { 20 | GUILayout.Label(" Store which components"); 21 | var cs = t.GetComponents().Where(c => !c.GetType().IsDefined(typeof(DontStoreAttribute), false) && (c.hideFlags & HideFlags.HideInInspector) == 0); 22 | foreach (var c in cs) 23 | { 24 | var typeName = c.GetType().FullName; 25 | GUILayout.BeginHorizontal(); 26 | GUILayout.Label(" > "); 27 | if (GUILayout.Toggle(t.Components.Contains(typeName), ObjectNames.NicifyVariableName(typeName))) 28 | { 29 | if(!t.Components.Contains(typeName)) 30 | t.Components.Add(typeName); 31 | EditorUtility.SetDirty(target); 32 | 33 | } 34 | else 35 | { 36 | t.Components.Remove(typeName); 37 | EditorUtility.SetDirty(target); 38 | } 39 | GUILayout.FlexibleSpace(); 40 | GUILayout.EndHorizontal(); 41 | } 42 | } 43 | 44 | } 45 | } 46 | 47 | #endif 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/ColorMe.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using UnityEngine; 5 | using System.Collections; 6 | 7 | public class ColorMe : MonoBehaviourEx { 8 | // Use this for initialization 9 | private void Start() { 10 | if (!GetComponent().IsDeserializing) { 11 | StartCoroutine("DoColorMe"); 12 | } 13 | } 14 | 15 | private IEnumerator DoColorMe() { 16 | Renderer renderer = GetComponent(); 17 | Light light = GetComponent(); 18 | 19 | Color color = renderer.material.color; 20 | Color target = Color.blue; 21 | while (true) { 22 | var t = 0.0f; 23 | while (t < 1.0f) { 24 | 25 | renderer.material.color = Color.Lerp(color, target, t); 26 | if (light) 27 | light.color = renderer.material.color; 28 | t += Time.deltaTime / 3.0f; 29 | yield return null; 30 | } 31 | t = 0.0f; 32 | while (t < 1.0f) { 33 | renderer.material.color = Color.Lerp(target, color, t); 34 | if (light) 35 | light.color = renderer.material.color; 36 | t += Time.deltaTime / 3.0f; 37 | yield return null; 38 | } 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/Examples/PlayerSpawnPoint.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | 14 | [AddComponentMenu("Storage/Rooms/Examples/Player Spawn Point")] 15 | [RequireComponent(typeof(SphereCollider))] 16 | [RequireComponent(typeof(StoreInformation))] 17 | public class PlayerSpawnPoint : MonoBehaviour 18 | { 19 | public static PlayerSpawnPoint currentSpawnPoint; 20 | 21 | public bool current 22 | { 23 | get 24 | { 25 | return currentSpawnPoint == this; 26 | } 27 | set 28 | { 29 | if(value) 30 | currentSpawnPoint = this; 31 | else if(currentSpawnPoint == this) 32 | currentSpawnPoint = null; 33 | } 34 | } 35 | 36 | void Awake() 37 | { 38 | GetComponent().isTrigger = true; 39 | } 40 | 41 | void OnTriggerEnter(Collider other) 42 | { 43 | if(other.gameObject == PlayerLocator.PlayerGameObject) 44 | { 45 | current = true; 46 | } 47 | } 48 | 49 | 50 | void OnRoomWasLoaded() 51 | { 52 | if(current) 53 | { 54 | PlayerLocator.Current.transform.position = transform.position; 55 | PlayerLocator.Current.transform.rotation = transform.rotation; 56 | } 57 | } 58 | 59 | } 60 | 61 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/license.txt: -------------------------------------------------------------------------------- 1 | 2 | **************************************************************************** 3 | Unity Serializer 4 | Licensing Terms: MIT LICENSE 5 | 6 | http://www.whydoidoit.com 7 | Copyright (C) 2013 Mike Talbot 8 | 9 | Permission is hereby granted, free of charge, to any 10 | person obtaining a copy of this software and associated 11 | documentation files (the "Software"), to deal in the Software 12 | without restriction, including without limitation the rights 13 | to use, copy, modify, merge, publish, distribute, sublicense, 14 | and/or sell copies of the Software, and to permit persons to 15 | whom the Software is furnished to do so, subject to the 16 | following conditions: 17 | 18 | The above copyright notice and this permission notice shall 19 | be included in all copies or substantial portions of the 20 | Software. 21 | 22 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF 23 | ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 24 | TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 25 | PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 26 | THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 27 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 28 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 29 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 30 | SOFTWARE. 31 | 32 | 33 | **************************************************************************** 34 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/MonoBehaviourEx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using UnityEngine; 5 | using System.Collections; 6 | using System.Reflection; 7 | 8 | /// 9 | /// A base class that enables using extended Radical Coroutines 10 | /// which allow serialization and resumption of the routines later 11 | /// using the standard function prototypes 12 | /// 13 | public class MonoBehaviourEx : MonoBehaviour { 14 | 15 | /// 16 | /// Starts the coroutine in a resumable way 17 | /// 18 | /// 19 | /// The RadicalRoutine that enables cancellation etc 20 | /// 21 | /// 22 | /// The coroutine to start 23 | /// 24 | public new RadicalRoutine StartCoroutine(IEnumerator func) 25 | { 26 | return this.StartExtendedCoroutine(func); 27 | } 28 | 29 | /// 30 | /// Starts the coroutine in a resumable way 31 | /// 32 | /// 33 | /// The RadicalRoutine that enables cancellation etc 34 | /// 35 | /// 36 | /// The coroutine to start 37 | /// 38 | public new RadicalRoutine StartCoroutine(string func) 39 | { 40 | var m = this.GetType().GetMethod(func, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance); 41 | if(m.ReturnType == typeof(IEnumerator)) 42 | { 43 | return this.StartCoroutine((IEnumerator)m.Invoke(this, null)); 44 | } 45 | return null; 46 | 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Rooms/RoomManager.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using UnityEngine.SceneManagement; 9 | using System.Collections.Generic; 10 | 11 | public class RoomManager 12 | { 13 | public static bool savingRoom; 14 | public static bool loadingRoom; 15 | 16 | public static Dictionary rooms = new Dictionary(); 17 | 18 | public static void SaveCurrentRoom() 19 | { 20 | savingRoom = true; 21 | rooms[SceneManager.GetActiveScene().name] = LevelSerializer.SerializeLevel(); 22 | savingRoom = false; 23 | } 24 | 25 | public static void LoadRoom(string name) 26 | { 27 | LoadRoom(name, true); 28 | } 29 | 30 | public static void LoadRoom(string name, bool showGUI) 31 | { 32 | if(Room.Current) 33 | Room.Current.Save(); 34 | if(rooms.ContainsKey(name)) 35 | { 36 | loadingRoom = true; 37 | var loader = LevelSerializer.LoadSavedLevel(rooms[name]); 38 | loader.showGUI = showGUI; 39 | loader.whenCompleted = (obj, list)=>{ 40 | foreach(var gameObject in list) 41 | { 42 | gameObject.SendMessage("OnRoomWasLoaded", SendMessageOptions.DontRequireReceiver); 43 | } 44 | }; 45 | } 46 | else 47 | { 48 | var go = new GameObject("RoomLoader"); 49 | go.AddComponent(); 50 | SceneManager.LoadScene(name, LoadSceneMode.Single); 51 | } 52 | } 53 | 54 | 55 | } 56 | 57 | 58 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Broadcaster.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Linq; 4 | using System; 5 | using System.Reflection; 6 | using System.Collections.Generic; 7 | 8 | public static class Broadcaster { 9 | 10 | public class Pair 11 | { 12 | public WeakReference target; 13 | public WeakReference interest; 14 | } 15 | 16 | private static List InterestList = new List(); 17 | 18 | public static void RegisterInterest(this object target, object interestedParty) 19 | { 20 | Cleanup(); 21 | InterestList.Add( new Pair() { target = new WeakReference(target), interest = new WeakReference(interestedParty)}); 22 | } 23 | 24 | public static void UnregisterInterest(this object target, object interestedParty) 25 | { 26 | Cleanup(); 27 | InterestList.Remove( InterestList.FirstOrDefault(p=>p.target.Target == target && p.interest.Target == interestedParty ) ); 28 | } 29 | 30 | public static void Broadcast(this object obj, string message) 31 | { 32 | Cleanup(); 33 | 34 | foreach(var m in InterestList.Where(p=>p.target.Target == obj).Select(p=>p.interest).Where(r=>r.IsAlive).ToList()) 35 | { 36 | var mth = m.Target.GetType().GetMethod(message, BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic); 37 | if(mth.GetParameters().Length == 1) 38 | { 39 | mth.Invoke(m.Target, new [] {obj}); 40 | } 41 | else 42 | { 43 | mth.Invoke(m.Target, null); 44 | } 45 | } 46 | } 47 | 48 | static void Cleanup() 49 | { 50 | var list = InterestList.Where(k=>! k.target.IsAlive || !k.interest.IsAlive).ToList(); 51 | foreach(var e in list) 52 | InterestList.Remove(e); 53 | } 54 | 55 | } 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Utility/Types.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | using System.Reflection; 5 | 6 | public class Types 7 | { 8 | 9 | private static Dictionary> _types = new Dictionary>(); 10 | private static Dictionary _requiredAssemblies = new Dictionary(); 11 | 12 | public static List GetTypes (Type attribute) 13 | { 14 | if (!_types.ContainsKey (attribute)) { 15 | _types [attribute] = AppDomain.CurrentDomain.GetAssemblies () 16 | //.Where (asm => asm.IsDefined (typeof(RadicalAttribute), false) || _requiredAssemblies.ContainsKey(asm)) 17 | .SelectMany (asm => asm.GetTypes ()) 18 | .Where (tp => tp.IsDefined (attribute, false)).ToList (); 19 | } 20 | 21 | return _types [attribute]; 22 | } 23 | 24 | public static void RequireAssembly (Assembly asm) 25 | { 26 | _requiredAssemblies [asm] = true; 27 | Refresh(); 28 | } 29 | 30 | public static void Refresh() { 31 | _types = new Dictionary>(); 32 | } 33 | 34 | } 35 | 36 | public static class TypeHelper 37 | { 38 | public static T Attribute(this Type tp) where T : Attribute 39 | { 40 | return System.Attribute.GetCustomAttribute(tp, typeof(T)) as T; 41 | } 42 | public static T Attribute(this object o) where T : Attribute, new() 43 | { 44 | if(o is MemberInfo) 45 | { 46 | return (T)(o as MemberInfo).GetCustomAttributes(typeof(T), false).FirstOrDefault() ?? new T(); 47 | } 48 | if(o is ParameterInfo) 49 | { 50 | return (T)(o as ParameterInfo).GetCustomAttributes(typeof(T), false).FirstOrDefault() ?? new T(); 51 | } 52 | 53 | return o.GetType().Attribute() ?? new T();; 54 | } 55 | 56 | 57 | 58 | 59 | } 60 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/StoreMesh.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class StoreMesh : MonoBehaviour { 5 | 6 | [HideInInspector] 7 | public Vector3[] vertices; 8 | [HideInInspector] 9 | public Vector3[] normals; 10 | [HideInInspector] 11 | public Vector2[] uv; 12 | [HideInInspector] 13 | public Vector2[] uv1; 14 | [HideInInspector] 15 | public Vector2[] uv2; 16 | [HideInInspector] 17 | public Color[] colors; 18 | [HideInInspector] 19 | public int[][] triangles; 20 | [HideInInspector] 21 | public Vector4[] tangents; 22 | [HideInInspector] 23 | public int subMeshCount; 24 | 25 | MeshFilter filter; 26 | SkinnedMeshRenderer skinnedMeshRenderer; 27 | 28 | void Awake() 29 | { 30 | filter = GetComponent(); 31 | skinnedMeshRenderer = GetComponent(); 32 | if(filter==null && skinnedMeshRenderer == null) 33 | Destroy(this); 34 | } 35 | 36 | void OnSerializing() 37 | { 38 | var mesh = filter != null ? filter.mesh : skinnedMeshRenderer.sharedMesh; 39 | vertices = mesh.vertices; 40 | normals = mesh.normals; 41 | uv = mesh.uv; 42 | uv1 = mesh.uv2; 43 | uv2 = mesh.uv2; 44 | colors = mesh.colors; 45 | triangles = new int[subMeshCount = mesh.subMeshCount][]; 46 | for(var i = 0; i < mesh.subMeshCount; i++) 47 | { 48 | triangles[i] = mesh.GetTriangles(i); 49 | } 50 | tangents = mesh.tangents; 51 | } 52 | 53 | void OnDeserialized() 54 | { 55 | var mesh = new Mesh(); 56 | mesh.vertices = vertices; 57 | mesh.normals = normals; 58 | mesh.uv = uv; 59 | mesh.uv2 = uv1; 60 | mesh.uv2 = uv2; 61 | mesh.colors = colors; 62 | mesh.tangents = tangents; 63 | mesh.subMeshCount = subMeshCount; 64 | for(var i = 0; i < subMeshCount; i++) 65 | { 66 | mesh.SetTriangles(triangles[i], i); 67 | } 68 | mesh.RecalculateBounds(); 69 | if(filter != null) 70 | filter.mesh = mesh; 71 | else 72 | skinnedMeshRenderer.sharedMesh = mesh; 73 | } 74 | 75 | 76 | } 77 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/PersistentStorage/FilePrefs.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.IO; 4 | using System.Collections; 5 | using System.Collections.Generic; 6 | 7 | using UnitySerializerNG.FilePreferences; 8 | 9 | public static class FilePrefs { 10 | private static GameObject QuitObject; 11 | 12 | private static DataContainer stringData = new DataContainer("str"); 13 | 14 | private static DataContainer floatData = new DataContainer("fpn"); 15 | 16 | private static DataContainer intData = new DataContainer("int"); 17 | 18 | public static void DeleteAll() { 19 | stringData.Clear(); 20 | floatData.Clear(); 21 | intData.Clear(); 22 | } 23 | 24 | public static void DeleteKey(string key) { 25 | stringData.Remove(key); 26 | floatData.Remove(key); 27 | intData.Remove(key); 28 | } 29 | 30 | public static float GetFloat(string key) { 31 | return floatData.Get(key); 32 | } 33 | 34 | public static int GetInt(string key) { 35 | return intData.Get(key); 36 | } 37 | 38 | public static string GetString(string key) { 39 | return stringData.Get(key); 40 | } 41 | 42 | public static bool HasKey(string key) { 43 | return stringData.Find(key) || floatData.Find(key) || intData.Find(key); 44 | } 45 | 46 | public static void Save() { 47 | stringData.Save(); 48 | floatData.Save(); 49 | intData.Save(); 50 | } 51 | 52 | public static void SetFloat(string key, float value) { 53 | floatData.Set(key, value); 54 | } 55 | 56 | public static void SetInt(string key, int value) { 57 | intData.Set(key, value); 58 | } 59 | 60 | public static void SetString(string key, string value) { 61 | stringData.Set(key, value); 62 | } 63 | 64 | // Only for debugging purposes! 65 | //public static int Count() { 66 | // return stringData.Count() + floatData.Count() + intData.Count(); 67 | //} 68 | 69 | //public static void PrintAll() { 70 | // stringData.PrintAll(); 71 | // floatData.PrintAll(); 72 | // intData.PrintAll(); 73 | //} 74 | } 75 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/EditPrefabIdentifier.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System; 4 | using System.Linq; 5 | 6 | #if UNITY_EDITOR 7 | using UnityEditor; 8 | 9 | [ExecuteInEditMode] 10 | [CustomEditor(typeof(PrefabIdentifier))] 11 | public class EditPrefabIdentifier : Editor 12 | { 13 | public override void OnInspectorGUI() 14 | { 15 | EditorGUILayout.BeginHorizontal(); 16 | EditorGUILayout.PrefixLabel("Current Prefab Identifier"); 17 | EditorGUILayout.LabelField((target as UniqueIdentifier).ClassId); 18 | 19 | if (GUILayout.Button("Create new prefab identifier")) 20 | { 21 | if (EditorUtility.DisplayDialog("Create new prefab identifier", 22 | "If you change the prefab identifier and then update the prefab or store it over an existing prefab then saved information will no longer work correctly. You will normally click this button when you intend to create a new prefab out of an existing prefab. Use with caution, ESPECIALLY AFTER YOU HAVE RELEASED YOUR GAME.", 23 | "I understand, go ahead and changed it", "Cancel")) 24 | { 25 | (target as UniqueIdentifier).ClassId = Guid.NewGuid().ToString(); 26 | EditorUtility.SetDirty(target); 27 | } 28 | } 29 | 30 | EditorGUILayout.EndHorizontal(); 31 | 32 | 33 | DrawDefaultInspector(); 34 | 35 | var t = target as StoreInformation; 36 | 37 | if (!t.StoreAllComponents) 38 | { 39 | GUILayout.Label(" Store which components"); 40 | var cs = t.GetComponents().Where(c => !c.GetType().IsDefined(typeof(DontStoreAttribute), false) && (c.hideFlags & HideFlags.HideInInspector) == 0); 41 | foreach (var c in cs) 42 | { 43 | var typeName = c.GetType().FullName; 44 | GUILayout.BeginHorizontal(); 45 | GUILayout.Label(" > "); 46 | if (GUILayout.Toggle(t.Components.Contains(typeName), ObjectNames.NicifyVariableName(typeName))) 47 | { 48 | if(!t.Components.Contains(typeName)) 49 | t.Components.Add(typeName); 50 | EditorUtility.SetDirty(target); 51 | 52 | } 53 | else 54 | { 55 | t.Components.Remove(typeName); 56 | EditorUtility.SetDirty(target); 57 | } 58 | GUILayout.FlexibleSpace(); 59 | GUILayout.EndHorizontal(); 60 | } 61 | } 62 | } 63 | 64 | } 65 | 66 | #endif 67 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/InheritableRPC.cs: -------------------------------------------------------------------------------- 1 | 2 | using UnityEngine; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using System; 6 | using System.Linq; 7 | using System.Runtime.Serialization.Formatters.Binary; 8 | using System.IO; 9 | using System.Reflection; 10 | 11 | [AddComponentMenu("System/Inheritable RPC Handler")] 12 | public class InheritableRPC : MonoBehaviour 13 | { 14 | public class CachedRoutine 15 | { 16 | public MethodInfo routine; 17 | public MonoBehaviour behaviour; 18 | } 19 | 20 | private Dictionary> cache = new Dictionary>(); 21 | 22 | [RPC] 23 | void PerformRPCCall(string routineName, string parameters) 24 | { 25 | var b = new BinaryFormatter(); 26 | using(var s = new MemoryStream(Convert.FromBase64String(parameters))) 27 | { 28 | var p = (object[])b.Deserialize(s); 29 | 30 | if(!cache.ContainsKey(routineName)) 31 | { 32 | cache[routineName] = GetComponents() 33 | .Select(m=> new CachedRoutine { routine = m.GetType().GetMethod(routineName, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance), behaviour = m }) 34 | .Where(r=>r.routine != null && r.routine.IsDefined(typeof(RPC), true)) 35 | .ToList(); 36 | } 37 | foreach(var m in cache[routineName]) 38 | { 39 | m.routine.Invoke(m.behaviour, p); 40 | } 41 | } 42 | } 43 | } 44 | 45 | 46 | public static class InheritableRPCExtensions 47 | { 48 | public class StoredPlayer 49 | { 50 | public string ipAddress, guid; 51 | public int port; 52 | } 53 | 54 | public static void RPCEx(this NetworkView view, string routineName, RPCMode mode, params object[] parameters) 55 | { 56 | using(var m = new MemoryStream()) 57 | { 58 | var b = new BinaryFormatter(); 59 | b.Serialize(m, parameters); 60 | m.Flush(); 61 | var s = Convert.ToBase64String(m.GetBuffer()); 62 | view.RPC("PerformRPCCall", mode, routineName, s); 63 | } 64 | } 65 | 66 | public static void RPCEx(this NetworkView view, string routineName, NetworkPlayer player, params object[] parameters) 67 | { 68 | using(var m = new MemoryStream()) 69 | { 70 | var b = new BinaryFormatter(); 71 | b.Serialize(m, parameters); 72 | m.Flush(); 73 | var s = Convert.ToBase64String(m.GetBuffer()); 74 | view.RPC("PerformRPCCall", player, routineName, s); 75 | } 76 | } 77 | } 78 | 79 | 80 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/ResultLogger.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Text; 4 | 5 | 6 | public class ResultLogger : Object 7 | { 8 | // helper to log Arraylists and Hashtables 9 | public static void logObject( object result ) 10 | { 11 | if( result.GetType() == typeof( ArrayList ) ) 12 | ResultLogger.logArraylist( (ArrayList)result ); 13 | else if( result.GetType() == typeof( Hashtable ) ) 14 | ResultLogger.logHashtable( (Hashtable)result ); 15 | else 16 | Debug.Log( "result is not a hashtable or arraylist" ); 17 | } 18 | 19 | 20 | public static void logArraylist( ArrayList result ) 21 | { 22 | StringBuilder builder = new StringBuilder(); 23 | 24 | // we start off with an ArrayList of Hashtables 25 | foreach( Hashtable item in result ) 26 | { 27 | ResultLogger.addHashtableToString( builder, item ); 28 | builder.Append( "\n--------------------\n" ); 29 | } 30 | 31 | Debug.Log( builder.ToString() ); 32 | } 33 | 34 | 35 | public static void logHashtable( Hashtable result ) 36 | { 37 | StringBuilder builder = new StringBuilder(); 38 | addHashtableToString( builder, result ); 39 | 40 | Debug.Log( builder.ToString() ); 41 | } 42 | 43 | 44 | // simple helper to add a hashtable to a StringBuilder to make reading the output easier 45 | public static void addHashtableToString( StringBuilder builder, Hashtable item ) 46 | { 47 | foreach( DictionaryEntry entry in item ) 48 | { 49 | if( entry.Value is Hashtable ) 50 | { 51 | builder.AppendFormat( "{0}: ", entry.Key ); 52 | addHashtableToString( builder, (Hashtable)entry.Value ); 53 | } 54 | else if( entry.Value is ArrayList ) 55 | { 56 | builder.AppendFormat( "{0}: ", entry.Key ); 57 | addArraylistToString( builder, (ArrayList)entry.Value ); 58 | } 59 | else 60 | { 61 | builder.AppendFormat( "{0}: {1}\n", entry.Key, entry.Value ); 62 | } 63 | } 64 | } 65 | 66 | 67 | public static void addArraylistToString( StringBuilder builder, ArrayList result ) 68 | { 69 | // we start off with an ArrayList of Hashtables 70 | foreach( object item in result ) 71 | { 72 | if( item is Hashtable ) 73 | ResultLogger.addHashtableToString( builder, (Hashtable)item ); 74 | else if( item is ArrayList ) 75 | ResultLogger.addArraylistToString( builder, (ArrayList)item ); 76 | builder.Append( "\n--------------------\n" ); 77 | } 78 | 79 | Debug.Log( builder.ToString() ); 80 | } 81 | 82 | } 83 | -------------------------------------------------------------------------------- /QUICKSTART.md: -------------------------------------------------------------------------------- 1 | ## Using unityserializer-ng 2 | 3 | ### Installation 4 | Install US-NG by importing it as a package, or by dragging the folder into the project window. Unity should import all of the assets. 5 | 6 | ### Basic Usage 7 | US-NG has a configuration window under `Window/Unity Serialiser/Wizard`. Dock that or leave it floating. Once you've done that, it'll ask you to create a 'Save Game Manager'. Do so by clicking on the create button. 8 | Once done, select a GameObject from your Hierarchy. To store variables and other data (such as position), click on 'Store Information'. You can also save the material or mesh by clicking on the respective buttons afterwards. 9 | You can now implement an example script or write your own. 10 | 11 | ### Quick Start 12 | Go to the UnitySerializerExamples folder, and go to Scripts. Add the 'PauseMenu' script to a GameObject (use your camera for now). Enter play mode. When you press P, it'll show a save/load menu. This will allow you to save or load a game. 13 | As long as you have followed the instructions above, you can adjust anything (position, rotation, scale) on the cube or give it any variable, and save the game. 14 | Once you have done that, restart play mode. You should notice that your cube has returned to normal, as usual. Press P again, and click on the new menu option. You should notice that it has restored your parameters from before. 15 | If it does not, please make sure you have **followed all the instructions up to here**. This tutorial was followed as it was being written and the author had no issue with the steps. 16 | 17 | ### Writing your own save/load script 18 | If you need more functionality than the example scripts provide, this is a basic list of commands you can execute to intergrate unityserializer-ng functionality into your own scripts. 19 | 20 | `LevelSerializer.SaveGame(Name of save file);` - Save your game. 21 | 22 | `LevelSerializer.LoadNow(Data);` - Load a save file. Requests savefile data, you will have to use a foreach with the type LevelSerializer.SaveEntry. 23 | 24 | `LevelSerializer.SavedGames[LevelSerializer.PlayerName]` - Returns a list of saved games. Best used in a foreach loop. 25 | 26 | `LevelSerializer.IsDeserializing` - Returns true when a level is loading. Best used when waiting for a level to finish loading, so that a function can continue. 27 | 28 | ### Additional Notes 29 | It's been a while since I [(lobby417)](https://github.com/lobby417) have used this, so excuse any problems. If requested, I will add more detail to this tutorial, including more advanced functionality. 30 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SevenZipHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Reflection; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | using System.Linq; 7 | using ICSharpCode.SharpZipLib.Zip.Compression.Streams; 8 | 9 | 10 | public static class CompressionHelper 11 | { 12 | 13 | /* 14 | public static void PrewarmFileCreator() 15 | { 16 | var f = File.CreateText("prewarm.cs"); 17 | f.WriteLine("using System;"); 18 | f.WriteLine("public static partial class PreWarm {"); 19 | f.WriteLine(" public static string [] PrewarmNames = new string [] {"); 20 | List names = new List(); 21 | Prewarm(names, typeof(UnityEngine.Object).Assembly); 22 | Prewarm(names, typeof(System.Object).Assembly); 23 | var useNames = names.GroupBy(n=>n).OrderByDescending(n=>n.Count()).Select(n=>n.Key).Take(10000).ToList(); 24 | foreach(var name in useNames) 25 | { 26 | f.WriteLine(" \"" + name + "\", "); 27 | } 28 | f.WriteLine(" \"END OF LIST\""); 29 | f.WriteLine(" };"); 30 | f.WriteLine("}"); 31 | f.Close(); 32 | 33 | } 34 | 35 | static void Prewarm(List names, Assembly assembly) 36 | { 37 | 38 | foreach(var type in assembly.GetTypes()) 39 | { 40 | Prewarm(names, type.GetFields()); 41 | Prewarm(names, type.GetProperties()); 42 | 43 | } 44 | } 45 | 46 | static void Prewarm(List names, IEnumerable members) 47 | { 48 | names.AddRange(members.Select(m=>m.Name)); 49 | } 50 | */ 51 | 52 | 53 | public static string technique = "ZipStream"; 54 | 55 | public static string Compress(byte[] data) 56 | { 57 | using(var m = new MemoryStream()) 58 | { 59 | switch(technique) 60 | { 61 | case "ZipStream": 62 | 63 | var br = new BinaryWriter(m); 64 | var z = new DeflaterOutputStream(m); 65 | br.Write(data.Length); 66 | z.Write(data, 0, data.Length); 67 | z.Flush(); 68 | z.Close(); 69 | break; 70 | } 71 | return technique + ":" + Convert.ToBase64String(m.GetBuffer()); 72 | } 73 | } 74 | 75 | public static byte[] Decompress(string data) 76 | { 77 | byte[] output = null; 78 | if(data.StartsWith("ZipStream:")) 79 | { 80 | var m = new MemoryStream(Convert.FromBase64String(data.Substring(10))); 81 | var z = new InflaterInputStream(m); 82 | var br = new BinaryReader(m); 83 | var length = br.ReadInt32(); 84 | output = new byte[length]; 85 | z.Read(output, 0, length); 86 | z.Close(); 87 | m.Close(); 88 | 89 | } 90 | return output; 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /Assets/Plugins/Editor/OpenUnityTools/unityserializer-ng/StoreMaterialsEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | 6 | 7 | [CustomEditor(typeof(StoreMaterials))] 8 | public class StoreMaterialsEditor : Editor { 9 | private StoreMaterials script; 10 | 11 | 12 | public override void OnInspectorGUI() { 13 | script = (StoreMaterials)target; 14 | 15 | if (!EditorApplication.isPlaying) { 16 | Renderer renderer = script.GetComponent(); 17 | 18 | foreach (Material mat in renderer.sharedMaterials) { 19 | if (mat) { 20 | if (StoreMaterials.ShaderDatabase.ContainsKey(mat.shader.name)) { 21 | using (new Horizontal()) { 22 | using (new Vertical()) { 23 | EditorGUILayout.LabelField("Status:"); 24 | EditorGUILayout.LabelField("Material name:"); 25 | EditorGUILayout.LabelField("Shader name:"); 26 | } 27 | using (new Vertical()) { 28 | Color c = GUI.color; 29 | GUI.color = Color.green; 30 | EditorGUILayout.LabelField("Storing", EditorStyles.boldLabel); 31 | GUI.color = c; 32 | 33 | EditorGUILayout.LabelField(mat.name); 34 | string[] s = mat.shader.name.Split('/'); 35 | EditorGUILayout.LabelField(s[s.Length - 1]); 36 | } 37 | } 38 | } 39 | else { 40 | EditorGUILayout.HelpBox(string.Format("Shader \"{0}\" wasn't found in the shader database!\nMake sure you open the Unity Serializer wizard, go to the Materials tab and rebuild it.", mat.shader.name) 41 | , MessageType.Warning); 42 | 43 | if (!StoreMaterials.Dirty) { 44 | StoreMaterials.Dirty = true; 45 | } 46 | } 47 | } 48 | } 49 | } 50 | else { 51 | EditorGUILayout.HelpBox("Not available in play mode.", MessageType.Info); 52 | } 53 | 54 | EditorGUILayout.Space(); 55 | if (GUILayout.Button("Refresh")) { 56 | script.SendMessage("OnEnable"); 57 | } 58 | } 59 | } -------------------------------------------------------------------------------- /MECANIM.md: -------------------------------------------------------------------------------- 1 | #Working with unityserializer-ng and Mecanim# 2 | ##What is saved/loaded?## 3 | * Parameters (all types) 4 | * Current and next state (states, not blendtrees) 5 | * Progress of the current and next state 6 | * Layer weights 7 | 8 | ##What isn't saved/loaded?## 9 | Basically the rest. The important part is that Mecanim transitions **are not**. 10 | Due to the limitations of the Unity API, it is not possible to manually start a transition between two states at a specified point. As such, when you save while a transition between the states 'A' and 'B' occurs, you are given two options how to handle it. 11 | 12 | `REVERT` means that after loading, the current state will be A and the transition will have to be triggered again. 13 | 14 | `SKIP` means that after loading, the current state will be B, skipping the entire transition regardless of how long it would have taken. 15 | 16 | Both options have their downsides and can mess up your state-machine, if you have complex dependencies with other components and rely on each transition being completed after triggered. 17 | Fortunately, it is possible to transorm a Mecanim transition into an equivalent animation, which will be stored correctly, if a few conditions are met. 18 | 19 | ##Transforming a simple Mecanim transition into an animation## 20 | `Capital letters represent states. Arrows (->) represent the connections of your state-machine. A lowercase t inside an arrow means that a Mecanim transition (blending) occurs.` 21 | 22 | 1. Starting with `A--t-->B` 23 | 2. Create a transition animation (e.g. `C`) 24 | 1. Copy the end of `A` and paste it at the start of `C` 25 | 2. Copy the start of `B` and paste it at the end of `C` 26 | 3. Tweak the time and curves to your liking 27 | 3. Instert `C` between `A` and `B` 28 | 4. Make the transition from `A` to `C` and `C` to `B` instantaneous 29 | 5. The result will be `A->C->B` 30 | 31 | 32 | It has to be noted that this trick has its own limitations, whenever `A` and `B` aren't merely states, but animations themselves. If they are ongoing/repeating and share properties, you will run into problems, if `A` can be interruped and doesn't have to finish, since `C` starts where `A` ends. If `C` can interrupt `A` and start at any point in time, `A` doesn't have a defintitive end-point anymore and animation glitches will occur. 33 | On top of that, your state-machine will grow significantly in size and complexity. 34 | 35 | The problem won't be fixed, until the Unity API is extended. The best way of dealing with them is to carefully think about which animations have to be stored correctly, and which can be just restarted/skipped. 36 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Compression/DeflaterPending.cs: -------------------------------------------------------------------------------- 1 | // DeflaterPending.cs 2 | // 3 | // Copyright (C) 2001 Mike Krueger 4 | // Copyright (C) 2004 John Reilly 5 | // 6 | // This file was translated from java, it was part of the GNU Classpath 7 | // Copyright (C) 2001 Free Software Foundation, Inc. 8 | // 9 | // This program is free software; you can redistribute it and/or 10 | // modify it under the terms of the GNU General Public License 11 | // as published by the Free Software Foundation; either version 2 12 | // of the License, or (at your option) any later version. 13 | // 14 | // This program is distributed in the hope that it will be useful, 15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | // GNU General Public License for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License 20 | // along with this program; if not, write to the Free Software 21 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 | // 23 | // Linking this library statically or dynamically with other modules is 24 | // making a combined work based on this library. Thus, the terms and 25 | // conditions of the GNU General Public License cover the whole 26 | // combination. 27 | // 28 | // As a special exception, the copyright holders of this library give you 29 | // permission to link this library with independent modules to produce an 30 | // executable, regardless of the license terms of these independent 31 | // modules, and to copy and distribute the resulting executable under 32 | // terms of your choice, provided that you also meet, for each linked 33 | // independent module, the terms and conditions of the license of that 34 | // module. An independent module is a module which is not derived from 35 | // or based on this library. If you modify this library, you may extend 36 | // this exception to your version of the library, but you are not 37 | // obligated to do so. If you do not wish to do so, delete this 38 | // exception statement from your version. 39 | 40 | namespace ICSharpCode.SharpZipLib.Zip.Compression 41 | { 42 | 43 | /// 44 | /// This class stores the pending output of the Deflater. 45 | /// 46 | /// author of the original java version : Jochen Hoenicke 47 | /// 48 | public class DeflaterPending : PendingBuffer 49 | { 50 | /// 51 | /// Construct instance with default buffer size 52 | /// 53 | public DeflaterPending() : base(DeflaterConstants.PENDING_BUF_SIZE) 54 | { 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/Spawner.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class Spawner : MonoBehaviour { 4 | [SerializeField] 5 | private GameObject prefab; 6 | [SerializeField] 7 | private Transform target; 8 | [SerializeField] 9 | private GameObject other; 10 | [SerializeField] 11 | private Material material; 12 | 13 | [SerializeThis] 14 | private static int numberSpawned = 0; 15 | 16 | [SerializeField] 17 | private Mesh createMesh; 18 | 19 | 20 | private void Update() { 21 | if (LevelSerializer.IsDeserializing) 22 | return; 23 | if (Time.timeScale == 0.0f) 24 | return; 25 | if (Random.Range(0, 100) < 2) { 26 | numberSpawned++; 27 | if (Random.value < 0.4f) { 28 | Vector3 direction = target.transform.forward * ((Random.value * 8.0f) + 2.0f); 29 | direction = direction + target.transform.up * 8.0f; 30 | direction = direction + (target.transform.right * (-4.0f + ((Random.value * 8.0f)))); 31 | if (prefab != null) 32 | Instantiate(prefab, direction, Quaternion.identity); 33 | } 34 | else { 35 | Vector3 direction2 = target.transform.forward * ((Random.value * 8.0f) + 2.0f); 36 | direction2 = direction2 + target.transform.up * 8.0f; 37 | direction2 = direction2 + (target.transform.right * (-4.0f + ((Random.value * 8.0f)))); 38 | 39 | GameObject go = new GameObject(); 40 | MeshRenderer renderer = go.AddComponent(); 41 | renderer.material = material; 42 | MeshFilter mesh = go.AddComponent(); 43 | mesh.sharedMesh = createMesh; 44 | go.AddComponent(); 45 | Rigidbody body = go.AddComponent(); 46 | body.GetComponent().angularVelocity = new Vector3(Random.value * 20.0f, Random.value * 20.0f, Random.value * 20.0f); 47 | go.AddComponent(); 48 | if (Random.value < 0.1f) { 49 | Light l = go.AddComponent(); 50 | l.GetComponent().type = LightType.Point; 51 | l.shadows = LightShadows.Hard; 52 | l.GetComponent().intensity = 2.0f; 53 | l.GetComponent().color = new Color(Random.value / 2.0f + 0.5f, Random.value / 2.0f + 0.5f, Random.value / 2.0f + 0.5f); 54 | } 55 | go.AddComponent(); 56 | go.transform.position = direction2; 57 | } 58 | } 59 | } 60 | 61 | private void OnGUI() { 62 | GUILayout.BeginArea(new Rect(0.0f, 0.0f, 175.0f, 100.0f)); 63 | GUILayout.Label(string.Format("Spawned {0} GameObjects", numberSpawned.ToString())); 64 | GUILayout.EndArea(); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/Entry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace Serialization 5 | { 6 | public class Entry 7 | { 8 | /// 9 | /// The name of the item being read or written 10 | /// This should be filled out by the storage when 11 | /// MustHaveName = true and deserializing 12 | /// 13 | public string Name; 14 | /// 15 | /// The type of the item being stored or retrieved 16 | /// this should be filled out by the storage when 17 | /// MustHaveName=true and deserializing. Will 18 | /// be filled in when serializing. 19 | /// 20 | private PropertyInfo _propertyInfo; 21 | private FieldInfo _fieldInfo; 22 | public Type StoredType; 23 | /// 24 | /// On writing, the value of the object for reference, not needed on 25 | /// deserialization 26 | /// 27 | public object Value; 28 | 29 | /// 30 | /// Indicates whether this entry is static 31 | /// 32 | public bool IsStatic; 33 | /// 34 | /// Set to indicate that the name provided is that of a field or property 35 | /// and is needed to reset the value later 36 | /// 37 | public bool MustHaveName; 38 | /// 39 | /// The type of the object which owns the item being serialized or null 40 | /// if not directly owned. This will always be set on serialization and 41 | /// deserialization when MustHaveName = true and can be used to 42 | /// look up field and property information. Or you can ignore it if 43 | /// you don't need it 44 | /// 45 | public Type OwningType; 46 | /// 47 | /// The property info or null, if the value did not 48 | /// come from a property. You might want to use 49 | /// the to look up attributes attached to the property 50 | /// definition 51 | /// 52 | public PropertyInfo PropertyInfo 53 | { 54 | get { return _propertyInfo; } 55 | set 56 | { 57 | Name = value.Name; 58 | StoredType = value.PropertyType; 59 | 60 | _propertyInfo = value; 61 | } 62 | } 63 | /// 64 | /// The field info or null, if the value did not 65 | /// come from a field. You might want to use it 66 | /// to look up attributes attached to the field definition 67 | /// 68 | public FieldInfo FieldInfo 69 | { 70 | get 71 | { 72 | 73 | return _fieldInfo; 74 | } 75 | set 76 | { 77 | Name = value.Name; 78 | StoredType = value.FieldType; 79 | _fieldInfo = value; 80 | } 81 | } 82 | 83 | public GetSet Setter; 84 | } 85 | } -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/UniqueIdentifier.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | 7 | /// 8 | /// Store this component when saving data 9 | /// 10 | [AttributeUsage(AttributeTargets.Class)] 11 | public class StoreComponent : Attribute 12 | { 13 | 14 | } 15 | 16 | [AttributeUsage(AttributeTargets.Class)] 17 | public class DontStoreAttribute : Attribute 18 | { 19 | 20 | } 21 | 22 | [ExecuteInEditMode] 23 | [DontStore] 24 | [AddComponentMenu("Storage/Unique Identifier")] 25 | public class UniqueIdentifier : MonoBehaviour 26 | { 27 | [HideInInspector] 28 | public bool IsDeserializing; 29 | 30 | public string _id = string.Empty; 31 | 32 | public string Id { 33 | get { 34 | if(gameObject==null) 35 | return _id; 36 | if(!string.IsNullOrEmpty(_id)) 37 | return _id; 38 | return _id = SaveGameManager.GetId(gameObject); 39 | } 40 | set { 41 | _id = value; 42 | SaveGameManager.Instance.SetId (gameObject, value); 43 | } 44 | } 45 | 46 | public static GameObject GetByName (string id) 47 | { 48 | var result = SaveGameManager.Instance.GetById (id); 49 | return result ?? GameObject.Find (id); 50 | } 51 | 52 | private static List allIdentifiers = new List (); 53 | 54 | public static List AllIdentifiers 55 | { 56 | get 57 | { 58 | allIdentifiers = allIdentifiers.Where(a=>a!=null).ToList(); 59 | return allIdentifiers; 60 | } 61 | set 62 | { 63 | allIdentifiers = value; 64 | } 65 | 66 | } 67 | 68 | 69 | [HideInInspector] 70 | public string classId = Guid.NewGuid ().ToString (); 71 | 72 | public string ClassId { 73 | get { 74 | 75 | return classId; 76 | } 77 | set { 78 | if (string.IsNullOrEmpty (value)) { 79 | value = Guid.NewGuid ().ToString (); 80 | } 81 | classId = value; 82 | } 83 | } 84 | 85 | public void FullConfigure () 86 | { 87 | ConfigureId (); 88 | foreach (var c in GetComponentsInChildren(true).Where(c=>c.gameObject.activeInHierarchy == false)) { 89 | c.ConfigureId (); 90 | } 91 | } 92 | 93 | protected virtual void Awake () 94 | { 95 | 96 | 97 | foreach(var c in GetComponents().Where(t=>t.GetType() == typeof(UniqueIdentifier) && t != this)) 98 | DestroyImmediate(c); 99 | 100 | SaveGameManager.Initialize (() => 101 | { 102 | if(gameObject==null) 103 | return; 104 | FullConfigure (); 105 | }); 106 | } 107 | 108 | void ConfigureId () 109 | { 110 | _id = SaveGameManager.GetId (gameObject); 111 | AllIdentifiers.Add (this); 112 | } 113 | 114 | void OnDestroy () 115 | { 116 | if(AllIdentifiers.Count > 0) 117 | AllIdentifiers.Remove (this); 118 | } 119 | 120 | } 121 | 122 | 123 | public static class SerializationHelper 124 | { 125 | public static bool IsDeserializing(this GameObject go) 126 | { 127 | var ui = go.GetComponent(); 128 | return ui != null ? ui.IsDeserializing : false; 129 | } 130 | } 131 | 132 | 133 | 134 | 135 | 136 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/RadicalRoutineHelper.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | 3 | // (c) whydoidoit.com 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | using System.Reflection; 14 | 15 | [Deferred] 16 | [AddComponentMenu("Storage/Resumable Coroutine Support")] 17 | public class RadicalRoutineHelper : MonoBehaviour, IDeserialized 18 | { 19 | static RadicalRoutineHelper() 20 | { 21 | DelegateSupport.RegisterFunctionType(); 22 | DelegateSupport.RegisterFunctionType(); 23 | DelegateSupport.RegisterFunctionType(); 24 | } 25 | 26 | static RadicalRoutineHelper _current; 27 | public static RadicalRoutineHelper Current 28 | { 29 | get 30 | { 31 | if(_current == null) 32 | { 33 | var helper = new GameObject("Radical Routine Helper (AUTO)"); 34 | _current = helper.AddComponent(); 35 | 36 | } 37 | return _current; 38 | } 39 | } 40 | 41 | void Awake() 42 | { 43 | if(!GetComponent()) 44 | { 45 | UniqueIdentifier ident; 46 | if((ident = GetComponent())) 47 | { 48 | var id = ident.Id; 49 | DestroyImmediate(ident); 50 | var eo = gameObject.AddComponent(); 51 | 52 | eo.Id = id; 53 | } 54 | else 55 | { 56 | gameObject.AddComponent(); 57 | } 58 | } 59 | } 60 | 61 | void OnDestroy() 62 | { 63 | if(_current == this) 64 | _current = null; 65 | } 66 | 67 | public List Running = new List(); 68 | 69 | public void Run(RadicalRoutine routine) 70 | { 71 | Running.Add(routine); 72 | if(routine.trackedObject) 73 | routine.trackedObject.StartCoroutine(routine.enumerator); 74 | else 75 | StartCoroutine(routine.enumerator); 76 | } 77 | public void Finished(RadicalRoutine routine) 78 | { 79 | Running.Remove(routine); 80 | if(!string.IsNullOrEmpty(routine.Method) && routine.Target != null) 81 | { 82 | try 83 | { 84 | var mi = routine.Target.GetType().GetMethod(routine.Method, BindingFlags.Public|BindingFlags.NonPublic|BindingFlags.Instance|BindingFlags.Static); 85 | if(mi != null) 86 | { 87 | mi.Invoke(routine.Target, new object [] {}); 88 | } 89 | } 90 | catch 91 | { 92 | } 93 | } 94 | } 95 | 96 | #region IDeserialized implementation 97 | void IDeserialized.Deserialized () 98 | { 99 | try 100 | { 101 | Loom.QueueOnMainThread(()=>{ 102 | foreach(var routine in Running) 103 | { 104 | try 105 | { 106 | if(routine.trackedObject) 107 | routine.trackedObject.StartCoroutine(routine.enumerator); 108 | else 109 | StartCoroutine(routine.enumerator); 110 | } 111 | catch(Exception e) 112 | { 113 | Radical.LogError("Problem starting radical coroutine " + e.ToString()); 114 | } 115 | } 116 | },0.02f); 117 | } 118 | catch(Exception e) 119 | { 120 | Radical.LogError("Problem queing restart for radical routines " + e.ToString()); 121 | } 122 | } 123 | 124 | 125 | #endregion 126 | } 127 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/PauseMenu.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | 4 | public class PauseMenu : MonoBehaviour { 5 | [SerializeField] 6 | private bool paused = false; 7 | [SerializeField] 8 | private GUITexture pausedGUI; 9 | [SerializeField] 10 | private string gameName = "Your Game"; 11 | [SerializeField] 12 | private static bool logProgress = false; 13 | 14 | 15 | private void Start() { 16 | if (pausedGUI) 17 | pausedGUI.enabled = false; 18 | } 19 | 20 | private void OnEnable() { 21 | LevelSerializer.Progress += HandleLevelSerializerProgress; 22 | } 23 | 24 | private void OnDisable() { 25 | LevelSerializer.Progress -= HandleLevelSerializerProgress; 26 | } 27 | 28 | private void Update() { 29 | if (Input.GetKeyUp(KeyCode.P)) { 30 | paused = !paused; 31 | 32 | if (paused) { 33 | Time.timeScale = 0.0f; 34 | Time.fixedDeltaTime = Time.timeScale * 0.02f; 35 | if (pausedGUI) 36 | pausedGUI.enabled = true; 37 | } 38 | else { 39 | Time.timeScale = 1.0f; 40 | Time.fixedDeltaTime = Time.timeScale * 0.02f; 41 | if (pausedGUI) 42 | pausedGUI.enabled = false; 43 | } 44 | } 45 | } 46 | 47 | private void OnGUI() { 48 | if (!paused) { 49 | GUILayout.BeginArea(new Rect(200.0f, 10.0f, 400.0f, 20.0f)); 50 | GUILayout.BeginVertical(); 51 | GUILayout.BeginHorizontal(); 52 | GUILayout.FlexibleSpace(); 53 | GUILayout.Label("Press P to Pause"); 54 | GUILayout.FlexibleSpace(); 55 | GUILayout.EndHorizontal(); 56 | GUILayout.EndVertical(); 57 | GUILayout.EndArea(); 58 | return; 59 | } 60 | 61 | GUIStyle box = "box"; 62 | GUILayout.BeginArea(new Rect(Screen.width * 0.5f - 200.0f, Screen.height * 0.5f - 300.0f, 400.0f, 600.0f), box); 63 | 64 | GUILayout.BeginVertical(); 65 | GUILayout.FlexibleSpace(); 66 | if (GUILayout.Button("Save Game")) { 67 | DateTime t = DateTime.Now; 68 | LevelSerializer.SaveGame(gameName); 69 | if (logProgress) { 70 | Debug.Log(string.Format("Saved in: {0:0.000} seconds", (DateTime.Now - t).TotalSeconds)); 71 | } 72 | } 73 | GUILayout.Space(60.0f); 74 | foreach (LevelSerializer.SaveEntry sg in LevelSerializer.SavedGames[LevelSerializer.PlayerName]) { 75 | if (GUILayout.Button(sg.Caption)) { 76 | DateTime t = DateTime.Now; 77 | LevelSerializer.LoadNow(sg.Data); 78 | if (logProgress) { 79 | Debug.Log(string.Format("Loaded in: {0:0.000} seconds", (DateTime.Now - t).TotalSeconds)); 80 | } 81 | Time.timeScale = 1.0f; 82 | Time.fixedDeltaTime = Time.timeScale * 0.02f; 83 | } 84 | } 85 | GUILayout.FlexibleSpace(); 86 | GUILayout.EndVertical(); 87 | GUILayout.EndArea(); 88 | } 89 | 90 | private static void HandleLevelSerializerProgress(string section, float complete) { 91 | if (logProgress) { 92 | Debug.Log(string.Format("Progress on {0} = {1:0.00%}", section, complete)); 93 | } 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Scripts/TestAnimation.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: TestAnimation 9 | serializedVersion: 6 10 | m_Legacy: 1 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_PositionCurves: 16 | - curve: 17 | serializedVersion: 2 18 | m_Curve: 19 | - time: .150000006 20 | value: {x: -1.90283465, y: 13.3100004, z: 1.81866693} 21 | inSlope: {x: 0, y: -12.6983614, z: 0} 22 | outSlope: {x: 0, y: -12.6983614, z: 0} 23 | tangentMode: -559038737 24 | - time: 1.16666663 25 | value: {x: -1.90283465, y: .400000006, z: 1.81866693} 26 | inSlope: {x: 0, y: -12.6983614, z: 0} 27 | outSlope: {x: 0, y: -12.6983614, z: 0} 28 | tangentMode: -559038737 29 | m_PreInfinity: 2 30 | m_PostInfinity: 2 31 | path: 32 | m_ScaleCurves: [] 33 | m_FloatCurves: [] 34 | m_PPtrCurves: [] 35 | m_SampleRate: 60 36 | m_WrapMode: 0 37 | m_Bounds: 38 | m_Center: {x: 0, y: 0, z: 0} 39 | m_Extent: {x: 0, y: 0, z: 0} 40 | m_ClipBindingConstant: 41 | genericBindings: [] 42 | pptrCurveMapping: [] 43 | m_AnimationClipSettings: 44 | serializedVersion: 2 45 | m_StartTime: 0 46 | m_StopTime: 1 47 | m_OrientationOffsetY: 0 48 | m_Level: 0 49 | m_CycleOffset: 0 50 | m_LoopTime: 0 51 | m_LoopBlend: 0 52 | m_LoopBlendOrientation: 0 53 | m_LoopBlendPositionY: 0 54 | m_LoopBlendPositionXZ: 0 55 | m_KeepOriginalOrientation: 0 56 | m_KeepOriginalPositionY: 1 57 | m_KeepOriginalPositionXZ: 0 58 | m_HeightFromFeet: 0 59 | m_Mirror: 0 60 | m_EditorCurves: 61 | - curve: 62 | serializedVersion: 2 63 | m_Curve: 64 | - time: .150000006 65 | value: -1.90283465 66 | inSlope: 0 67 | outSlope: 0 68 | tangentMode: 10 69 | - time: 1.16666663 70 | value: -1.90283465 71 | inSlope: 0 72 | outSlope: 0 73 | tangentMode: 10 74 | m_PreInfinity: 2 75 | m_PostInfinity: 2 76 | attribute: m_LocalPosition.x 77 | path: 78 | classID: 4 79 | script: {fileID: 0} 80 | - curve: 81 | serializedVersion: 2 82 | m_Curve: 83 | - time: .150000006 84 | value: 13.3100004 85 | inSlope: -12.6983614 86 | outSlope: -12.6983614 87 | tangentMode: 10 88 | - time: 1.16666663 89 | value: .400000006 90 | inSlope: -12.6983614 91 | outSlope: -12.6983614 92 | tangentMode: 10 93 | m_PreInfinity: 2 94 | m_PostInfinity: 2 95 | attribute: m_LocalPosition.y 96 | path: 97 | classID: 4 98 | script: {fileID: 0} 99 | - curve: 100 | serializedVersion: 2 101 | m_Curve: 102 | - time: .150000006 103 | value: 1.81866693 104 | inSlope: 0 105 | outSlope: 0 106 | tangentMode: 10 107 | - time: 1.16666663 108 | value: 1.81866693 109 | inSlope: 0 110 | outSlope: 0 111 | tangentMode: 10 112 | m_PreInfinity: 2 113 | m_PostInfinity: 2 114 | attribute: m_LocalPosition.z 115 | path: 116 | classID: 4 117 | script: {fileID: 0} 118 | m_EulerEditorCurves: [] 119 | m_HasGenericRootTransform: 0 120 | m_GenerateMotionCurves: 0 121 | m_Events: [] 122 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/GetSetGeneric.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq.Expressions; 3 | using System.Reflection; 4 | using System.Security.Permissions; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | 8 | namespace Serialization 9 | { 10 | 11 | //Using reflection to get and set properties so there is no 12 | //JIT compiliation 13 | public class GetSetGeneric : GetSet 14 | { 15 | 16 | public GetSetGeneric (PropertyInfo info) 17 | { 18 | Name = info.Name; 19 | Info = info; 20 | CollectionType = Info.PropertyType.GetInterface ("IEnumerable", true) != null; 21 | var customAttrs = info.GetCustomAttributes(typeof(Specialist),true); 22 | if(customAttrs.Length>0) 23 | { 24 | var specialist = (Specialist)customAttrs[0]; 25 | Get = (o)=>UnitySerializer.Specialists[specialist.Type].Serialize(info.GetValue(o, null)); 26 | Set = (o,v)=>info.SetValue( o, UnitySerializer.Specialists[specialist.Type].Deserialize(v), null); 27 | } 28 | else 29 | { 30 | var getMethod = info.GetGetMethod (true); 31 | var setMethod = info.GetSetMethod (true); 32 | if(getMethod == null) 33 | { 34 | 35 | Get = (o)=> { 36 | return info.GetValue(o, null); 37 | }; 38 | Set = (o,v) => { 39 | info.SetValue(o, v, null); 40 | 41 | }; 42 | return; 43 | } 44 | 45 | IsStatic = getMethod.IsStatic; 46 | Get = (o) => { 47 | 48 | return getMethod.FastInvoke(o, null); 49 | //return getMethod.Invoke (o, null); 50 | }; 51 | Set = (o,v) => { 52 | try { 53 | setMethod.FastInvoke (o, new [] {v}); 54 | } catch (Exception e) { 55 | Radical.LogWarning (string.Format("When setting {0} to {1} found {2}:", o != null ? o.ToString() : "null", v != null ? v.ToString() : "null", e.ToString ())); 56 | } 57 | }; 58 | } 59 | } 60 | 61 | public GetSetGeneric (FieldInfo info) 62 | { 63 | Name = info.Name; 64 | FieldInfo = info; 65 | var customAttrs = info.GetCustomAttributes(typeof(Specialist),true); 66 | if(customAttrs.Length>0) 67 | { 68 | var specialist = (Specialist)customAttrs[0]; 69 | Get = (o)=>UnitySerializer.Specialists[specialist.Type].Serialize(info.GetValue(o)); 70 | Set = (o,v)=>info.SetValue( o, UnitySerializer.Specialists[specialist.Type].Deserialize(v)); 71 | } 72 | else 73 | { 74 | Get = info.GetValue; 75 | Set = info.SetValue; 76 | } 77 | IsStatic = info.IsStatic; 78 | CollectionType = FieldInfo.FieldType.GetInterface ("IEnumerable", true) != null; 79 | return; 80 | } 81 | 82 | public GetSetGeneric (Type t, string name) 83 | { 84 | Name = name; 85 | var p = t.GetProperty (name); 86 | if (p == null) { 87 | FieldInfo = t.GetField (Name, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); 88 | Get = FieldInfo.GetValue; 89 | Set = FieldInfo.SetValue; 90 | IsStatic = FieldInfo.IsStatic; 91 | CollectionType = FieldInfo.FieldType.GetInterface ("IEnumerable", true) != null; 92 | return; 93 | } 94 | Info = p; 95 | CollectionType = Info.PropertyType.GetInterface ("IEnumerable", true) != null; 96 | var getMethod = p.GetGetMethod (true); 97 | var setMethod = p.GetSetMethod (true); 98 | IsStatic = getMethod.IsStatic; 99 | Get = (o) => getMethod.Invoke ( !IsStatic ? o : null, null); 100 | Set = (o,v) => setMethod.Invoke ( !IsStatic ? o : null, new [] {v}); 101 | 102 | 103 | 104 | } 105 | 106 | } 107 | 108 | 109 | 110 | 111 | } -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/Loom.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System; 5 | using System.Threading; 6 | using System.Linq; 7 | 8 | [ExecuteInEditMode] 9 | /// 10 | /// Multithreading support 11 | /// 12 | public class Loom : MonoBehaviour 13 | { 14 | private static Loom _current; 15 | private int _count; 16 | /// 17 | /// Return the current instance 18 | /// 19 | /// 20 | /// 21 | /// 22 | public static Loom Current 23 | { 24 | get 25 | { 26 | if(!_initialized) Initialize(); 27 | return _current; 28 | } 29 | } 30 | 31 | static bool _initialized; 32 | static int _threadId=-1; 33 | 34 | public static void Initialize() 35 | { 36 | 37 | var go = !_initialized; 38 | 39 | if(go && _threadId != -1 && _threadId != Thread.CurrentThread.ManagedThreadId) 40 | return; 41 | 42 | if (go) 43 | { 44 | var g = new GameObject("Loom"); 45 | g.hideFlags = HideFlags.HideAndDontSave; 46 | GameObject.DontDestroyOnLoad(g); 47 | _current = g.AddComponent(); 48 | Component.DontDestroyOnLoad(_current); 49 | _initialized = true; 50 | _threadId = Thread.CurrentThread.ManagedThreadId; 51 | } 52 | 53 | } 54 | 55 | void OnDestroy() 56 | { 57 | _initialized = false; 58 | } 59 | 60 | private List _actions = new List(); 61 | public class DelayedQueueItem 62 | { 63 | public float time; 64 | public Action action; 65 | } 66 | private List _delayed = new List(); 67 | 68 | /// 69 | /// Queues an action on the main thread 70 | /// 71 | /// 72 | /// The action to execute 73 | /// 74 | public static void QueueOnMainThread(Action action) 75 | { 76 | QueueOnMainThread( action, 0f); 77 | } 78 | /// 79 | /// Queues an action on the main thread after a delay 80 | /// 81 | /// 82 | /// The action to run 83 | /// 84 | /// 85 | /// The amount of time to delay 86 | /// 87 | public static void QueueOnMainThread(Action action, float time) 88 | { 89 | if(time != 0) 90 | { 91 | lock(Current._delayed) 92 | { 93 | Current._delayed.Add(new DelayedQueueItem { time = Time.time + time, action = action}); 94 | } 95 | } 96 | else 97 | { 98 | lock (Current._actions) 99 | { 100 | Current._actions.Add(action); 101 | } 102 | } 103 | } 104 | 105 | /// 106 | /// Runs an action on another thread 107 | /// 108 | /// 109 | /// The action to execute on another thread 110 | /// 111 | public static void RunAsync(Action action) 112 | { 113 | var t = new Thread(RunAction); 114 | t.Priority = System.Threading.ThreadPriority.Normal; 115 | t.Start(action); 116 | } 117 | 118 | private static void RunAction(object action) 119 | { 120 | ((Action)action )(); 121 | } 122 | 123 | 124 | // Use this for initialization 125 | void Start() 126 | { 127 | 128 | } 129 | 130 | // Update is called once per frame 131 | void Update() 132 | { 133 | var actions = new List(); 134 | lock (_actions) 135 | { 136 | actions.AddRange(_actions); 137 | _actions.Clear(); 138 | foreach(var a in actions) 139 | { 140 | a(); 141 | } 142 | } 143 | lock(_delayed) 144 | { 145 | foreach(var delayed in _delayed.Where(d=>d.time <= Time.time).ToList()) 146 | { 147 | _delayed.Remove(delayed); 148 | delayed.action(); 149 | } 150 | } 151 | 152 | 153 | } 154 | } 155 | 156 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Radical/System/TransformExtensions.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using System.Linq; 6 | 7 | /// 8 | /// Helper functions for transforms 9 | /// 10 | public static class TransformExtensions 11 | { 12 | 13 | /// 14 | /// Get the first ancestor of a particular type 15 | /// 16 | /// 17 | /// The instance of the type or null 18 | /// 19 | /// 20 | /// The game object 21 | /// 22 | /// 23 | /// The type to get 24 | /// 25 | public static T FirstAncestorOfType(this GameObject gameObject) where T : Component 26 | { 27 | var t = gameObject.transform.parent; 28 | T component = null; 29 | while (t != null && (component = t.GetComponent()) == null) 30 | { 31 | t = t.parent; 32 | } 33 | return component; 34 | } 35 | 36 | /// 37 | /// Get the last ancestor of a particular type 38 | /// 39 | /// 40 | /// The instance of the type or null 41 | /// 42 | /// 43 | /// The game object 44 | /// 45 | /// 46 | /// The type to get 47 | /// 48 | public static T LastAncestorOfType(this GameObject gameObject) where T : class 49 | { 50 | var t = gameObject.transform.parent; 51 | T component = null; 52 | while (t != null) 53 | { 54 | var c = t.gameObject.FindImplementor(); 55 | if (c != null) 56 | { 57 | component = c; 58 | } 59 | t = t.parent; 60 | } 61 | return component; 62 | } 63 | 64 | /// 65 | /// Gets components in children, including disabled ones 66 | /// 67 | /// 68 | /// An array of the children found 69 | /// 70 | /// 71 | /// The parent to search from 72 | /// 73 | /// 74 | /// The type to find 75 | /// 76 | public static T[] GetAllComponentsInChildren(this Transform parent) where T : Component 77 | { 78 | var list = new List(); 79 | var p = parent.GetComponent(); 80 | if(p) list.Add(p); 81 | foreach(var child in parent.Cast()) 82 | { 83 | var candidate = child.GetComponent(); 84 | if(candidate) 85 | { 86 | list.Add(candidate); 87 | } 88 | list.AddRange(GetAllComponentsInChildren(child)); 89 | } 90 | return list.ToArray(); 91 | } 92 | 93 | /// 94 | /// Gets components in children, including disabled ones 95 | /// 96 | /// 97 | /// An array of the children found 98 | /// 99 | /// 100 | /// The parent to search from 101 | /// 102 | /// 103 | /// The type to find 104 | /// 105 | public static T[] GetAllComponentsInChildren(this Component comp) where T : Component 106 | { 107 | return GetAllComponentsInChildren(comp.transform); 108 | } 109 | 110 | /// 111 | /// Gets components in children, including disabled ones 112 | /// 113 | /// 114 | /// An array of the children found 115 | /// 116 | /// 117 | /// The parent to search from 118 | /// 119 | /// 120 | /// The type to find 121 | /// 122 | public static T[] GetAllComponentsInChildren(this GameObject go) where T : Component 123 | { 124 | return GetAllComponentsInChildren(go.transform); 125 | } 126 | 127 | } 128 | 129 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/Checksums/IChecksum.cs: -------------------------------------------------------------------------------- 1 | // IChecksum.cs - Interface to compute a data checksum 2 | // Copyright (C) 2001 Mike Krueger 3 | // 4 | // This file was translated from java, it was part of the GNU Classpath 5 | // Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. 6 | // 7 | // This program is free software; you can redistribute it and/or 8 | // modify it under the terms of the GNU General Public License 9 | // as published by the Free Software Foundation; either version 2 10 | // of the License, or (at your option) any later version. 11 | // 12 | // This program is distributed in the hope that it will be useful, 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | // GNU General Public License for more details. 16 | // 17 | // You should have received a copy of the GNU General Public License 18 | // along with this program; if not, write to the Free Software 19 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 | // 21 | // Linking this library statically or dynamically with other modules is 22 | // making a combined work based on this library. Thus, the terms and 23 | // conditions of the GNU General Public License cover the whole 24 | // combination. 25 | // 26 | // As a special exception, the copyright holders of this library give you 27 | // permission to link this library with independent modules to produce an 28 | // executable, regardless of the license terms of these independent 29 | // modules, and to copy and distribute the resulting executable under 30 | // terms of your choice, provided that you also meet, for each linked 31 | // independent module, the terms and conditions of the license of that 32 | // module. An independent module is a module which is not derived from 33 | // or based on this library. If you modify this library, you may extend 34 | // this exception to your version of the library, but you are not 35 | // obligated to do so. If you do not wish to do so, delete this 36 | // exception statement from your version. 37 | 38 | namespace ICSharpCode.SharpZipLib.Checksums 39 | { 40 | 41 | /// 42 | /// Interface to compute a data checksum used by checked input/output streams. 43 | /// A data checksum can be updated by one byte or with a byte array. After each 44 | /// update the value of the current checksum can be returned by calling 45 | /// getValue. The complete checksum object can also be reset 46 | /// so it can be used again with new data. 47 | /// 48 | public interface IChecksum 49 | { 50 | /// 51 | /// Returns the data checksum computed so far. 52 | /// 53 | long Value 54 | { 55 | get; 56 | } 57 | 58 | /// 59 | /// Resets the data checksum as if no update was ever called. 60 | /// 61 | void Reset(); 62 | 63 | /// 64 | /// Adds one byte to the data checksum. 65 | /// 66 | /// 67 | /// the data value to add. The high byte of the int is ignored. 68 | /// 69 | void Update(int value); 70 | 71 | /// 72 | /// Updates the data checksum with the bytes taken from the array. 73 | /// 74 | /// 75 | /// buffer an array of bytes 76 | /// 77 | void Update(byte[] buffer); 78 | 79 | /// 80 | /// Adds the byte array to the data checksum. 81 | /// 82 | /// 83 | /// The buffer which contains the data 84 | /// 85 | /// 86 | /// The offset in the buffer where the data starts 87 | /// 88 | /// 89 | /// the number of data bytes to add. 90 | /// 91 | void Update(byte[] buffer, int offset, int count); 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Prefabs/Sphere.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &100000 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 100100000} 8 | serializedVersion: 4 9 | m_Component: 10 | - 4: {fileID: 400000} 11 | - 33: {fileID: 3300000} 12 | - 135: {fileID: 13500000} 13 | - 23: {fileID: 2300000} 14 | - 54: {fileID: 5400000} 15 | - 114: {fileID: 11400000} 16 | m_Layer: 0 17 | m_Name: Sphere 18 | m_TagString: Untagged 19 | m_Icon: {fileID: 0} 20 | m_NavMeshLayer: 0 21 | m_StaticEditorFlags: 0 22 | m_IsActive: 1 23 | --- !u!4 &400000 24 | Transform: 25 | m_ObjectHideFlags: 1 26 | m_PrefabParentObject: {fileID: 0} 27 | m_PrefabInternal: {fileID: 100100000} 28 | m_GameObject: {fileID: 100000} 29 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 30 | m_LocalPosition: {x: -1.90283465, y: .332668066, z: 1.81866693} 31 | m_LocalScale: {x: 1, y: 1, z: 1} 32 | m_Children: [] 33 | m_Father: {fileID: 0} 34 | m_RootOrder: 0 35 | --- !u!23 &2300000 36 | MeshRenderer: 37 | m_ObjectHideFlags: 1 38 | m_PrefabParentObject: {fileID: 0} 39 | m_PrefabInternal: {fileID: 100100000} 40 | m_GameObject: {fileID: 100000} 41 | m_Enabled: 1 42 | m_CastShadows: 1 43 | m_ReceiveShadows: 1 44 | m_LightmapIndex: 255 45 | m_LightmapIndexDynamic: 255 46 | m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} 47 | m_LightmapTilingOffsetDynamic: {x: 1, y: 1, z: 0, w: 0} 48 | m_Materials: 49 | - {fileID: 2100000, guid: 040cb578f791c694cbe501e9edfc9292, type: 2} 50 | m_SubsetIndices: 51 | m_StaticBatchRoot: {fileID: 0} 52 | m_UseLightProbes: 0 53 | m_ReflectionProbeUsage: 1 54 | m_ProbeAnchor: {fileID: 0} 55 | m_ScaleInLightmap: 1 56 | m_PreserveUVs: 0 57 | m_ImportantGI: 0 58 | m_AutoUVMaxDistance: .5 59 | m_AutoUVMaxAngle: 89 60 | m_LightmapParameters: {fileID: 0} 61 | m_SortingLayerID: 0 62 | m_SortingOrder: 0 63 | --- !u!33 &3300000 64 | MeshFilter: 65 | m_ObjectHideFlags: 1 66 | m_PrefabParentObject: {fileID: 0} 67 | m_PrefabInternal: {fileID: 100100000} 68 | m_GameObject: {fileID: 100000} 69 | m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} 70 | --- !u!54 &5400000 71 | Rigidbody: 72 | m_ObjectHideFlags: 1 73 | m_PrefabParentObject: {fileID: 0} 74 | m_PrefabInternal: {fileID: 100100000} 75 | m_GameObject: {fileID: 100000} 76 | serializedVersion: 2 77 | m_Mass: 1 78 | m_Drag: 0 79 | m_AngularDrag: .0500000007 80 | m_UseGravity: 1 81 | m_IsKinematic: 0 82 | m_Interpolate: 0 83 | m_Constraints: 0 84 | m_CollisionDetection: 0 85 | --- !u!114 &11400000 86 | MonoBehaviour: 87 | m_ObjectHideFlags: 1 88 | m_PrefabParentObject: {fileID: 0} 89 | m_PrefabInternal: {fileID: 100100000} 90 | m_GameObject: {fileID: 100000} 91 | m_Enabled: 1 92 | m_EditorHideFlags: 0 93 | m_Script: {fileID: 11500000, guid: f5ac6d84dca7648fab1a3a905dbc55b1, type: 3} 94 | m_Name: 95 | m_EditorClassIdentifier: 96 | IsDeserializing: 0 97 | _id: 5afb8997-1053-4876-ab2b-8659f3831e40 98 | classId: 31383663376534652d366536302d343332662d386464382d313038613031333736636238 99 | StoreAllComponents: 1 100 | Components: [] 101 | --- !u!135 &13500000 102 | SphereCollider: 103 | m_ObjectHideFlags: 1 104 | m_PrefabParentObject: {fileID: 0} 105 | m_PrefabInternal: {fileID: 100100000} 106 | m_GameObject: {fileID: 100000} 107 | m_Material: {fileID: 0} 108 | m_IsTrigger: 0 109 | m_Enabled: 1 110 | serializedVersion: 2 111 | m_Radius: .500000119 112 | m_Center: {x: 5.96046448e-08, y: 0, z: -8.94069672e-08} 113 | --- !u!1001 &100100000 114 | Prefab: 115 | m_ObjectHideFlags: 1 116 | serializedVersion: 2 117 | m_Modification: 118 | m_TransformParent: {fileID: 0} 119 | m_Modifications: [] 120 | m_RemovedComponents: [] 121 | m_ParentPrefab: {fileID: 0} 122 | m_RootGameObject: {fileID: 100000} 123 | m_IsPrefabParent: 1 124 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/Serialization/StoredReferences.cs: -------------------------------------------------------------------------------- 1 | // /* ------------------ 2 | // ${Name} 3 | // (c)3Radical 2012 4 | // by Mike Talbot 5 | // ------------------- */ 6 | // 7 | using UnityEngine; 8 | using System.Collections; 9 | using System.Collections.Generic; 10 | using System; 11 | using System.Linq; 12 | using Serialization; 13 | using System.Runtime.Serialization; 14 | 15 | [Serializable] 16 | public class StoredReferences : ScriptableObject 17 | { 18 | public void Clear () 19 | { 20 | ById.Clear (); 21 | ByObject.Clear (); 22 | entries.Clear(); 23 | } 24 | 25 | public int Count { 26 | get { 27 | FixEntries(); 28 | return entries.Count; 29 | } 30 | } 31 | 32 | public GameObject[] AllReferences { 33 | get { 34 | FixEntries(); 35 | return entries.Select(g=>g.gameObject).ToArray(); 36 | } 37 | } 38 | 39 | private static List betweenSceneReferences = new List(); 40 | 41 | 42 | void OnDisable() 43 | { 44 | if(Application.isPlaying) 45 | { 46 | betweenSceneReferences = entries.Where(g=>g.gameObject != null).ToList(); 47 | } 48 | } 49 | 50 | void OnEnable() 51 | { 52 | if(Application.isPlaying) 53 | { 54 | entries = entries.Concat(betweenSceneReferences.Where(g=>g.gameObject != null)).Where(g=>g.gameObject != null).ToList(); 55 | FixEntries(); 56 | ById.Clear(); 57 | ByObject.Clear(); 58 | betweenSceneReferences = entries.Where(g=>g.gameObject != null).ToList(); 59 | } 60 | } 61 | 62 | public List entries = new List(); 63 | Dictionary ById = new Dictionary (); 64 | Dictionary ByObject = new Dictionary (); 65 | 66 | public SaveGameManager.StoredEntry this [string id] { 67 | get { 68 | EnsureDictionaries(); 69 | if (ById.ContainsKey (id)) { 70 | var se = entries[ById [id]]; 71 | if (se.gameObject == null) { 72 | ById.Remove (id); 73 | return null; 74 | } 75 | return se; 76 | } 77 | return null; 78 | } 79 | set { 80 | var index =0; 81 | if(!ById.TryGetValue(id, out index)) 82 | { 83 | index = entries.Count; 84 | ById[id] = index; 85 | entries.Add(value); 86 | } 87 | entries[ById [id]] = value; 88 | ByObject [value.gameObject] = index; 89 | 90 | } 91 | } 92 | 93 | void EnsureDictionaries() 94 | { 95 | if(ById.Count ==0 && entries.Count > 0) 96 | { 97 | FixEntries(); 98 | var i =0; 99 | foreach(var e in entries) 100 | { 101 | ById[e.Id] = i; 102 | ByObject[e.gameObject] = i++; 103 | } 104 | } 105 | } 106 | 107 | public SaveGameManager.StoredEntry this [GameObject id] { 108 | get { 109 | EnsureDictionaries(); 110 | if(ByObject.ContainsKey(id)) 111 | { 112 | return entries[ByObject[id]]; 113 | } 114 | return null; 115 | } 116 | 117 | set { 118 | var index = 0; 119 | if(!ByObject.TryGetValue(id, out index)) 120 | { 121 | index = entries.Count; 122 | ByObject[id] = index; 123 | entries.Add(value); 124 | } 125 | entries[ByObject[id]] = value; 126 | ById[value.Id] = index; 127 | } 128 | } 129 | 130 | public void Remove (GameObject go) 131 | { 132 | var data = this [go]; 133 | if (data != null) { 134 | ById.Remove (data.Id); 135 | ByObject.Remove (data.gameObject); 136 | } 137 | } 138 | 139 | public StoredReferences Alive () 140 | { 141 | var ret = ScriptableObject.CreateInstance(); 142 | foreach (var e in entries) { 143 | if (e.gameObject != null) { 144 | ret [e.Id] = e; 145 | } 146 | } 147 | return ret; 148 | } 149 | 150 | void FixEntries() 151 | { 152 | entries = entries.Where(g=> g != null && g.gameObject != null && g.gameObject.GetComponent() != null).ToList(); 153 | } 154 | 155 | 156 | } 157 | 158 | 159 | -------------------------------------------------------------------------------- /Assets/Plugins/OpenUnityTools/unityserializer-ng/SharpZIP/src/SharpZipBaseException.cs: -------------------------------------------------------------------------------- 1 | // SharpZipBaseException.cs 2 | // 3 | // Copyright 2004 John Reilly 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // This program is distributed in the hope that it will be useful, 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | // GNU General Public License for more details. 14 | // 15 | // You should have received a copy of the GNU General Public License 16 | // along with this program; if not, write to the Free Software 17 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | // 19 | // Linking this library statically or dynamically with other modules is 20 | // making a combined work based on this library. Thus, the terms and 21 | // conditions of the GNU General Public License cover the whole 22 | // combination. 23 | // 24 | // As a special exception, the copyright holders of this library give you 25 | // permission to link this library with independent modules to produce an 26 | // executable, regardless of the license terms of these independent 27 | // modules, and to copy and distribute the resulting executable under 28 | // terms of your choice, provided that you also meet, for each linked 29 | // independent module, the terms and conditions of the license of that 30 | // module. An independent module is a module which is not derived from 31 | // or based on this library. If you modify this library, you may extend 32 | // this exception to your version of the library, but you are not 33 | // obligated to do so. If you do not wish to do so, delete this 34 | // exception statement from your version. 35 | 36 | using System; 37 | 38 | #if !NETCF_1_0 && !NETCF_2_0 39 | using System.Runtime.Serialization; 40 | #endif 41 | 42 | namespace ICSharpCode.SharpZipLib 43 | { 44 | /// 45 | /// SharpZipBaseException is the base exception class for the SharpZipLibrary. 46 | /// All library exceptions are derived from this. 47 | /// 48 | /// NOTE: Not all exceptions thrown will be derived from this class. 49 | /// A variety of other exceptions are possible for example 50 | #if !NETCF_1_0 && !NETCF_2_0 51 | [Serializable] 52 | #endif 53 | public class SharpZipBaseException : ApplicationException 54 | { 55 | #if !NETCF_1_0 && !NETCF_2_0 56 | /// 57 | /// Deserialization constructor 58 | /// 59 | /// for this constructor 60 | /// for this constructor 61 | protected SharpZipBaseException(SerializationInfo info, StreamingContext context ) 62 | : base( info, context ) 63 | { 64 | } 65 | #endif 66 | 67 | /// 68 | /// Initializes a new instance of the SharpZipBaseException class. 69 | /// 70 | public SharpZipBaseException() 71 | { 72 | } 73 | 74 | /// 75 | /// Initializes a new instance of the SharpZipBaseException class with a specified error message. 76 | /// 77 | /// A message describing the exception. 78 | public SharpZipBaseException(string message) 79 | : base(message) 80 | { 81 | } 82 | 83 | /// 84 | /// Initializes a new instance of the SharpZipBaseException class with a specified 85 | /// error message and a reference to the inner exception that is the cause of this exception. 86 | /// 87 | /// A message describing the exception. 88 | /// The inner exception 89 | public SharpZipBaseException(string message, Exception innerException) 90 | : base(message, innerException) 91 | { 92 | } 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Materials/Object.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 4 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Object 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _LIGHTMAPPING_REALTIME 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 0} 21 | m_Scale: {x: 1, y: 1} 22 | m_Offset: {x: 0, y: 0} 23 | data: 24 | first: 25 | name: _BumpMap 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | data: 31 | first: 32 | name: _EmissionMap 33 | second: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | data: 38 | first: 39 | name: _DetailNormalMap 40 | second: 41 | m_Texture: {fileID: 0} 42 | m_Scale: {x: 1, y: 1} 43 | m_Offset: {x: 0, y: 0} 44 | data: 45 | first: 46 | name: _ParallaxMap 47 | second: 48 | m_Texture: {fileID: 0} 49 | m_Scale: {x: 1, y: 1} 50 | m_Offset: {x: 0, y: 0} 51 | data: 52 | first: 53 | name: _OcclusionMap 54 | second: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | data: 59 | first: 60 | name: _DetailMask 61 | second: 62 | m_Texture: {fileID: 0} 63 | m_Scale: {x: 1, y: 1} 64 | m_Offset: {x: 0, y: 0} 65 | data: 66 | first: 67 | name: _DetailAlbedoMap 68 | second: 69 | m_Texture: {fileID: 0} 70 | m_Scale: {x: 1, y: 1} 71 | m_Offset: {x: 0, y: 0} 72 | data: 73 | first: 74 | name: _MetallicGlossMap 75 | second: 76 | m_Texture: {fileID: 0} 77 | m_Scale: {x: 1, y: 1} 78 | m_Offset: {x: 0, y: 0} 79 | m_Floats: 80 | data: 81 | first: 82 | name: _Lightmapping 83 | second: 1 84 | data: 85 | first: 86 | name: _AlphaTestRef 87 | second: .5 88 | data: 89 | first: 90 | name: _SrcBlend 91 | second: 1 92 | data: 93 | first: 94 | name: _DstBlend 95 | second: 0 96 | data: 97 | first: 98 | name: _Parallax 99 | second: .0199999996 100 | data: 101 | first: 102 | name: _ZWrite 103 | second: 1 104 | data: 105 | first: 106 | name: _Glossiness 107 | second: .630999982 108 | data: 109 | first: 110 | name: _BumpScale 111 | second: 1 112 | data: 113 | first: 114 | name: _OcclusionStrength 115 | second: 1 116 | data: 117 | first: 118 | name: _DetailNormalMapScale 119 | second: 1 120 | data: 121 | first: 122 | name: _UVSec 123 | second: 0 124 | data: 125 | first: 126 | name: _EmissionScaleUI 127 | second: 0 128 | data: 129 | first: 130 | name: _Mode 131 | second: 0 132 | data: 133 | first: 134 | name: _Metallic 135 | second: .0430000015 136 | m_Colors: 137 | data: 138 | first: 139 | name: _EmissionColor 140 | second: {r: 0, g: 0, b: 0, a: 0} 141 | data: 142 | first: 143 | name: _Color 144 | second: {r: 1, g: 1, b: 1, a: 1} 145 | data: 146 | first: 147 | name: _EmissionColorUI 148 | second: {r: 1, g: 1, b: 1, a: 1} 149 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Materials/Floor.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 4 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Floor 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _LIGHTMAPPING_REALTIME 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 0} 21 | m_Scale: {x: 1, y: 1} 22 | m_Offset: {x: 0, y: 0} 23 | data: 24 | first: 25 | name: _BumpMap 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | data: 31 | first: 32 | name: _EmissionMap 33 | second: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | data: 38 | first: 39 | name: _DetailNormalMap 40 | second: 41 | m_Texture: {fileID: 0} 42 | m_Scale: {x: 1, y: 1} 43 | m_Offset: {x: 0, y: 0} 44 | data: 45 | first: 46 | name: _ParallaxMap 47 | second: 48 | m_Texture: {fileID: 0} 49 | m_Scale: {x: 1, y: 1} 50 | m_Offset: {x: 0, y: 0} 51 | data: 52 | first: 53 | name: _OcclusionMap 54 | second: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | data: 59 | first: 60 | name: _DetailMask 61 | second: 62 | m_Texture: {fileID: 0} 63 | m_Scale: {x: 1, y: 1} 64 | m_Offset: {x: 0, y: 0} 65 | data: 66 | first: 67 | name: _DetailAlbedoMap 68 | second: 69 | m_Texture: {fileID: 0} 70 | m_Scale: {x: 1, y: 1} 71 | m_Offset: {x: 0, y: 0} 72 | data: 73 | first: 74 | name: _MetallicGlossMap 75 | second: 76 | m_Texture: {fileID: 0} 77 | m_Scale: {x: 1, y: 1} 78 | m_Offset: {x: 0, y: 0} 79 | m_Floats: 80 | data: 81 | first: 82 | name: _Lightmapping 83 | second: 1 84 | data: 85 | first: 86 | name: _AlphaTestRef 87 | second: .5 88 | data: 89 | first: 90 | name: _SrcBlend 91 | second: 1 92 | data: 93 | first: 94 | name: _DstBlend 95 | second: 0 96 | data: 97 | first: 98 | name: _Parallax 99 | second: .0199999996 100 | data: 101 | first: 102 | name: _ZWrite 103 | second: 1 104 | data: 105 | first: 106 | name: _Glossiness 107 | second: 0 108 | data: 109 | first: 110 | name: _BumpScale 111 | second: 1 112 | data: 113 | first: 114 | name: _OcclusionStrength 115 | second: 1 116 | data: 117 | first: 118 | name: _DetailNormalMapScale 119 | second: 1 120 | data: 121 | first: 122 | name: _UVSec 123 | second: 0 124 | data: 125 | first: 126 | name: _EmissionScaleUI 127 | second: 0 128 | data: 129 | first: 130 | name: _Mode 131 | second: 0 132 | data: 133 | first: 134 | name: _Metallic 135 | second: 0 136 | m_Colors: 137 | data: 138 | first: 139 | name: _EmissionColor 140 | second: {r: 0, g: 0, b: 0, a: 0} 141 | data: 142 | first: 143 | name: _Color 144 | second: {r: .303343028, g: .683333337, b: .259154111, a: 1} 145 | data: 146 | first: 147 | name: _EmissionColorUI 148 | second: {r: 1, g: 1, b: 1, a: 1} 149 | -------------------------------------------------------------------------------- /Assets/UnitySerializerExamples/Materials/Materials/paused.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 5 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: paused 10 | m_Shader: {fileID: 45, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _EMISSION _PARALLAXMAP _SPECGLOSSMAP 12 | m_LightmapFlags: 1 13 | m_CustomRenderQueue: -1 14 | m_SavedProperties: 15 | serializedVersion: 2 16 | m_TexEnvs: 17 | data: 18 | first: 19 | name: _MainTex 20 | second: 21 | m_Texture: {fileID: 2800000, guid: 645cb0d95e83d1d4fb7e6c3a66e1efc4, type: 3} 22 | m_Scale: {x: 1.65999997, y: 2.68000007} 23 | m_Offset: {x: -.300000012, y: -1.00999999} 24 | data: 25 | first: 26 | name: _BumpMap 27 | second: 28 | m_Texture: {fileID: 0} 29 | m_Scale: {x: 1, y: 1} 30 | m_Offset: {x: 0, y: 0} 31 | data: 32 | first: 33 | name: _DetailNormalMap 34 | second: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | data: 39 | first: 40 | name: _ParallaxMap 41 | second: 42 | m_Texture: {fileID: 2800000, guid: 645cb0d95e83d1d4fb7e6c3a66e1efc4, type: 3} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | data: 46 | first: 47 | name: _OcclusionMap 48 | second: 49 | m_Texture: {fileID: 0} 50 | m_Scale: {x: 1, y: 1} 51 | m_Offset: {x: 0, y: 0} 52 | data: 53 | first: 54 | name: _EmissionMap 55 | second: 56 | m_Texture: {fileID: 2800000, guid: 645cb0d95e83d1d4fb7e6c3a66e1efc4, type: 3} 57 | m_Scale: {x: 1.65999997, y: 2.68000007} 58 | m_Offset: {x: -.300000012, y: -1.00999999} 59 | data: 60 | first: 61 | name: _DetailMask 62 | second: 63 | m_Texture: {fileID: 0} 64 | m_Scale: {x: 1, y: 1} 65 | m_Offset: {x: 0, y: 0} 66 | data: 67 | first: 68 | name: _DetailAlbedoMap 69 | second: 70 | m_Texture: {fileID: 0} 71 | m_Scale: {x: 1, y: 1} 72 | m_Offset: {x: 0, y: 0} 73 | data: 74 | first: 75 | name: _MetallicGlossMap 76 | second: 77 | m_Texture: {fileID: 0} 78 | m_Scale: {x: 1, y: 1} 79 | m_Offset: {x: 0, y: 0} 80 | data: 81 | first: 82 | name: _SpecGlossMap 83 | second: 84 | m_Texture: {fileID: 2800000, guid: 645cb0d95e83d1d4fb7e6c3a66e1efc4, type: 3} 85 | m_Scale: {x: 1, y: 1} 86 | m_Offset: {x: 0, y: 0} 87 | m_Floats: 88 | data: 89 | first: 90 | name: _Cutoff 91 | second: .5 92 | data: 93 | first: 94 | name: _SrcBlend 95 | second: 1 96 | data: 97 | first: 98 | name: _DstBlend 99 | second: 0 100 | data: 101 | first: 102 | name: _Parallax 103 | second: .0153999999 104 | data: 105 | first: 106 | name: _ZWrite 107 | second: 1 108 | data: 109 | first: 110 | name: _Glossiness 111 | second: .314999998 112 | data: 113 | first: 114 | name: _BumpScale 115 | second: 1 116 | data: 117 | first: 118 | name: _OcclusionStrength 119 | second: 1 120 | data: 121 | first: 122 | name: _DetailNormalMapScale 123 | second: 1 124 | data: 125 | first: 126 | name: _UVSec 127 | second: 0 128 | data: 129 | first: 130 | name: _EmissionScaleUI 131 | second: 1 132 | data: 133 | first: 134 | name: _Mode 135 | second: 0 136 | data: 137 | first: 138 | name: _Metallic 139 | second: .145999998 140 | m_Colors: 141 | data: 142 | first: 143 | name: _EmissionColor 144 | second: {r: 0, g: .5448277, b: 1, a: 1} 145 | data: 146 | first: 147 | name: _Color 148 | second: {r: 1, g: 1, b: 1, a: 1} 149 | data: 150 | first: 151 | name: _SpecColor 152 | second: {r: .200000003, g: .200000003, b: .200000003, a: 1} 153 | data: 154 | first: 155 | name: _EmissionColorUI 156 | second: {r: 0, g: .5448277, b: 1, a: 1} 157 | --------------------------------------------------------------------------------