• Manual
  • API Documentation
  • Bayat.Json
  • CreateObjectConverterWindow

    Show / Hide Table of Contents
    • Bayat
      • UnityThread
    • Bayat.Core
      • AddReferenceWindow
      • AddReferenceWindow.Dependency
      • AssetReferenceResolver
      • AssetReferenceResolverEditor
      • BayatEditorStyles
      • CoreAssetPostProcessor
      • EditorApplicationUtility
      • MaterialPropertiesResolver
      • MaterialPropertiesResolverEditor
      • ReferenceCheckerWindow
      • ReferenceResolverMode
      • RuntimeMaterialProperties
      • RuntimeMaterialProperty
      • RuntimeMaterialPropertyType
      • SceneReferenceResolver
      • SceneReferenceResolverEditor
      • UnityEditorInternalException
    • Bayat.Core.EditorWindows
      • AssetReferenceManagerWindow
      • AssetReferenceManagerWindow.Styles
      • DatabaseMigrationWindow
      • DatabaseMigrationWindow.SceneMigrationStatus
      • DatabaseMigrationWindow.Styles
      • EditorWindowExtensions
      • EditorWindowUtility
      • EditorWindowWrapper
      • SceneReferenceManagerWindow
      • SceneReferenceManagerWindow.Styles
      • WindowClose
      • WrappedEditorWindow
    • Bayat.Core.Profiling
      • ProfiledSegment
      • ProfiledSegmentCollection
      • ProfilingScope
      • ProfilingUtility
    • Bayat.Core.Reflection
      • AssemblyExtensions
      • Codebase
      • RuntimeCodebase
      • TypeExtensions
      • TypeUtility
    • Bayat.Core.Text
      • StringExtensions
      • StringUtility
    • Bayat.Core.Utilities
      • ExceptionExtensions
      • GuidToReferenceDictionary
      • SerializableDictionary<TKey, TVal>
    • Bayat.Json
      • ConstructorHandling
      • CreateObjectConverterWindow
      • CreateObjectConverterWindow.Styles
      • DateFormatHandling
      • DateParseHandling
      • DateTimeZoneHandling
      • DefaultValueHandling
      • FloatFormatHandling
      • FloatParseHandling
      • Formatting
      • GameObjectSerializationHandler
      • GameObjectSerializationManagerTreeView
      • GameObjectSerializationManagerTreeView.Styles
      • GameObjectSerializationManagerWindow
      • GameObjectSerializationManagerWindow.Styles
      • IArrayPool<T>
      • IJsonLineInfo
      • JsonArrayAttribute
      • JsonConstructorAttribute
      • JsonContainerAttribute
      • JsonContainerType
      • JsonConvert
      • JsonConverter
      • JsonConverterAttribute
      • JsonConverterCollection
      • JsonDefaultSettingsWindow
      • JsonDefaultSettingsWindow.Styles
      • JsonDictionaryAttribute
      • JsonException
      • JsonExtensionDataAttribute
      • JsonIgnoreAttribute
      • JsonObjectAttribute
      • JsonPosition
      • JsonPropertyAttribute
      • JsonReader
      • JsonReader.State
      • JsonReaderException
      • JsonRequiredAttribute
      • JsonSerializationException
      • JsonSerializer
      • JsonSerializerSettings
      • JsonSerializerSettingsPreset
      • JsonTextReader
      • JsonTextWriter
      • JsonToken
      • JsonWriter
      • JsonWriter.State
      • JsonWriterException
      • MemberSerialization
      • MetadataPropertyHandling
      • MissingMemberHandling
      • NullValueHandling
      • ObjectCreationHandling
      • PreserveReferencesHandling
      • ReadType
      • ReferenceLoopHandling
      • Required
      • StringEscapeHandling
      • TypeNameHandling
      • WriteState
    • Bayat.Json.Bson
      • BsonArray
      • BsonBinary
      • BsonBinaryType
      • BsonBinaryWriter
      • BsonObject
      • BsonObjectId
      • BsonProperty
      • BsonReader
      • BsonRegex
      • BsonString
      • BsonToken
      • BsonType
      • BsonValue
      • BsonWriter
    • Bayat.Json.Converters
      • AnimatorConverter
      • AudioClipConverter
      • BinaryConverter
      • BoundsConverter
      • BsonObjectIdConverter
      • ColliderConverter
      • ColorConverter
      • CustomCreationConverter<T>
      • DateTimeConverterBase
      • DiscriminatedUnionConverter
      • EntityKeyMemberConverter
      • ExpandoObjectConverter
      • GameObjectConverter
      • HashSetConverter
      • IsoDateTimeConverter
      • JavaScriptDateTimeConverter
      • KeyValuePairConverter
      • MaterialConverter
      • MaterialConverter.JsonSerializedMaterialProperty
      • Matrix4x4Converter
      • MeshConverter
      • MeshConverter.SerializedIndices
      • MeshFilterConverter
      • ObjectJsonConverter
      • QuaternionConverter
      • RectConverter
      • RectTransformConverter
      • RegexConverter
      • RendererConverter
      • ResolutionConverter
      • ShaderConverter
      • SpriteConverter
      • StringEnumConverter
      • Texture2DConverter
      • TransformConverter
      • UnityBehaviourConverter
      • UnityComponentConverter
      • UnityMonoBehaviourConverter
      • UnityObjectConverter
      • UriConverter
      • VectorConverter
      • VersionConverter
      • XmlNodeConverter
    • Bayat.Json.Linq
      • CommentHandling
      • Extensions
      • IJEnumerable<T>
      • JArray
      • JConstructor
      • JContainer
      • JEnumerable<T>
      • JObject
      • JProperty
      • JPropertyDescriptor
      • JPropertyKeyedCollection
      • JRaw
      • JsonLoadSettings
      • JsonMergeSettings
      • JToken
      • JTokenEqualityComparer
      • JTokenReader
      • JTokenType
      • JTokenWriter
      • JValue
      • LineInfoHandling
      • MergeArrayHandling
      • MergeNullValueHandling
    • Bayat.Json.Linq.JsonPath
      • ArrayIndexFilter
      • ArrayMultipleIndexFilter
      • ArraySliceFilter
      • BooleanQueryExpression
      • CompositeExpression
      • FieldFilter
      • FieldMultipleFilter
      • JPath
      • PathFilter
      • QueryExpression
      • QueryFilter
      • QueryOperator
      • ScanFilter
    • Bayat.Json.Serialization
      • CachedAttributeGetter<T>
      • CamelCasePropertyNamesContractResolver
      • DefaultContractResolver
      • DefaultContractResolver.EnumerableDictionaryWrapper<TEnumeratorKey, TEnumeratorValue>
      • DefaultContractResolverState
      • DefaultReferenceResolver
      • DefaultSerializationBinder
      • DefaultSerializationBinder.TypeNameKey
      • DiagnosticsTraceWriter
      • ErrorContext
      • ErrorEventArgs
      • ExpressionValueProvider
      • ExtensionDataGetter
      • ExtensionDataSetter
      • IAttributeProvider
      • IContractResolver
      • IReferenceResolver
      • ITraceWriter
      • IValueProvider
      • JsonArrayContract
      • JsonContainerContract
      • JsonContract
      • JsonContractType
      • JsonDictionaryContract
      • JsonDynamicContract
      • JsonFormatterConverter
      • JsonISerializableContract
      • JsonLinqContract
      • JsonObjectContract
      • JsonPrimitiveContract
      • JsonProperty
      • JsonPropertyCollection
      • JsonSerializerInternalBase
      • JsonSerializerProxy
      • JsonSerializerReader
      • JsonSerializerReader.CreatorPropertyContext
      • JsonSerializerReader.PropertyPresence
      • JsonSerializerWriter
      • JsonStringContract
      • JsonTypeReflector
      • MemoryTraceWriter
      • ObjectConstructor<T>
      • OnErrorAttribute
      • ReflectionAttributeProvider
      • ReflectionValueProvider
      • ResolverContractKey
      • SerializationCallback
      • SerializationErrorCallback
      • TraceJsonReader
      • TraceJsonWriter
    • Bayat.Json.Shims
      • PreserveAttribute
    • Bayat.Json.Utilities
      • Base64Encoder
      • BidirectionalDictionary<TFirst, TSecond>
      • BufferUtils
      • CollectionUtils
      • CollectionWrapper<T>
      • ConvertUtils
      • ConvertUtils.ConvertResult
      • ConvertUtils.TypeConvertKey
      • Creator<T>
      • DateTimeParser
      • DateTimeUtils
      • DictionaryWrapper<TKey, TValue>
      • DynamicProxy<T>
      • DynamicProxyMetaObject<T>
      • DynamicUtils
      • DynamicUtils.BinderWrapper
      • EnumUtils
      • EnumValue<T>
      • ExpressionReflectionDelegateFactory
      • FSharpFunction
      • FSharpUtils
      • ImmutableCollectionsUtils
      • ImmutableCollectionsUtils.ImmutableCollectionTypeInfo
      • IWrappedCollection
      • IWrappedDictionary
      • JavaScriptUtils
      • JsonTokenUtils
      • LateBoundReflectionDelegateFactory
      • MathUtils
      • MethodCall<T, TResult>
      • MiscellaneousUtils
      • NoThrowExpressionVisitor
      • NoThrowGetBinderMember
      • NoThrowSetBinderMember
      • ParseResult
      • ParserTimeZone
      • PrimitiveTypeCode
      • PropertyNameTable
      • ReflectionDelegateFactory
      • ReflectionMember
      • ReflectionObject
      • ReflectionUtils
      • StringBuffer
      • StringReference
      • StringReferenceExtensions
      • StringUtils
      • ThreadSafeStore<TKey, TValue>
      • TypeInformation
      • ValidationUtils
    • Bayat.SaveSystem
      • AutoSave
      • AutoSaveManager
      • AutoSaveManager.LoadEvent
      • AutoSaveManager.SaveEvent
      • AutoSaveManagerWindow
      • AutoSaveManagerWindow.Styles
      • LoadEventArgs
      • LoadIntoEventArgs
      • SaveEventArgs
      • SaveSystemAPI
      • SaveSystemDefaultSettingsWindow
      • SaveSystemDefaultSettingsWindow.Styles
      • SaveSystemEditorResources
      • SaveSystemJsonSerializer
      • SaveSystemManager
      • SaveSystemSettings
      • SaveSystemSettingsPreset
      • WelcomeWindow
      • WelcomeWindow.Styles
    • Bayat.SaveSystem.Security
      • ISaveSystemEncryption
      • SaveSystemCryptoStream
      • SaveSystemSymmetricCryptoStream
      • SaveSystemSymmetricEncryption
    • Bayat.SaveSystem.Storage
      • BuiltInConnectionFactory
      • ConnectionStringFactory
      • FileStorageStream
      • IConnectionFactory
      • IStorage
      • IStorageStream
      • LocalDiskStorage
      • PlayerPrefsStorage
      • PlayerPrefsStorageStream
      • StorageBackup
      • StorageBase
      • StorageClearOperationResult
      • StorageConnectionString
      • StorageCopyOperationResult
      • StorageDeleteOperationResult
      • StorageFactory
      • StorageFullException
      • StorageInvalidIdentifierException
      • StorageItemNotFoundException
      • StorageListOptions
      • StorageMetaData
      • StorageMoveOperationResult
      • StorageOperationResult
      • StorageStream

    Class CreateObjectConverterWindow

    Inheritance
    System.Object
    EditorWindowWrapper
    CreateObjectConverterWindow
    Inherited Members
    EditorWindowWrapper.window
    EditorWindowWrapper.isOpen
    EditorWindowWrapper.Close()
    EditorWindowWrapper.Update()
    EditorWindowWrapper.OnFocus()
    EditorWindowWrapper.OnLostFocus()
    EditorWindowWrapper.OnHierarchyChange()
    EditorWindowWrapper.OnInspectorUpdate()
    EditorWindowWrapper.OnProjectChange()
    EditorWindowWrapper.OnSelectionChange()
    EditorWindowWrapper.Show(Boolean)
    EditorWindowWrapper.ShowAsDropDown(Rect, Vector2)
    EditorWindowWrapper.ShowAuxWindow()
    EditorWindowWrapper.ShowPopup()
    EditorWindowWrapper.ShowUtility()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Bayat.Json
    Assembly: Bayat.Json.Editor.dll
    Syntax
    public class CreateObjectConverterWindow : EditorWindowWrapper

    Fields

    | Improve this Doc View Source

    assembliesSearchText

    Declaration
    protected string assembliesSearchText
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    assemblyInfoScrollPosition

    Declaration
    protected Vector2 assemblyInfoScrollPosition
    Field Value
    Type Description
    UnityEngine.Vector2
    | Improve this Doc View Source

    assemblyNames

    Declaration
    protected string[] assemblyNames
    Field Value
    Type Description
    System.String[]
    | Improve this Doc View Source

    availableAssemblies

    Declaration
    protected Assembly[] availableAssemblies
    Field Value
    Type Description
    System.Reflection.Assembly[]
    | Improve this Doc View Source

    availableConverters

    Declaration
    protected JsonConverter[] availableConverters
    Field Value
    Type Description
    JsonConverter[]
    | Improve this Doc View Source

    availableTypes

    Declaration
    protected Type[] availableTypes
    Field Value
    Type Description
    System.Type[]
    | Improve this Doc View Source

    contentScrollPosition

    Declaration
    protected Vector2 contentScrollPosition
    Field Value
    Type Description
    UnityEngine.Vector2
    | Improve this Doc View Source

    converterFileName

    Declaration
    protected string converterFileName
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    converterFolderPath

    Declaration
    protected string converterFolderPath
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    DeserializePropertyFormat

    Declaration
    public const string DeserializePropertyFormat = "\t\t\t\tcase \"{0}\":\r\n\t\t\t\t    instance.{0} = internalReader.DeserializeProperty<{1}>(reader);\r\n\t\t\t\t    break;"
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    filteredAssemblies

    Declaration
    protected List<Assembly> filteredAssemblies
    Field Value
    Type Description
    System.Collections.Generic.List<System.Reflection.Assembly>
    | Improve this Doc View Source

    filteredTypes

    Declaration
    protected List<Type> filteredTypes
    Field Value
    Type Description
    System.Collections.Generic.List<System.Type>
    | Improve this Doc View Source

    importScript

    Declaration
    protected bool importScript
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ReadPropertyFormat

    Declaration
    public const string ReadPropertyFormat = "\t\t\t\tcase \"{0}\":\r\n\t\t\t\t    instance.{0} = reader.ReadProperty<{1}>();\r\n                    break;"
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    refreshAssetDatabase

    Declaration
    protected bool refreshAssetDatabase
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    selectedAssembly

    Declaration
    protected Assembly selectedAssembly
    Field Value
    Type Description
    System.Reflection.Assembly
    | Improve this Doc View Source

    selectedAssemblyIndex

    Declaration
    protected int selectedAssemblyIndex
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    selectedTabIndex

    Declaration
    protected int selectedTabIndex
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    selectedType

    Declaration
    protected Type selectedType
    Field Value
    Type Description
    System.Type
    | Improve this Doc View Source

    selectedTypeIndex

    Declaration
    protected int selectedTypeIndex
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    SerializePropertyFormat

    Declaration
    public const string SerializePropertyFormat = "            internalWriter.SerializeProperty(writer, \"{0}\", instance.{0});"
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    showEditorAssemblies

    Declaration
    protected bool showEditorAssemblies
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    tabs

    Declaration
    protected readonly string[] tabs
    Field Value
    Type Description
    System.String[]
    | Improve this Doc View Source

    TemplateFilePath

    Declaration
    public const string TemplateFilePath = "Bayat/Json/Editor/ObjectJsonConverterTemplate.cs"
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    typeInfoScrollPosition

    Declaration
    protected Vector2 typeInfoScrollPosition
    Field Value
    Type Description
    UnityEngine.Vector2
    | Improve this Doc View Source

    typeNames

    Declaration
    protected string[] typeNames
    Field Value
    Type Description
    System.String[]
    | Improve this Doc View Source

    typesCount

    Declaration
    protected int typesCount
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    typesOffsetIndex

    Declaration
    protected int typesOffsetIndex
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    typesPageCount

    Declaration
    protected int typesPageCount
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    typesPageIndex

    Declaration
    protected int typesPageIndex
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    TypesPerPage

    Declaration
    public const int TypesPerPage = 20
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    typesSearchText

    Declaration
    protected string typesSearchText
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    WritePropertyFormat

    Declaration
    public const string WritePropertyFormat = "            writer.WriteProperty(\"{0}\", instance.{0});"
    Field Value
    Type Description
    System.String

    Properties

    | Improve this Doc View Source

    Instance

    Declaration
    public static CreateObjectConverterWindow Instance { get; }
    Property Value
    Type Description
    CreateObjectConverterWindow

    Methods

    | Improve this Doc View Source

    ConfigureWindow()

    Declaration
    protected override void ConfigureWindow()
    Overrides
    EditorWindowWrapper.ConfigureWindow()
    | Improve this Doc View Source

    CreateNewConverter(String, String, Type)

    Declaration
    public static void CreateNewConverter(string filePath, string className, Type objectType)
    Parameters
    Type Name Description
    System.String filePath
    System.String className
    System.Type objectType
    | Improve this Doc View Source

    DrawInfoProperty(String, String)

    Declaration
    public static void DrawInfoProperty(string title, string text)
    Parameters
    Type Name Description
    System.String title
    System.String text
    | Improve this Doc View Source

    DrawUILine(Color, Int32, Int32)

    Declaration
    public static void DrawUILine(Color color, int thickness = 2, int padding = 10)
    Parameters
    Type Name Description
    UnityEngine.Color color
    System.Int32 thickness
    System.Int32 padding
    | Improve this Doc View Source

    GetAssemblies()

    Declaration
    public void GetAssemblies()
    | Improve this Doc View Source

    GetAssemblyValidTypes(Assembly)

    Declaration
    public static Type[] GetAssemblyValidTypes(Assembly assembly)
    Parameters
    Type Name Description
    System.Reflection.Assembly assembly
    Returns
    Type Description
    System.Type[]
    | Improve this Doc View Source

    GetAvailableConverter()

    Declaration
    public JsonConverter GetAvailableConverter()
    Returns
    Type Description
    JsonConverter
    | Improve this Doc View Source

    GetFilteredAssemblies()

    Declaration
    public void GetFilteredAssemblies()
    | Improve this Doc View Source

    GetFilteredTypes()

    Declaration
    public void GetFilteredTypes()
    | Improve this Doc View Source

    GetTypeFullName(Type)

    Declaration
    public static string GetTypeFullName(Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetTypes()

    Declaration
    public void GetTypes()
    | Improve this Doc View Source

    InitWindow()

    Declaration
    [MenuItem("Window/Bayat/Json/Create Object Converter")]
    public static void InitWindow()
    | Improve this Doc View Source

    OnClose()

    Declaration
    public override void OnClose()
    Overrides
    EditorWindowWrapper.OnClose()
    | Improve this Doc View Source

    OnGUI()

    Declaration
    public override void OnGUI()
    Overrides
    EditorWindowWrapper.OnGUI()
    | Improve this Doc View Source

    OnShow()

    Declaration
    public override void OnShow()
    Overrides
    EditorWindowWrapper.OnShow()
    | Improve this Doc View Source

    Show()

    Declaration
    public void Show()
    • Improve this Doc
    • View Source
    • 0 Comments
    In This Article
    • Fields
      • assembliesSearchText
      • assemblyInfoScrollPosition
      • assemblyNames
      • availableAssemblies
      • availableConverters
      • availableTypes
      • contentScrollPosition
      • converterFileName
      • converterFolderPath
      • DeserializePropertyFormat
      • filteredAssemblies
      • filteredTypes
      • importScript
      • ReadPropertyFormat
      • refreshAssetDatabase
      • selectedAssembly
      • selectedAssemblyIndex
      • selectedTabIndex
      • selectedType
      • selectedTypeIndex
      • SerializePropertyFormat
      • showEditorAssemblies
      • tabs
      • TemplateFilePath
      • typeInfoScrollPosition
      • typeNames
      • typesCount
      • typesOffsetIndex
      • typesPageCount
      • typesPageIndex
      • TypesPerPage
      • typesSearchText
      • WritePropertyFormat
    • Properties
      • Instance
    • Methods
      • ConfigureWindow()
      • CreateNewConverter(String, String, Type)
      • DrawInfoProperty(String, String)
      • DrawUILine(Color, Int32, Int32)
      • GetAssemblies()
      • GetAssemblyValidTypes(Assembly)
      • GetAvailableConverter()
      • GetFilteredAssemblies()
      • GetFilteredTypes()
      • GetTypeFullName(Type)
      • GetTypes()
      • InitWindow()
      • OnClose()
      • OnGUI()
      • OnShow()
      • Show()