Class CreateObjectConverterWindow
Inheritance
System.Object
CreateObjectConverterWindow
Inherited Members
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()
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
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
|
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
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
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
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
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
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
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
Methods
|
Improve this Doc
View Source
Declaration
protected override void ConfigureWindow()
Overrides
|
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
|
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
|
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
|
Improve this Doc
View Source
OnGUI()
Declaration
public override void OnGUI()
Overrides
|
Improve this Doc
View Source
OnShow()
Declaration
public override void OnShow()
Overrides
|
Improve this Doc
View Source
Show()
Declaration