diff --git a/.gitignore b/.gitignore
index a497701..28dd504 100644
--- a/.gitignore
+++ b/.gitignore
@@ -65,3 +65,4 @@ crashlytics-build.properties
/VMDRecords
/umamusume
Config.json
+/gltf
diff --git a/Assets/Plugins/JsonDotNet/Assemblies/AOT/Newtonsoft.Json.XML b/Assets/Plugins/JsonDotNet/Assemblies/AOT/Newtonsoft.Json.XML
deleted file mode 100644
index 9a914af..0000000
--- a/Assets/Plugins/JsonDotNet/Assemblies/AOT/Newtonsoft.Json.XML
+++ /dev/null
@@ -1,8015 +0,0 @@
-
-
-
- Newtonsoft.Json
-
-
-
-
- Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
-
-
-
-
- Gets or sets a value indicating whether binary data reading should compatible with incorrect Json.NET 3.5 written binary.
-
-
- true if binary data reading will be compatible with incorrect Json.NET 3.5 written binary; otherwise, false.
-
-
-
-
- Gets or sets a value indicating whether the root object will be read as a JSON array.
-
-
- true if the root object will be read as a JSON array; otherwise, false.
-
-
-
-
- Gets or sets the used when reading values from BSON.
-
- The used when reading values from BSON.
-
-
-
- Initializes a new instance of the class.
-
- The stream.
-
-
-
- Initializes a new instance of the class.
-
- The reader.
-
-
-
- Initializes a new instance of the class.
-
- The stream.
- if set to true the root object will be read as a JSON array.
- The used when reading values from BSON.
-
-
-
- Initializes a new instance of the class.
-
- The reader.
- if set to true the root object will be read as a JSON array.
- The used when reading values from BSON.
-
-
-
- Reads the next JSON token from the stream.
-
-
- true if the next token was read successfully; false if there are no more tokens to read.
-
-
-
-
- Changes the to Closed.
-
-
-
-
- Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
-
-
-
-
- Gets or sets the used when writing values to BSON.
- When set to no conversion will occur.
-
- The used when writing values to BSON.
-
-
-
- Initializes a new instance of the class.
-
- The stream.
-
-
-
- Initializes a new instance of the class.
-
- The writer.
-
-
-
- Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
-
-
-
-
- Writes the end.
-
- The token.
-
-
-
- Writes out a comment /*...*/ containing the specified text.
-
- Text to place inside the comment.
-
-
-
- Writes the start of a constructor with the given name.
-
- The name of the constructor.
-
-
-
- Writes raw JSON.
-
- The raw JSON to write.
-
-
-
- Writes raw JSON where a value is expected and updates the writer's state.
-
- The raw JSON to write.
-
-
-
- Writes the beginning of a JSON array.
-
-
-
-
- Writes the beginning of a JSON object.
-
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
-
-
-
- Closes this stream and the underlying stream.
-
-
-
-
- Writes a value.
- An error will raised if the value cannot be written as a single JSON token.
-
- The value to write.
-
-
-
- Writes a null value.
-
-
-
-
- Writes an undefined value.
-
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value.
-
- The [] value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value that represents a BSON object id.
-
- The Object ID value to write.
-
-
-
- Writes a BSON regex.
-
- The regex pattern.
- The regex options.
-
-
-
- Represents a BSON Oid (object id).
-
-
-
-
- Gets or sets the value of the Oid.
-
- The value of the Oid.
-
-
-
- Initializes a new instance of the class.
-
- The Oid value.
-
-
-
- Converts a binary value to and from a base 64 string value.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Create a custom object
-
- The object type to convert.
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Creates an object which will then be populated by the serializer.
-
- Type of the object.
- The created object.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Gets a value indicating whether this can write JSON.
-
-
- true if this can write JSON; otherwise, false.
-
-
-
-
- Provides a base class for converting a to and from JSON.
-
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Converts a to and from JSON.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Converts a to and from JSON and BSON.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Converts a to and from JSON and BSON.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Converts an to and from its name string value.
-
-
-
-
- Gets or sets a value indicating whether the written enum text should be camel case.
-
- true if the written enum text will be camel case; otherwise, false.
-
-
-
- Gets or sets a value indicating whether integer values are allowed.
-
- true if integers are allowed; otherwise, false.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- true if the written enum text will be camel case; otherwise, false.
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Json Converter for Vector2, Vector3 and Vector4. Only serializes x, y, (z) and (w) properties.
-
-
-
-
- Default Constructor - All Vector types enabled by default
-
-
-
-
- Selectively enable Vector types
-
- Use for Vector2 objects
- Use for Vector3 objects
- Use for Vector4 objects
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Converts a to and from a string (e.g. "1.2.3.4").
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing property value of the JSON that is being converted.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Converts a to and from the ISO 8601 date format (e.g. 2008-04-12T12:53Z).
-
-
-
-
- Gets or sets the date time styles used when converting a date to and from JSON.
-
- The date time styles used when converting a date to and from JSON.
-
-
-
- Gets or sets the date time format used when converting a date to and from JSON.
-
- The date time format used when converting a date to and from JSON.
-
-
-
- Gets or sets the culture used when converting a date to and from JSON.
-
- The culture used when converting a date to and from JSON.
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Converts a to and from a JavaScript date constructor (e.g. new Date(52231943)).
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing property value of the JSON that is being converted.
- The calling serializer.
- The object value.
-
-
-
- Converts XML to and from JSON.
-
-
-
-
- Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produces multiple root elements.
-
- The name of the deserialize root element.
-
-
-
- Gets or sets a flag to indicate whether to write the Json.NET array attribute.
- This attribute helps preserve arrays when converting the written XML back to JSON.
-
- true if the array attibute is written to the XML; otherwise, false.
-
-
-
- Gets or sets a value indicating whether to write the root JSON object.
-
- true if the JSON root object is omitted; otherwise, false.
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The calling serializer.
- The value.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Checks if the attributeName is a namespace attribute.
-
- Attribute name to test.
- The attribute name prefix if it has one, otherwise an empty string.
- True if attribute name is for a namespace attribute, otherwise false.
-
-
-
- Determines whether this instance can convert the specified value type.
-
- Type of the value.
-
- true if this instance can convert the specified value type; otherwise, false.
-
-
-
-
- Specifies how constructors are used when initializing objects during deserialization by the .
-
-
-
-
- First attempt to use the public default constructor, then fall back to single paramatized constructor, then the non-public default constructor.
-
-
-
-
- Json.NET will use a non-public default constructor before falling back to a paramatized constructor.
-
-
-
-
- Specifies how dates are formatted when writing JSON text.
-
-
-
-
- Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z".
-
-
-
-
- Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/".
-
-
-
-
- Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text.
-
-
-
-
- Date formatted strings are not parsed to a date type and are read as strings.
-
-
-
-
- Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to .
-
-
-
-
- Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to .
-
-
-
-
- Specifies how to treat the time value when converting between string and .
-
-
-
-
- Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time.
-
-
-
-
- Treat as a UTC. If the object represents a local time, it is converted to a UTC.
-
-
-
-
- Treat as a local time if a is being converted to a string.
- If a string is being converted to , convert to a local time if a time zone is specified.
-
-
-
-
- Time zone information should be preserved when converting.
-
-
-
-
- Specifies float format handling options when writing special floating point numbers, e.g. ,
- and with .
-
-
-
-
- Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity".
-
-
-
-
- Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity.
- Note that this will produce non-valid JSON.
-
-
-
-
- Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a property.
-
-
-
-
- Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
-
-
-
-
- Floating point numbers are parsed to .
-
-
-
-
- Floating point numbers are parsed to .
-
-
-
-
- Specifies formatting options for the .
-
-
-
-
- No special formatting is applied. This is the default.
-
-
-
-
- Causes child objects to be indented according to the and settings.
-
-
-
-
- Provides an interface for using pooled arrays.
-
- The array type content.
-
-
-
- Rent a array from the pool. This array must be returned when it is no longer needed.
-
- The minimum required length of the array. The returned array may be longer.
- The rented array from the pool. This array must be returned when it is no longer needed.
-
-
-
- Return an array to the pool.
-
- The array that is being returned.
-
-
-
- Instructs the to use the specified constructor when deserializing that object.
-
-
-
-
- Instructs the how to serialize the collection.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with the specified container Id.
-
- The container Id.
-
-
-
- The exception thrown when an error occurs during JSON serialization or deserialization.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class
- with a specified error message.
-
- The error message that explains the reason for the exception.
-
-
-
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
-
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
- The parameter is null.
- The class name is null or is zero (0).
-
-
-
- Instructs the to deserialize properties with no matching class member into the specified collection
- and write values during serialization.
-
-
-
-
- Gets or sets a value that indicates whether to write extension data when serializing the object.
-
-
- true to write extension data when serializing the object; otherwise, false. The default is true.
-
-
-
-
- Gets or sets a value that indicates whether to read extension data when deserializing the object.
-
-
- true to read extension data when deserializing the object; otherwise, false. The default is true.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Instructs the to always serialize the member, and require the member has a value.
-
-
-
-
- Specifies how JSON comments are handled when loading JSON.
-
-
-
-
- Ignore comments.
-
-
-
-
- Load comments as a with type .
-
-
-
-
- Specifies how line information is handled when loading JSON.
-
-
-
-
- Ignore line information.
-
-
-
-
- Load line information.
-
-
-
-
- Represents a view of a .
-
-
-
-
- Initializes a new instance of the class.
-
- The name.
-
-
-
- When overridden in a derived class, returns whether resetting an object changes its value.
-
-
- true if resetting the component changes its value; otherwise, false.
-
- The component to test for reset capability.
-
-
-
-
- When overridden in a derived class, gets the current value of the property on a component.
-
-
- The value of a property for a given component.
-
- The component with the property for which to retrieve the value.
-
-
-
-
- When overridden in a derived class, resets the value for this property of the component to the default value.
-
- The component with the property value that is to be reset to the default value.
-
-
-
-
- When overridden in a derived class, sets the value of the component to a different value.
-
- The component with the property value that is to be set.
- The new value.
-
-
-
-
- When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted.
-
-
- true if the property should be persisted; otherwise, false.
-
- The component with the property to be examined for persistence.
-
-
-
-
- When overridden in a derived class, gets the type of the component this property is bound to.
-
-
- A that represents the type of component this property is bound to. When the or methods are invoked, the object specified might be an instance of this type.
-
-
-
-
- When overridden in a derived class, gets a value indicating whether this property is read-only.
-
-
- true if the property is read-only; otherwise, false.
-
-
-
-
- When overridden in a derived class, gets the type of the property.
-
-
- A that represents the type of the property.
-
-
-
-
- Gets the hash code for the name of the member.
-
-
-
- The hash code for the name of the member.
-
-
-
-
- Specifies the settings used when loading JSON.
-
-
-
-
- Gets or sets how JSON comments are handled when loading JSON.
-
- The JSON comment handling.
-
-
-
- Gets or sets how JSON line info is handled when loading JSON.
-
- The JSON line info handling.
-
-
-
- Specifies the settings used when merging JSON.
-
-
-
-
- Gets or sets the method used when merging JSON arrays.
-
- The method used when merging JSON arrays.
-
-
-
- Gets or sets how how null value properties are merged.
-
- How null value properties are merged.
-
-
-
- Specifies how JSON arrays are merged together.
-
-
-
- Concatenate arrays.
-
-
- Union arrays, skipping items that already exist.
-
-
- Replace all array items.
-
-
- Merge array items together, matched by index.
-
-
-
- Specifies how null value properties are merged.
-
-
-
-
- The content's null value properties will be ignored during merging.
-
-
-
-
- The content's null value properties will be merged.
-
-
-
-
- Represents a raw JSON string.
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class.
-
- The raw json.
-
-
-
- Creates an instance of with the content of the reader's current token.
-
- The reader.
- An instance of with the content of the reader's current token.
-
-
-
- Represents a collection of objects.
-
- The type of token
-
-
-
- Gets the with the specified key.
-
-
-
-
-
- Compares tokens to determine whether they are equal.
-
-
-
-
- Determines whether the specified objects are equal.
-
- The first object of type to compare.
- The second object of type to compare.
-
- true if the specified objects are equal; otherwise, false.
-
-
-
-
- Returns a hash code for the specified object.
-
- The for which a hash code is to be returned.
- A hash code for the specified object.
- The type of is a reference type and is null.
-
-
-
- Contains the LINQ to JSON extension methods.
-
-
-
-
- Returns a collection of tokens that contains the ancestors of every token in the source collection.
-
- The type of the objects in source, constrained to .
- An of that contains the source collection.
- An of that contains the ancestors of every token in the source collection.
-
-
-
- Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection.
-
- The type of the objects in source, constrained to .
- An of that contains the source collection.
- An of that contains every token in the source collection, the ancestors of every token in the source collection.
-
-
-
- Returns a collection of tokens that contains the descendants of every token in the source collection.
-
- The type of the objects in source, constrained to .
- An of that contains the source collection.
- An of that contains the descendants of every token in the source collection.
-
-
-
- Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection.
-
- The type of the objects in source, constrained to .
- An of that contains the source collection.
- An of that contains every token in the source collection, and the descendants of every token in the source collection.
-
-
-
- Returns a collection of child properties of every object in the source collection.
-
- An of that contains the source collection.
- An of that contains the properties of every object in the source collection.
-
-
-
- Returns a collection of child values of every object in the source collection with the given key.
-
- An of that contains the source collection.
- The token key.
- An of that contains the values of every token in the source collection with the given key.
-
-
-
- Returns a collection of child values of every object in the source collection.
-
- An of that contains the source collection.
- An of that contains the values of every token in the source collection.
-
-
-
- Returns a collection of converted child values of every object in the source collection with the given key.
-
- The type to convert the values to.
- An of that contains the source collection.
- The token key.
- An that contains the converted values of every token in the source collection with the given key.
-
-
-
- Returns a collection of converted child values of every object in the source collection.
-
- The type to convert the values to.
- An of that contains the source collection.
- An that contains the converted values of every token in the source collection.
-
-
-
- Converts the value.
-
- The type to convert the value to.
- A cast as a of .
- A converted value.
-
-
-
- Converts the value.
-
- The source collection type.
- The type to convert the value to.
- A cast as a of .
- A converted value.
-
-
-
- Returns a collection of child tokens of every array in the source collection.
-
- The source collection type.
- An of that contains the source collection.
- An of that contains the values of every token in the source collection.
-
-
-
- Returns a collection of converted child tokens of every array in the source collection.
-
- An of that contains the source collection.
- The type to convert the values to.
- The source collection type.
- An that contains the converted values of every token in the source collection.
-
-
-
- Returns the input typed as .
-
- An of that contains the source collection.
- The input typed as .
-
-
-
- Returns the input typed as .
-
- The source collection type.
- An of that contains the source collection.
- The input typed as .
-
-
-
- Represents a JSON constructor.
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Gets or sets the name of this constructor.
-
- The constructor name.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class with the specified name and content.
-
- The constructor name.
- The contents of the constructor.
-
-
-
- Initializes a new instance of the class with the specified name and content.
-
- The constructor name.
- The contents of the constructor.
-
-
-
- Initializes a new instance of the class with the specified name.
-
- The constructor name.
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Gets the with the specified key.
-
- The with the specified key.
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- A that contains the JSON that was read from the specified .
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- The used to load the JSON.
- If this is null, default load settings will be used.
- A that contains the JSON that was read from the specified .
-
-
-
- Represents a token that can contain other tokens.
-
-
-
-
- Occurs when the list changes or an item in the list changes.
-
-
-
-
- Occurs before an item is added to the collection.
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Raises the event.
-
- The instance containing the event data.
-
-
-
- Raises the event.
-
- The instance containing the event data.
-
-
-
- Gets a value indicating whether this token has child tokens.
-
-
- true if this token has child values; otherwise, false.
-
-
-
-
- Get the first child token of this token.
-
-
- A containing the first child token of the .
-
-
-
-
- Get the last child token of this token.
-
-
- A containing the last child token of the .
-
-
-
-
- Returns a collection of the child tokens of this token, in document order.
-
-
- An of containing the child tokens of this , in document order.
-
-
-
-
- Returns a collection of the child values of this token, in document order.
-
- The type to convert the values to.
-
- A containing the child values of this , in document order.
-
-
-
-
- Returns a collection of the descendant tokens for this token in document order.
-
- An containing the descendant tokens of the .
-
-
-
- Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order.
-
- An containing this token, and all the descendant tokens of the .
-
-
-
- Adds the specified content as children of this .
-
- The content to be added.
-
-
-
- Adds the specified content as the first children of this .
-
- The content to be added.
-
-
-
- Creates an that can be used to add tokens to the .
-
- An that is ready to have content written to it.
-
-
-
- Replaces the children nodes of this token with the specified content.
-
- The content.
-
-
-
- Removes the child nodes from this token.
-
-
-
-
- Merge the specified content into this .
-
- The content to be merged.
-
-
-
- Merge the specified content into this using .
-
- The content to be merged.
- The used to merge the content.
-
-
-
- Gets the count of child JSON tokens.
-
- The count of child JSON tokens
-
-
-
- Represents a collection of objects.
-
- The type of token
-
-
-
- An empty collection of objects.
-
-
-
-
- Initializes a new instance of the struct.
-
- The enumerable.
-
-
-
- Returns an enumerator that iterates through the collection.
-
-
- A that can be used to iterate through the collection.
-
-
-
-
- Returns an enumerator that iterates through a collection.
-
-
- An object that can be used to iterate through the collection.
-
-
-
-
- Gets the with the specified key.
-
-
-
-
-
- Determines whether the specified is equal to this instance.
-
- The to compare with this instance.
-
- true if the specified is equal to this instance; otherwise, false.
-
-
-
-
- Determines whether the specified is equal to this instance.
-
- The to compare with this instance.
-
- true if the specified is equal to this instance; otherwise, false.
-
-
-
-
- Returns a hash code for this instance.
-
-
- A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
-
-
-
-
- Represents a JSON object.
-
-
-
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Occurs when a property value changes.
-
-
-
-
- Occurs when a property value is changing.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class with the specified content.
-
- The contents of the object.
-
-
-
- Initializes a new instance of the class with the specified content.
-
- The contents of the object.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Gets an of this object's properties.
-
- An of this object's properties.
-
-
-
- Gets a the specified name.
-
- The property name.
- A with the specified name or null.
-
-
-
- Gets an of this object's property values.
-
- An of this object's property values.
-
-
-
- Gets the with the specified key.
-
- The with the specified key.
-
-
-
- Gets or sets the with the specified property name.
-
-
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- A that contains the JSON that was read from the specified .
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- The used to load the JSON.
- If this is null, default load settings will be used.
- A that contains the JSON that was read from the specified .
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- A populated from the string that contains JSON.
-
-
-
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- The used to load the JSON.
- If this is null, default load settings will be used.
- A populated from the string that contains JSON.
-
-
-
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- A with the values of the specified object
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- The that will be used to read the object.
- A with the values of the specified object
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Gets the with the specified property name.
-
- Name of the property.
- The with the specified property name.
-
-
-
- Gets the with the specified property name.
- The exact property name will be searched for first and if no matching property is found then
- the will be used to match a property.
-
- Name of the property.
- One of the enumeration values that specifies how the strings will be compared.
- The with the specified property name.
-
-
-
- Tries to get the with the specified property name.
- The exact property name will be searched for first and if no matching property is found then
- the will be used to match a property.
-
- Name of the property.
- The value.
- One of the enumeration values that specifies how the strings will be compared.
- true if a value was successfully retrieved; otherwise, false.
-
-
-
- Adds the specified property name.
-
- Name of the property.
- The value.
-
-
-
- Removes the property with the specified name.
-
- Name of the property.
- true if item was successfully removed; otherwise, false.
-
-
-
- Tries the get value.
-
- Name of the property.
- The value.
- true if a value was successfully retrieved; otherwise, false.
-
-
-
- Returns an enumerator that iterates through the collection.
-
-
- A that can be used to iterate through the collection.
-
-
-
-
- Raises the event with the provided arguments.
-
- Name of the property.
-
-
-
- Raises the event with the provided arguments.
-
- Name of the property.
-
-
-
- Returns the properties for this instance of a component.
-
-
- A that represents the properties for this component instance.
-
-
-
-
- Returns the properties for this instance of a component using the attribute array as a filter.
-
- An array of type that is used as a filter.
-
- A that represents the filtered properties for this component instance.
-
-
-
-
- Returns a collection of custom attributes for this instance of a component.
-
-
- An containing the attributes for this object.
-
-
-
-
- Returns the class name of this instance of a component.
-
-
- The class name of the object, or null if the class does not have a name.
-
-
-
-
- Returns the name of this instance of a component.
-
-
- The name of the object, or null if the object does not have a name.
-
-
-
-
- Returns a type converter for this instance of a component.
-
-
- A that is the converter for this object, or null if there is no for this object.
-
-
-
-
- Returns the default event for this instance of a component.
-
-
- An that represents the default event for this object, or null if this object does not have events.
-
-
-
-
- Returns the default property for this instance of a component.
-
-
- A that represents the default property for this object, or null if this object does not have properties.
-
-
-
-
- Returns an editor of the specified type for this instance of a component.
-
- A that represents the editor for this object.
-
- An of the specified type that is the editor for this object, or null if the editor cannot be found.
-
-
-
-
- Returns the events for this instance of a component using the specified attribute array as a filter.
-
- An array of type that is used as a filter.
-
- An that represents the filtered events for this component instance.
-
-
-
-
- Returns the events for this instance of a component.
-
-
- An that represents the events for this component instance.
-
-
-
-
- Returns an object that contains the property described by the specified property descriptor.
-
- A that represents the property whose owner is to be found.
-
- An that represents the owner of the specified property.
-
-
-
-
- Represents a JSON array.
-
-
-
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class with the specified content.
-
- The contents of the array.
-
-
-
- Initializes a new instance of the class with the specified content.
-
- The contents of the array.
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- A that contains the JSON that was read from the specified .
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- The used to load the JSON.
- If this is null, default load settings will be used.
- A that contains the JSON that was read from the specified .
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- A populated from the string that contains JSON.
-
-
-
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- The used to load the JSON.
- If this is null, default load settings will be used.
- A populated from the string that contains JSON.
-
-
-
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- A with the values of the specified object
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- The that will be used to read the object.
- A with the values of the specified object
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Gets the with the specified key.
-
- The with the specified key.
-
-
-
- Gets or sets the at the specified index.
-
-
-
-
-
- Determines the index of a specific item in the .
-
- The object to locate in the .
-
- The index of if found in the list; otherwise, -1.
-
-
-
-
- Inserts an item to the at the specified index.
-
- The zero-based index at which should be inserted.
- The object to insert into the .
-
- is not a valid index in the .
- The is read-only.
-
-
-
- Removes the item at the specified index.
-
- The zero-based index of the item to remove.
-
- is not a valid index in the .
- The is read-only.
-
-
-
- Returns an enumerator that iterates through the collection.
-
-
- A that can be used to iterate through the collection.
-
-
-
-
- Adds an item to the .
-
- The object to add to the .
- The is read-only.
-
-
-
- Removes all items from the .
-
- The is read-only.
-
-
-
- Determines whether the contains a specific value.
-
- The object to locate in the .
-
- true if is found in the ; otherwise, false.
-
-
-
-
- Copies to.
-
- The array.
- Index of the array.
-
-
-
- Gets a value indicating whether the is read-only.
-
- true if the is read-only; otherwise, false.
-
-
-
- Removes the first occurrence of a specific object from the .
-
- The object to remove from the .
-
- true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original .
-
- The is read-only.
-
-
-
- Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
-
-
-
-
- Gets the at the reader's current position.
-
-
-
-
- Initializes a new instance of the class.
-
- The token to read from.
-
-
-
- Reads the next JSON token from the stream.
-
-
- true if the next token was read successfully; false if there are no more tokens to read.
-
-
-
-
- Gets the path of the current JSON token.
-
-
-
-
- Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
-
-
-
-
- Gets the at the writer's current position.
-
-
-
-
- Gets the token being writen.
-
- The token being writen.
-
-
-
- Initializes a new instance of the class writing to the given .
-
- The container being written to.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
-
-
-
-
- Closes this stream and the underlying stream.
-
-
-
-
- Writes the beginning of a JSON object.
-
-
-
-
- Writes the beginning of a JSON array.
-
-
-
-
- Writes the start of a constructor with the given name.
-
- The name of the constructor.
-
-
-
- Writes the end.
-
- The token.
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
-
-
-
- Writes a value.
- An error will raised if the value cannot be written as a single JSON token.
-
- The value to write.
-
-
-
- Writes a null value.
-
-
-
-
- Writes an undefined value.
-
-
-
-
- Writes raw JSON.
-
- The raw JSON to write.
-
-
-
- Writes out a comment /*...*/ containing the specified text.
-
- Text to place inside the comment.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value.
-
- The [] value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Represents an abstract JSON token.
-
-
-
-
- Gets a comparer that can compare two tokens for value equality.
-
- A that can compare two nodes for value equality.
-
-
-
- Gets or sets the parent.
-
- The parent.
-
-
-
- Gets the root of this .
-
- The root of this .
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Gets a value indicating whether this token has child tokens.
-
-
- true if this token has child values; otherwise, false.
-
-
-
-
- Compares the values of two tokens, including the values of all descendant tokens.
-
- The first to compare.
- The second to compare.
- true if the tokens are equal; otherwise false.
-
-
-
- Gets the next sibling token of this node.
-
- The that contains the next sibling token.
-
-
-
- Gets the previous sibling token of this node.
-
- The that contains the previous sibling token.
-
-
-
- Gets the path of the JSON token.
-
-
-
-
- Adds the specified content immediately after this token.
-
- A content object that contains simple content or a collection of content objects to be added after this token.
-
-
-
- Adds the specified content immediately before this token.
-
- A content object that contains simple content or a collection of content objects to be added before this token.
-
-
-
- Returns a collection of the ancestor tokens of this token.
-
- A collection of the ancestor tokens of this token.
-
-
-
- Returns a collection of tokens that contain this token, and the ancestors of this token.
-
- A collection of tokens that contain this token, and the ancestors of this token.
-
-
-
- Returns a collection of the sibling tokens after this token, in document order.
-
- A collection of the sibling tokens after this tokens, in document order.
-
-
-
- Returns a collection of the sibling tokens before this token, in document order.
-
- A collection of the sibling tokens before this token, in document order.
-
-
-
- Gets the with the specified key.
-
- The with the specified key.
-
-
-
- Gets the with the specified key converted to the specified type.
-
- The type to convert the token to.
- The token key.
- The converted token value.
-
-
-
- Get the first child token of this token.
-
- A containing the first child token of the .
-
-
-
- Get the last child token of this token.
-
- A containing the last child token of the .
-
-
-
- Returns a collection of the child tokens of this token, in document order.
-
- An of containing the child tokens of this , in document order.
-
-
-
- Returns a collection of the child tokens of this token, in document order, filtered by the specified type.
-
- The type to filter the child tokens on.
- A containing the child tokens of this , in document order.
-
-
-
- Returns a collection of the child values of this token, in document order.
-
- The type to convert the values to.
- A containing the child values of this , in document order.
-
-
-
- Removes this token from its parent.
-
-
-
-
- Replaces this token with the specified token.
-
- The value.
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Returns the indented JSON for this token.
-
-
- The indented JSON for this token.
-
-
-
-
- Returns the JSON for this token using the given formatting and converters.
-
- Indicates how the output is formatted.
- A collection of which will be used when writing the token.
- The JSON for this token using the given formatting and converters.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to [].
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from [] to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Creates an for this token.
-
- An that can be used to read this token and its descendants.
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- A with the value of the specified object
-
-
-
- Creates a from an object using the specified .
-
- The object that will be used to create .
- The that will be used when reading the object.
- A with the value of the specified object
-
-
-
- Creates the specified .NET type from the .
-
- The object type that the token will be deserialized to.
- The new object created from the JSON value.
-
-
-
- Creates the specified .NET type from the .
-
- The object type that the token will be deserialized to.
- The new object created from the JSON value.
-
-
-
- Creates the specified .NET type from the using the specified .
-
- The object type that the token will be deserialized to.
- The that will be used when creating the object.
- The new object created from the JSON value.
-
-
-
- Creates the specified .NET type from the using the specified .
-
- The object type that the token will be deserialized to.
- The that will be used when creating the object.
- The new object created from the JSON value.
-
-
-
- Creates a from a .
-
- An positioned at the token to read into this .
-
- An that contains the token and its descendant tokens
- that were read from the reader. The runtime type of the token is determined
- by the token type of the first token encountered in the reader.
-
-
-
-
- Creates a from a .
-
- An positioned at the token to read into this .
- The used to load the JSON.
- If this is null, default load settings will be used.
-
- An that contains the token and its descendant tokens
- that were read from the reader. The runtime type of the token is determined
- by the token type of the first token encountered in the reader.
-
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- A populated from the string that contains JSON.
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- The used to load the JSON.
- If this is null, default load settings will be used.
- A populated from the string that contains JSON.
-
-
-
- Creates a from a .
-
- An positioned at the token to read into this .
- The used to load the JSON.
- If this is null, default load settings will be used.
-
- An that contains the token and its descendant tokens
- that were read from the reader. The runtime type of the token is determined
- by the token type of the first token encountered in the reader.
-
-
-
-
- Creates a from a .
-
- An positioned at the token to read into this .
-
- An that contains the token and its descendant tokens
- that were read from the reader. The runtime type of the token is determined
- by the token type of the first token encountered in the reader.
-
-
-
-
- Selects a using a JPath expression. Selects the token that matches the object path.
-
-
- A that contains a JPath expression.
-
- A , or null.
-
-
-
- Selects a using a JPath expression. Selects the token that matches the object path.
-
-
- A that contains a JPath expression.
-
- A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression.
- A .
-
-
-
- Selects a collection of elements using a JPath expression.
-
-
- A that contains a JPath expression.
-
- An that contains the selected elements.
-
-
-
- Selects a collection of elements using a JPath expression.
-
-
- A that contains a JPath expression.
-
- A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression.
- An that contains the selected elements.
-
-
-
- Creates a new instance of the . All child tokens are recursively cloned.
-
- A new instance of the .
-
-
-
- Adds an object to the annotation list of this .
-
- The annotation to add.
-
-
-
- Get the first annotation object of the specified type from this .
-
- The type of the annotation to retrieve.
- The first annotation object that matches the specified type, or null if no annotation is of the specified type.
-
-
-
- Gets the first annotation object of the specified type from this .
-
- The of the annotation to retrieve.
- The first annotation object that matches the specified type, or null if no annotation is of the specified type.
-
-
-
- Gets a collection of annotations of the specified type for this .
-
- The type of the annotations to retrieve.
- An that contains the annotations for this .
-
-
-
- Gets a collection of annotations of the specified type for this .
-
- The of the annotations to retrieve.
- An of that contains the annotations that match the specified type for this .
-
-
-
- Removes the annotations of the specified type from this .
-
- The type of annotations to remove.
-
-
-
- Removes the annotations of the specified type from this .
-
- The of annotations to remove.
-
-
-
- Represents a JSON property.
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Gets the property name.
-
- The property name.
-
-
-
- Gets or sets the property value.
-
- The property value.
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Initializes a new instance of the class.
-
- The property name.
- The property content.
-
-
-
- Initializes a new instance of the class.
-
- The property name.
- The property content.
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- A that contains the JSON that was read from the specified .
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- The used to load the JSON.
- If this is null, default load settings will be used.
- A that contains the JSON that was read from the specified .
-
-
-
- Specifies the type of token.
-
-
-
-
- No token type has been set.
-
-
-
-
- A JSON object.
-
-
-
-
- A JSON array.
-
-
-
-
- A JSON constructor.
-
-
-
-
- A JSON object property.
-
-
-
-
- A comment.
-
-
-
-
- An integer value.
-
-
-
-
- A float value.
-
-
-
-
- A string value.
-
-
-
-
- A boolean value.
-
-
-
-
- A null value.
-
-
-
-
- An undefined value.
-
-
-
-
- A date value.
-
-
-
-
- A raw JSON value.
-
-
-
-
- A collection of bytes value.
-
-
-
-
- A Guid value.
-
-
-
-
- A Uri value.
-
-
-
-
- A TimeSpan value.
-
-
-
-
- Represents a value in JSON (string, integer, date, etc).
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Gets a value indicating whether this token has child tokens.
-
-
- true if this token has child values; otherwise, false.
-
-
-
-
- Creates a comment with the given value.
-
- The value.
- A comment with the given value.
-
-
-
- Creates a string with the given value.
-
- The value.
- A string with the given value.
-
-
-
- Creates a null value.
-
- A null value.
-
-
-
- Creates a undefined value.
-
- A undefined value.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Gets or sets the underlying token value.
-
- The underlying token value.
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Indicates whether the current object is equal to another object of the same type.
-
-
- true if the current object is equal to the parameter; otherwise, false.
-
- An object to compare with this object.
-
-
-
- Determines whether the specified is equal to the current .
-
- The to compare with the current .
-
- true if the specified is equal to the current ; otherwise, false.
-
-
- The parameter is null.
-
-
-
-
- Serves as a hash function for a particular type.
-
-
- A hash code for the current .
-
-
-
-
- Returns a that represents this instance.
-
-
- A that represents this instance.
-
-
-
-
- Returns a that represents this instance.
-
- The format.
-
- A that represents this instance.
-
-
-
-
- Returns a that represents this instance.
-
- The format provider.
-
- A that represents this instance.
-
-
-
-
- Returns a that represents this instance.
-
- The format.
- The format provider.
-
- A that represents this instance.
-
-
-
-
- Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
-
- An object to compare with this instance.
-
- A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings:
- Value
- Meaning
- Less than zero
- This instance is less than .
- Zero
- This instance is equal to .
- Greater than zero
- This instance is greater than .
-
-
- is not the same type as this instance.
-
-
-
-
- Specifies metadata property handling options for the .
-
-
-
-
- Read metadata properties located at the start of a JSON object.
-
-
-
-
- Read metadata properties located anywhere in a JSON object. Note that this setting will impact performance.
-
-
-
-
- Do not try to read metadata properties.
-
-
-
-
- Represents a trace writer that writes to the application's instances.
-
-
-
-
- Gets the that will be used to filter the trace messages passed to the writer.
- For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
-
-
- The that will be used to filter the trace messages passed to the writer.
-
-
-
-
- Writes the specified trace level, message and optional exception.
-
- The at which to write this trace.
- The trace message.
- The trace exception. This parameter is optional.
-
-
-
- Provides methods to get attributes.
-
-
-
-
- Returns a collection of all of the attributes, or an empty collection if there are no attributes.
-
- When true, look up the hierarchy chain for the inherited custom attribute.
- A collection of s, or an empty collection.
-
-
-
- Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
-
- The type of the attributes.
- When true, look up the hierarchy chain for the inherited custom attribute.
- A collection of s, or an empty collection.
-
-
-
- Represents a trace writer.
-
-
-
-
- Gets the that will be used to filter the trace messages passed to the writer.
- For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
-
- The that will be used to filter the trace messages passed to the writer.
-
-
-
- Writes the specified trace level, message and optional exception.
-
- The at which to write this trace.
- The trace message.
- The trace exception. This parameter is optional.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets or sets the default collection items .
-
- The converter.
-
-
-
- Gets or sets a value indicating whether the collection items preserve object references.
-
- true if collection items preserve object references; otherwise, false.
-
-
-
- Gets or sets the collection item reference loop handling.
-
- The reference loop handling.
-
-
-
- Gets or sets the collection item type name handling.
-
- The type name handling.
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Represents a trace writer that writes to memory. When the trace message limit is
- reached then old trace messages will be removed as new messages are added.
-
-
-
-
- Gets the that will be used to filter the trace messages passed to the writer.
- For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
-
-
- The that will be used to filter the trace messages passed to the writer.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Writes the specified trace level, message and optional exception.
-
- The at which to write this trace.
- The trace message.
- The trace exception. This parameter is optional.
-
-
-
- Returns an enumeration of the most recent trace messages.
-
- An enumeration of the most recent trace messages.
-
-
-
- Returns a of the most recent trace messages.
-
-
- A of the most recent trace messages.
-
-
-
-
- Provides methods to get attributes from a , , or .
-
-
-
-
- Initializes a new instance of the class.
-
- The instance to get attributes for. This parameter should be a , , or .
-
-
-
- Returns a collection of all of the attributes, or an empty collection if there are no attributes.
-
- When true, look up the hierarchy chain for the inherited custom attribute.
- A collection of s, or an empty collection.
-
-
-
- Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
-
- The type of the attributes.
- When true, look up the hierarchy chain for the inherited custom attribute.
- A collection of s, or an empty collection.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets or sets the ISerializable object constructor.
-
- The ISerializable object constructor.
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Provides data for the Error event.
-
-
-
-
- Gets the current object the error event is being raised against.
-
- The current object the error event is being raised against.
-
-
-
- Gets the error context.
-
- The error context.
-
-
-
- Initializes a new instance of the class.
-
- The current object.
- The error context.
-
-
-
- Resolves member mappings for a type, camel casing property names.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Resolves the name of the property.
-
- Name of the property.
- The property name camel cased.
-
-
-
- Used by to resolves a for a given .
-
-
-
-
- Gets a value indicating whether members are being get and set using dynamic code generation.
- This value is determined by the runtime permissions available.
-
-
- true if using dynamic code generation; otherwise, false.
-
-
-
-
- Gets or sets the default members search flags.
-
- The default members search flags.
-
-
-
- Gets or sets a value indicating whether compiler generated members should be serialized.
-
-
- true if serialized compiler generated members; otherwise, false.
-
-
-
-
- Gets or sets a value indicating whether to ignore the interface when serializing and deserializing types.
-
-
- true if the interface will be ignored when serializing and deserializing types; otherwise, false.
-
-
-
-
- Gets or sets a value indicating whether to ignore the attribute when serializing and deserializing types.
-
-
- true if the attribute will be ignored when serializing and deserializing types; otherwise, false.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
-
- If set to true the will use a cached shared with other resolvers of the same type.
- Sharing the cache will significantly improve performance with multiple resolver instances because expensive reflection will only
- happen once. This setting can cause unexpected behavior if different instances of the resolver are suppose to produce different
- results. When set to false it is highly recommended to reuse instances with the .
-
-
-
-
- Resolves the contract for a given type.
-
- The type to resolve a contract for.
- The contract for a given type.
-
-
-
- Gets the serializable members for the type.
-
- The type to get serializable members for.
- The serializable members for the type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates the constructor parameters.
-
- The constructor to create properties for.
- The type's member properties.
- Properties for the given .
-
-
-
- Creates a for the given .
-
- The matching member property.
- The constructor parameter.
- A created for the given .
-
-
-
- Resolves the default for the contract.
-
- Type of the object.
- The contract's default .
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Determines which contract type is created for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates properties for the given .
-
- The type to create properties for.
- /// The member serialization mode for the type.
- Properties for the given .
-
-
-
- Creates the used by the serializer to get and set values from a member.
-
- The member.
- The used by the serializer to get and set values from a member.
-
-
-
- Creates a for the given .
-
- The member's parent .
- The member to create a for.
- A created for the given .
-
-
-
- Resolves the name of the property.
-
- Name of the property.
- Resolved name of the property.
-
-
-
- Resolves the key of the dictionary. By default is used to resolve dictionary keys.
-
- Key of the dictionary.
- Resolved key of the dictionary.
-
-
-
- Gets the resolved name of the property.
-
- Name of the property.
- Name of the property.
-
-
-
- The default serialization binder used when resolving and loading classes from type names.
-
-
-
-
- When overridden in a derived class, controls the binding of a serialized object to a type.
-
- Specifies the name of the serialized object.
- Specifies the name of the serialized object.
-
- The type of the object the formatter creates a new instance of.
-
-
-
-
- Provides information surrounding an error.
-
-
-
-
- Gets the error.
-
- The error.
-
-
-
- Gets the original object that caused the error.
-
- The original object that caused the error.
-
-
-
- Gets the member that caused the error.
-
- The member that caused the error.
-
-
-
- Gets the path of the JSON location where the error occurred.
-
- The path of the JSON location where the error occurred.
-
-
-
- Gets or sets a value indicating whether this is handled.
-
- true if handled; otherwise, false.
-
-
-
- Used by to resolves a for a given .
-
-
-
-
-
-
-
-
- Resolves the contract for a given type.
-
- The type to resolve a contract for.
- The contract for a given type.
-
-
-
- Provides methods to get and set values.
-
-
-
-
- Sets the value.
-
- The target to set the value on.
- The value to set on the target.
-
-
-
- Gets the value.
-
- The target to get the value from.
- The value.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets the of the collection items.
-
- The of the collection items.
-
-
-
- Gets a value indicating whether the collection type is a multidimensional array.
-
- true if the collection type is a multidimensional array; otherwise, false.
-
-
-
- Gets or sets the function used to create the object. When set this function will override .
-
- The function used to create the object.
-
-
-
- Gets a value indicating whether the creator has a parameter with the collection values.
-
- true if the creator has a parameter with the collection values; otherwise, false.
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Handles serialization callback events.
-
- The object that raised the callback event.
- The streaming context.
-
-
-
- Handles serialization error callback events.
-
- The object that raised the callback event.
- The streaming context.
- The error context.
-
-
-
- Sets extension data for an object during deserialization.
-
- The object to set extension data on.
- The extension data key.
- The extension data value.
-
-
-
- Gets extension data for an object during serialization.
-
- The object to set extension data on.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets the underlying type for the contract.
-
- The underlying type for the contract.
-
-
-
- Gets or sets the type created during deserialization.
-
- The type created during deserialization.
-
-
-
- Gets or sets whether this type contract is serialized as a reference.
-
- Whether this type contract is serialized as a reference.
-
-
-
- Gets or sets the default for this contract.
-
- The converter.
-
-
-
- Gets or sets all methods called immediately after deserialization of the object.
-
- The methods called immediately after deserialization of the object.
-
-
-
- Gets or sets all methods called during deserialization of the object.
-
- The methods called during deserialization of the object.
-
-
-
- Gets or sets all methods called after serialization of the object graph.
-
- The methods called after serialization of the object graph.
-
-
-
- Gets or sets all methods called before serialization of the object.
-
- The methods called before serialization of the object.
-
-
-
- Gets or sets all method called when an error is thrown during the serialization of the object.
-
- The methods called when an error is thrown during the serialization of the object.
-
-
-
- Gets or sets the method called immediately after deserialization of the object.
-
- The method called immediately after deserialization of the object.
-
-
-
- Gets or sets the method called during deserialization of the object.
-
- The method called during deserialization of the object.
-
-
-
- Gets or sets the method called after serialization of the object graph.
-
- The method called after serialization of the object graph.
-
-
-
- Gets or sets the method called before serialization of the object.
-
- The method called before serialization of the object.
-
-
-
- Gets or sets the method called when an error is thrown during the serialization of the object.
-
- The method called when an error is thrown during the serialization of the object.
-
-
-
- Gets or sets the default creator method used to create the object.
-
- The default creator method used to create the object.
-
-
-
- Gets or sets a value indicating whether the default creator is non public.
-
- true if the default object creator is non-public; otherwise, false.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets or sets the property name resolver.
-
- The property name resolver.
-
-
-
- Gets or sets the dictionary key resolver.
-
- The dictionary key resolver.
-
-
-
- Gets the of the dictionary keys.
-
- The of the dictionary keys.
-
-
-
- Gets the of the dictionary values.
-
- The of the dictionary values.
-
-
-
- Gets or sets the function used to create the object. When set this function will override .
-
- The function used to create the object.
-
-
-
- Gets a value indicating whether the creator has a parameter with the dictionary values.
-
- true if the creator has a parameter with the dictionary values; otherwise, false.
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Maps a JSON property to a .NET member or constructor parameter.
-
-
-
-
- Gets or sets the name of the property.
-
- The name of the property.
-
-
-
- Gets or sets the type that declared this property.
-
- The type that declared this property.
-
-
-
- Gets or sets the order of serialization of a member.
-
- The numeric order of serialization.
-
-
-
- Gets or sets the name of the underlying member or parameter.
-
- The name of the underlying member or parameter.
-
-
-
- Gets the that will get and set the during serialization.
-
- The that will get and set the during serialization.
-
-
-
- Gets or sets the for this property.
-
- The for this property.
-
-
-
- Gets or sets the type of the property.
-
- The type of the property.
-
-
-
- Gets or sets the for the property.
- If set this converter takes presidence over the contract converter for the property type.
-
- The converter.
-
-
-
- Gets or sets the member converter.
-
- The member converter.
-
-
-
- Gets or sets a value indicating whether this is ignored.
-
- true if ignored; otherwise, false.
-
-
-
- Gets or sets a value indicating whether this is readable.
-
- true if readable; otherwise, false.
-
-
-
- Gets or sets a value indicating whether this is writable.
-
- true if writable; otherwise, false.
-
-
-
- Gets or sets a value indicating whether this has a member attribute.
-
- true if has a member attribute; otherwise, false.
-
-
-
- Gets the default value.
-
- The default value.
-
-
-
- Gets or sets a value indicating whether this is required.
-
- A value indicating whether this is required.
-
-
-
- Gets or sets a value indicating whether this property preserves object references.
-
-
- true if this instance is reference; otherwise, false.
-
-
-
-
- Gets or sets the property null value handling.
-
- The null value handling.
-
-
-
- Gets or sets the property default value handling.
-
- The default value handling.
-
-
-
- Gets or sets the property reference loop handling.
-
- The reference loop handling.
-
-
-
- Gets or sets the property object creation handling.
-
- The object creation handling.
-
-
-
- Gets or sets or sets the type name handling.
-
- The type name handling.
-
-
-
- Gets or sets a predicate used to determine whether the property should be serialize.
-
- A predicate used to determine whether the property should be serialize.
-
-
-
- Gets or sets a predicate used to determine whether the property should be deserialized.
-
- A predicate used to determine whether the property should be deserialized.
-
-
-
- Gets or sets a predicate used to determine whether the property should be serialized.
-
- A predicate used to determine whether the property should be serialized.
-
-
-
- Gets or sets an action used to set whether the property has been deserialized.
-
- An action used to set whether the property has been deserialized.
-
-
-
- Returns a that represents this instance.
-
-
- A that represents this instance.
-
-
-
-
- Gets or sets the converter used when serializing the property's collection items.
-
- The collection's items converter.
-
-
-
- Gets or sets whether this property's collection items are serialized as a reference.
-
- Whether this property's collection items are serialized as a reference.
-
-
-
- Gets or sets the the type name handling used when serializing the property's collection items.
-
- The collection's items type name handling.
-
-
-
- Gets or sets the the reference loop handling used when serializing the property's collection items.
-
- The collection's items reference loop handling.
-
-
-
- A collection of objects.
-
-
-
-
- Initializes a new instance of the class.
-
- The type.
-
-
-
- When implemented in a derived class, extracts the key from the specified element.
-
- The element from which to extract the key.
- The key for the specified element.
-
-
-
- Adds a object.
-
- The property to add to the collection.
-
-
-
- Gets the closest matching object.
- First attempts to get an exact case match of propertyName and then
- a case insensitive match.
-
- Name of the property.
- A matching property if found.
-
-
-
- Gets a property by property name.
-
- The name of the property to get.
- Type property name string comparison.
- A matching property if found.
-
-
-
- Used to resolve references when serializing and deserializing JSON by the .
-
-
-
-
- Resolves a reference to its object.
-
- The serialization context.
- The reference to resolve.
- The object that
-
-
-
- Gets the reference for the sepecified object.
-
- The serialization context.
- The object to get a reference for.
- The reference to the object.
-
-
-
- Determines whether the specified object is referenced.
-
- The serialization context.
- The object to test for a reference.
-
- true if the specified object is referenced; otherwise, false.
-
-
-
-
- Adds a reference to the specified object.
-
- The serialization context.
- The reference.
- The object to reference.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets or sets the object member serialization.
-
- The member object serialization.
-
-
-
- Gets or sets a value that indicates whether the object's properties are required.
-
-
- A value indicating whether the object's properties are required.
-
-
-
-
- Gets the object's properties.
-
- The object's properties.
-
-
-
- Gets the constructor parameters required for any non-default constructor
-
-
-
-
- Gets a collection of instances that define the parameters used with .
-
-
-
-
- Gets or sets the override constructor used to create the object.
- This is set when a constructor is marked up using the
- JsonConstructor attribute.
-
- The override constructor.
-
-
-
- Gets or sets the parametrized constructor used to create the object.
-
- The parametrized constructor.
-
-
-
- Gets or sets the function used to create the object. When set this function will override .
- This function is called with a collection of arguments which are defined by the collection.
-
- The function used to create the object.
-
-
-
- Gets or sets the extension data setter.
-
-
-
-
- Gets or sets the extension data getter.
-
-
-
-
- Gets or sets the extension data value type.
-
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Lookup and create an instance of the JsonConverter type described by the argument.
-
- The JsonConverter type to create.
- Optional arguments to pass to an initializing constructor of the JsonConverter.
- If null, the default constructor is used.
-
-
-
- Create a factory function that can be used to create instances of a JsonConverter described by the
- argument type. The returned function can then be used to either invoke the converter's default ctor, or any
- parameterized constructors by way of an object array.
-
-
-
-
- Get and set values for a using reflection.
-
-
-
-
- Initializes a new instance of the class.
-
- The member info.
-
-
-
- Sets the value.
-
- The target to set the value on.
- The value to set on the target.
-
-
-
- Gets the value.
-
- The target to get the value from.
- The value.
-
-
-
- When applied to a method, specifies that the method is called when an error occurs serializing an object.
-
-
-
-
- Represents a method that constructs an object.
-
- The object type to create.
-
-
-
- Specifies how strings are escaped when writing JSON text.
-
-
-
-
- Only control characters (e.g. newline) are escaped.
-
-
-
-
- All non-ASCII and control characters (e.g. newline) are escaped.
-
-
-
-
- HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped.
-
-
-
-
- Converts the value to the specified type. If the value is unable to be converted, the
- value is checked whether it assignable to the specified type.
-
- The value to convert.
- The culture to use when converting.
- The type to convert or cast the value to.
-
- The converted type. If conversion was unsuccessful, the initial value
- is returned if assignable to the target type.
-
-
-
-
- Gets a dictionary of the names and values of an Enum type.
-
-
-
-
-
- Gets a dictionary of the names and values of an Enum type.
-
- The enum type to get names and values for.
-
-
-
-
- Builds a string. Unlike StringBuilder this class lets you reuse it's internal buffer.
-
-
-
-
- Determines whether the collection is null or empty.
-
- The collection.
-
- true if the collection is null or empty; otherwise, false.
-
-
-
-
- Adds the elements of the specified collection to the specified generic IList.
-
- The list to add to.
- The collection of elements to add.
-
-
-
- Gets the type of the typed collection's items.
-
- The type.
- The type of the typed collection's items.
-
-
-
- Gets the member's underlying type.
-
- The member.
- The underlying type of the member.
-
-
-
- Determines whether the member is an indexed property.
-
- The member.
-
- true if the member is an indexed property; otherwise, false.
-
-
-
-
- Determines whether the property is an indexed property.
-
- The property.
-
- true if the property is an indexed property; otherwise, false.
-
-
-
-
- Gets the member's value on the object.
-
- The member.
- The target object.
- The member's value on the object.
-
-
-
- Sets the member's value on the target object.
-
- The member.
- The target.
- The value.
-
-
-
- Determines whether the specified MemberInfo can be read.
-
- The MemberInfo to determine whether can be read.
- /// if set to true then allow the member to be gotten non-publicly.
-
- true if the specified MemberInfo can be read; otherwise, false.
-
-
-
-
- Determines whether the specified MemberInfo can be set.
-
- The MemberInfo to determine whether can be set.
- if set to true then allow the member to be set non-publicly.
- if set to true then allow the member to be set if read-only.
-
- true if the specified MemberInfo can be set; otherwise, false.
-
-
-
-
- Determines whether the string is all white space. Empty string will return false.
-
- The string to test whether it is all white space.
-
- true if the string is all white space; otherwise, false.
-
-
-
-
- Nulls an empty string.
-
- The string.
- Null if the string was null, otherwise the string unchanged.
-
-
-
- Indicating whether a property is required.
-
-
-
-
- The property is not required. The default state.
-
-
-
-
- The property must be defined in JSON but can be a null value.
-
-
-
-
- The property must be defined in JSON and cannot be a null value.
-
-
-
-
- The property is not required but it cannot be a null value.
-
-
-
-
- Specifies reference handling options for the .
- Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement ISerializable.
-
-
-
-
-
-
-
- Do not preserve references when serializing types.
-
-
-
-
- Preserve references when serializing into a JSON object structure.
-
-
-
-
- Preserve references when serializing into a JSON array structure.
-
-
-
-
- Preserve references when serializing.
-
-
-
-
- Provides an interface to enable a class to return line and position information.
-
-
-
-
- Gets a value indicating whether the class can return line information.
-
-
- true if LineNumber and LinePosition can be provided; otherwise, false.
-
-
-
-
- Gets the current line number.
-
- The current line number or 0 if no line information is available (for example, HasLineInfo returns false).
-
-
-
- Gets the current line position.
-
- The current line position or 0 if no line information is available (for example, HasLineInfo returns false).
-
-
-
- Instructs the how to serialize the collection.
-
-
-
-
- Gets or sets a value indicating whether null items are allowed in the collection.
-
- true if null items are allowed in the collection; otherwise, false.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with a flag indicating whether the array can contain null items
-
- A flag indicating whether the array can contain null items.
-
-
-
- Initializes a new instance of the class with the specified container Id.
-
- The container Id.
-
-
-
- Instructs the how to serialize the object.
-
-
-
-
- Gets or sets the id.
-
- The id.
-
-
-
- Gets or sets the title.
-
- The title.
-
-
-
- Gets or sets the description.
-
- The description.
-
-
-
- Gets the collection's items converter.
-
- The collection's items converter.
-
-
-
- The parameter list to use when constructing the JsonConverter described by ItemConverterType.
- If null, the default constructor is used.
- When non-null, there must be a constructor defined in the JsonConverter that exactly matches the number,
- order, and type of these parameters.
-
-
- [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
-
-
-
-
- Gets or sets a value that indicates whether to preserve object references.
-
-
- true to keep object reference; otherwise, false. The default is false.
-
-
-
-
- Gets or sets a value that indicates whether to preserve collection's items references.
-
-
- true to keep collection's items object references; otherwise, false. The default is false.
-
-
-
-
- Gets or sets the reference loop handling used when serializing the collection's items.
-
- The reference loop handling.
-
-
-
- Gets or sets the type name handling used when serializing the collection's items.
-
- The type name handling.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with the specified container Id.
-
- The container Id.
-
-
-
- Specifies default value handling options for the .
-
-
-
-
-
-
-
-
- Include members where the member value is the same as the member's default value when serializing objects.
- Included members are written to JSON. Has no effect when deserializing.
-
-
-
-
- Ignore members where the member value is the same as the member's default value when serializing objects
- so that is is not written to JSON.
- This option will ignore all default values (e.g. null for objects and nullable types; 0 for integers,
- decimals and floating point numbers; and false for booleans). The default value ignored can be changed by
- placing the on the property.
-
-
-
-
- Members with a default value but no JSON will be set to their default value when deserializing.
-
-
-
-
- Ignore members where the member value is the same as the member's default value when serializing objects
- and sets members to their default value when deserializing.
-
-
-
-
- Instructs the to use the specified when serializing the member or class.
-
-
-
-
- Gets the of the converter.
-
- The of the converter.
-
-
-
- The parameter list to use when constructing the JsonConverter described by ConverterType.
- If null, the default constructor is used.
-
-
-
-
- Initializes a new instance of the class.
-
- Type of the converter.
-
-
-
- Initializes a new instance of the class.
-
- Type of the converter.
- Parameter list to use when constructing the JsonConverter. Can be null.
-
-
-
- Instructs the how to serialize the object.
-
-
-
-
- Gets or sets the member serialization.
-
- The member serialization.
-
-
-
- Gets or sets a value that indicates whether the object's properties are required.
-
-
- A value indicating whether the object's properties are required.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with the specified member serialization.
-
- The member serialization.
-
-
-
- Initializes a new instance of the class with the specified container Id.
-
- The container Id.
-
-
-
- Specifies the settings on a object.
-
-
-
-
- Gets or sets how reference loops (e.g. a class referencing itself) is handled.
-
- Reference loop handling.
-
-
-
- Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization.
-
- Missing member handling.
-
-
-
- Gets or sets how objects are created during deserialization.
-
- The object creation handling.
-
-
-
- Gets or sets how null values are handled during serialization and deserialization.
-
- Null value handling.
-
-
-
- Gets or sets how null default are handled during serialization and deserialization.
-
- The default value handling.
-
-
-
- Gets or sets a collection that will be used during serialization.
-
- The converters.
-
-
-
- Gets or sets how object references are preserved by the serializer.
-
- The preserve references handling.
-
-
-
- Gets or sets how type name writing and reading is handled by the serializer.
-
-
- should be used with caution when your application deserializes JSON from an external source.
- Incoming types should be validated with a custom
- when deserializing with a value other than TypeNameHandling.None.
-
- The type name handling.
-
-
-
- Gets or sets how metadata properties are used during deserialization.
-
- The metadata properties handling.
-
-
-
- Gets or sets how a type name assembly is written and resolved by the serializer.
-
- The type name assembly format.
-
-
-
- Gets or sets how constructors are used during deserialization.
-
- The constructor handling.
-
-
-
- Gets or sets the contract resolver used by the serializer when
- serializing .NET objects to JSON and vice versa.
-
- The contract resolver.
-
-
-
- Gets or sets the equality comparer used by the serializer when comparing references.
-
- The equality comparer.
-
-
-
- Gets or sets the used by the serializer when resolving references.
-
- The reference resolver.
-
-
-
- Gets or sets a function that creates the used by the serializer when resolving references.
-
- A function that creates the used by the serializer when resolving references.
-
-
-
- Gets or sets the used by the serializer when writing trace messages.
-
- The trace writer.
-
-
-
- Gets or sets the used by the serializer when resolving type names.
-
- The binder.
-
-
-
- Gets or sets the error handler called during serialization and deserialization.
-
- The error handler called during serialization and deserialization.
-
-
-
- Gets or sets the used by the serializer when invoking serialization callback methods.
-
- The context.
-
-
-
- Get or set how and values are formatted when writing JSON text, and the expected date format when reading JSON text.
-
-
-
-
- Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a .
-
-
-
-
- Indicates how JSON text output is formatted.
-
-
-
-
- Get or set how dates are written to JSON text.
-
-
-
-
- Get or set how time zones are handling during serialization and deserialization.
-
-
-
-
- Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
-
-
-
-
- Get or set how special floating point numbers, e.g. ,
- and ,
- are written as JSON.
-
-
-
-
- Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
-
-
-
-
- Get or set how strings are escaped when writing JSON text.
-
-
-
-
- Gets or sets the culture used when reading JSON. Defaults to .
-
-
-
-
- Gets a value indicating whether there will be a check for additional content after deserializing an object.
-
-
- true if there will be a check for additional content after deserializing an object; otherwise, false.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Specifies the member serialization options for the .
-
-
-
-
- All public members are serialized by default. Members can be excluded using or .
- This is the default member serialization mode.
-
-
-
-
- Only members marked with or are serialized.
- This member serialization mode can also be set by marking the class with .
-
-
-
-
- All public and private fields are serialized. Members can be excluded using or .
- This member serialization mode can also be set by marking the class with
- and setting IgnoreSerializableAttribute on to false.
-
-
-
-
- Specifies how object creation is handled by the .
-
-
-
-
- Reuse existing objects, create new objects when needed.
-
-
-
-
- Only reuse existing objects.
-
-
-
-
- Always create new objects.
-
-
-
-
- Represents a reader that provides fast, non-cached, forward-only access to JSON text data.
-
-
-
-
- Initializes a new instance of the class with the specified .
-
- The TextReader containing the XML data to read.
-
-
-
- Gets or sets the reader's character buffer pool.
-
-
-
-
- Reads the next JSON token from the stream.
-
-
- true if the next token was read successfully; false if there are no more tokens to read.
-
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a [].
-
- A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Changes the state to closed.
-
-
-
-
- Gets a value indicating whether the class can return line information.
-
-
- true if LineNumber and LinePosition can be provided; otherwise, false.
-
-
-
-
- Gets the current line number.
-
-
- The current line number or 0 if no line information is available (for example, HasLineInfo returns false).
-
-
-
-
- Gets the current line position.
-
-
- The current line position or 0 if no line information is available (for example, HasLineInfo returns false).
-
-
-
-
- Instructs the to always serialize the member with the specified name.
-
-
-
-
- Gets or sets the converter used when serializing the property's collection items.
-
- The collection's items converter.
-
-
-
- The parameter list to use when constructing the JsonConverter described by ItemConverterType.
- If null, the default constructor is used.
- When non-null, there must be a constructor defined in the JsonConverter that exactly matches the number,
- order, and type of these parameters.
-
-
- [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
-
-
-
-
- Gets or sets the null value handling used when serializing this property.
-
- The null value handling.
-
-
-
- Gets or sets the default value handling used when serializing this property.
-
- The default value handling.
-
-
-
- Gets or sets the reference loop handling used when serializing this property.
-
- The reference loop handling.
-
-
-
- Gets or sets the object creation handling used when deserializing this property.
-
- The object creation handling.
-
-
-
- Gets or sets the type name handling used when serializing this property.
-
- The type name handling.
-
-
-
- Gets or sets whether this property's value is serialized as a reference.
-
- Whether this property's value is serialized as a reference.
-
-
-
- Gets or sets the order of serialization of a member.
-
- The numeric order of serialization.
-
-
-
- Gets or sets a value indicating whether this property is required.
-
-
- A value indicating whether this property is required.
-
-
-
-
- Gets or sets the name of the property.
-
- The name of the property.
-
-
-
- Gets or sets the the reference loop handling used when serializing the property's collection items.
-
- The collection's items reference loop handling.
-
-
-
- Gets or sets the the type name handling used when serializing the property's collection items.
-
- The collection's items type name handling.
-
-
-
- Gets or sets whether this property's collection items are serialized as a reference.
-
- Whether this property's collection items are serialized as a reference.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with the specified name.
-
- Name of the property.
-
-
-
- Instructs the not to serialize the public field or public read/write property value.
-
-
-
-
- Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
-
-
-
-
- Gets or sets the writer's character array pool.
-
-
-
-
- Gets or sets how many IndentChars to write for each level in the hierarchy when is set to Formatting.Indented.
-
-
-
-
- Gets or sets which character to use to quote attribute values.
-
-
-
-
- Gets or sets which character to use for indenting when is set to Formatting.Indented.
-
-
-
-
- Gets or sets a value indicating whether object names will be surrounded with quotes.
-
-
-
-
- Creates an instance of the JsonWriter class using the specified .
-
- The TextWriter to write to.
-
-
-
- Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
-
-
-
-
- Closes this stream and the underlying stream.
-
-
-
-
- Writes the beginning of a JSON object.
-
-
-
-
- Writes the beginning of a JSON array.
-
-
-
-
- Writes the start of a constructor with the given name.
-
- The name of the constructor.
-
-
-
- Writes the specified end token.
-
- The end token to write.
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
- A flag to indicate whether the text should be escaped when it is written as a JSON property name.
-
-
-
- Writes indent characters.
-
-
-
-
- Writes the JSON value delimiter.
-
-
-
-
- Writes an indent space.
-
-
-
-
- Writes a value.
- An error will raised if the value cannot be written as a single JSON token.
-
- The value to write.
-
-
-
- Writes a null value.
-
-
-
-
- Writes an undefined value.
-
-
-
-
- Writes raw JSON.
-
- The raw JSON to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value.
-
- The [] value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes out a comment /*...*/ containing the specified text.
-
- Text to place inside the comment.
-
-
-
- Writes out the given white space.
-
- The string of white space characters.
-
-
-
- The exception thrown when an error occurs while reading JSON text.
-
-
-
-
- Gets the path to the JSON where the error occurred.
-
- The path to the JSON where the error occurred.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class
- with a specified error message.
-
- The error message that explains the reason for the exception.
-
-
-
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
-
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
- The parameter is null.
- The class name is null or is zero (0).
-
-
-
- The exception thrown when an error occurs while reading JSON text.
-
-
-
-
- Gets the line number indicating where the error occurred.
-
- The line number indicating where the error occurred.
-
-
-
- Gets the line position indicating where the error occurred.
-
- The line position indicating where the error occurred.
-
-
-
- Gets the path to the JSON where the error occurred.
-
- The path to the JSON where the error occurred.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class
- with a specified error message.
-
- The error message that explains the reason for the exception.
-
-
-
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
-
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
- The parameter is null.
- The class name is null or is zero (0).
-
-
-
- Converts an object to and from JSON.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Gets a value indicating whether this can read JSON.
-
- true if this can read JSON; otherwise, false.
-
-
-
- Gets a value indicating whether this can write JSON.
-
- true if this can write JSON; otherwise, false.
-
-
-
- Represents a collection of .
-
-
-
-
- Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
-
-
-
-
- Specifies the state of the reader.
-
-
-
-
- The Read method has not been called.
-
-
-
-
- The end of the file has been reached successfully.
-
-
-
-
- Reader is at a property.
-
-
-
-
- Reader is at the start of an object.
-
-
-
-
- Reader is in an object.
-
-
-
-
- Reader is at the start of an array.
-
-
-
-
- Reader is in an array.
-
-
-
-
- The Close method has been called.
-
-
-
-
- Reader has just read a value.
-
-
-
-
- Reader is at the start of a constructor.
-
-
-
-
- Reader in a constructor.
-
-
-
-
- An error occurred that prevents the read operation from continuing.
-
-
-
-
- The end of the file has been reached successfully.
-
-
-
-
- Gets the current reader state.
-
- The current reader state.
-
-
-
- Gets or sets a value indicating whether the underlying stream or
- should be closed when the reader is closed.
-
-
- true to close the underlying stream or when
- the reader is closed; otherwise false. The default is true.
-
-
-
-
- Gets or sets a value indicating whether multiple pieces of JSON content can
- be read from a continuous stream without erroring.
-
-
- true to support reading multiple pieces of JSON content; otherwise false. The default is false.
-
-
-
-
- Gets the quotation mark character used to enclose the value of a string.
-
-
-
-
- Get or set how time zones are handling when reading JSON.
-
-
-
-
- Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
-
-
-
-
- Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
-
-
-
-
- Get or set how custom date formatted strings are parsed when reading JSON.
-
-
-
-
- Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a .
-
-
-
-
- Gets the type of the current JSON token.
-
-
-
-
- Gets the text value of the current JSON token.
-
-
-
-
- Gets The Common Language Runtime (CLR) type for the current JSON token.
-
-
-
-
- Gets the depth of the current token in the JSON document.
-
- The depth of the current token in the JSON document.
-
-
-
- Gets the path of the current JSON token.
-
-
-
-
- Gets or sets the culture used when reading JSON. Defaults to .
-
-
-
-
- Initializes a new instance of the class with the specified .
-
-
-
-
- Reads the next JSON token from the stream.
-
- true if the next token was read successfully; false if there are no more tokens to read.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a [].
-
- A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Skips the children of the current token.
-
-
-
-
- Sets the current token.
-
- The new token.
-
-
-
- Sets the current token and value.
-
- The new token.
- The value.
-
-
-
- Sets the state based on current token type.
-
-
-
-
- Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
-
-
-
-
- Releases unmanaged and - optionally - managed resources
-
- true to release both managed and unmanaged resources; false to release only unmanaged resources.
-
-
-
- Changes the to Closed.
-
-
-
-
- Provides methods for converting between common language runtime types and JSON types.
-
-
-
-
-
-
-
- Gets or sets a function that creates default .
- Default settings are automatically used by serialization methods on ,
- and and on .
- To serialize without using any default settings create a with
- .
-
-
-
-
- Represents JavaScript's boolean value true as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's boolean value false as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's null as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's undefined as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's positive infinity as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's negative infinity as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's NaN as a string. This field is read-only.
-
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation using the specified.
-
- The value to convert.
- The format the date will be converted to.
- The time zone handling when the date is converted to a string.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation using the specified.
-
- The value to convert.
- The format the date will be converted to.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- The string delimiter character.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- The string delimiter character.
- The string escape handling.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Serializes the specified object to a JSON string.
-
- The object to serialize.
- A JSON string representation of the object.
-
-
-
- Serializes the specified object to a JSON string using formatting.
-
- The object to serialize.
- Indicates how the output is formatted.
-
- A JSON string representation of the object.
-
-
-
-
- Serializes the specified object to a JSON string using a collection of .
-
- The object to serialize.
- A collection converters used while serializing.
- A JSON string representation of the object.
-
-
-
- Serializes the specified object to a JSON string using formatting and a collection of .
-
- The object to serialize.
- Indicates how the output is formatted.
- A collection converters used while serializing.
- A JSON string representation of the object.
-
-
-
- Serializes the specified object to a JSON string using .
-
- The object to serialize.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- A JSON string representation of the object.
-
-
-
-
- Serializes the specified object to a JSON string using a type, formatting and .
-
- The object to serialize.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
-
- A JSON string representation of the object.
-
-
-
-
- Serializes the specified object to a JSON string using formatting and .
-
- The object to serialize.
- Indicates how the output is formatted.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- A JSON string representation of the object.
-
-
-
-
- Serializes the specified object to a JSON string using a type, formatting and .
-
- The object to serialize.
- Indicates how the output is formatted.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
-
- A JSON string representation of the object.
-
-
-
-
- Deserializes the JSON to a .NET object.
-
- The JSON to deserialize.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to a .NET object using .
-
- The JSON to deserialize.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type.
-
- The JSON to deserialize.
- The of object being deserialized.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type.
-
- The type of the object to deserialize to.
- The JSON to deserialize.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the given anonymous type.
-
-
- The anonymous type to deserialize to. This can't be specified
- traditionally and must be infered from the anonymous type passed
- as a parameter.
-
- The JSON to deserialize.
- The anonymous type object.
- The deserialized anonymous type from the JSON string.
-
-
-
- Deserializes the JSON to the given anonymous type using .
-
-
- The anonymous type to deserialize to. This can't be specified
- traditionally and must be infered from the anonymous type passed
- as a parameter.
-
- The JSON to deserialize.
- The anonymous type object.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized anonymous type from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type using a collection of .
-
- The type of the object to deserialize to.
- The JSON to deserialize.
- Converters to use while deserializing.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type using .
-
- The type of the object to deserialize to.
- The object to deserialize.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type using a collection of .
-
- The JSON to deserialize.
- The type of the object to deserialize.
- Converters to use while deserializing.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type using .
-
- The JSON to deserialize.
- The type of the object to deserialize to.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized object from the JSON string.
-
-
-
- Populates the object with values from the JSON string.
-
- The JSON to populate values from.
- The target object to populate values onto.
-
-
-
- Populates the object with values from the JSON string using .
-
- The JSON to populate values from.
- The target object to populate values onto.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
-
-
-
- Serializes the XML node to a JSON string.
-
- The node to serialize.
- A JSON string of the XmlNode.
-
-
-
- Serializes the XML node to a JSON string using formatting.
-
- The node to serialize.
- Indicates how the output is formatted.
- A JSON string of the XmlNode.
-
-
-
- Serializes the XML node to a JSON string using formatting and omits the root object if is true.
-
- The node to serialize.
- Indicates how the output is formatted.
- Omits writing the root object.
- A JSON string of the XmlNode.
-
-
-
- Deserializes the XmlNode from a JSON string.
-
- The JSON string.
- The deserialized XmlNode
-
-
-
- Deserializes the XmlNode from a JSON string nested in a root elment specified by .
-
- The JSON string.
- The name of the root element to append when deserializing.
- The deserialized XmlNode
-
-
-
- Deserializes the XmlNode from a JSON string nested in a root elment specified by
- and writes a .NET array attribute for collections.
-
- The JSON string.
- The name of the root element to append when deserializing.
-
- A flag to indicate whether to write the Json.NET array attribute.
- This attribute helps preserve arrays when converting the written XML back to JSON.
-
- The deserialized XmlNode
-
-
-
- Serializes the to a JSON string.
-
- The node to convert to JSON.
- A JSON string of the XNode.
-
-
-
- Serializes the to a JSON string using formatting.
-
- The node to convert to JSON.
- Indicates how the output is formatted.
- A JSON string of the XNode.
-
-
-
- Serializes the to a JSON string using formatting and omits the root object if is true.
-
- The node to serialize.
- Indicates how the output is formatted.
- Omits writing the root object.
- A JSON string of the XNode.
-
-
-
- Deserializes the from a JSON string.
-
- The JSON string.
- The deserialized XNode
-
-
-
- Deserializes the from a JSON string nested in a root elment specified by .
-
- The JSON string.
- The name of the root element to append when deserializing.
- The deserialized XNode
-
-
-
- Deserializes the from a JSON string nested in a root elment specified by
- and writes a .NET array attribute for collections.
-
- The JSON string.
- The name of the root element to append when deserializing.
-
- A flag to indicate whether to write the Json.NET array attribute.
- This attribute helps preserve arrays when converting the written XML back to JSON.
-
- The deserialized XNode
-
-
-
- The exception thrown when an error occurs during JSON serialization or deserialization.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class
- with a specified error message.
-
- The error message that explains the reason for the exception.
-
-
-
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
-
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
- The parameter is null.
- The class name is null or is zero (0).
-
-
-
- Serializes and deserializes objects into and from the JSON format.
- The enables you to control how objects are encoded into JSON.
-
-
-
-
- Occurs when the errors during serialization and deserialization.
-
-
-
-
- Gets or sets the used by the serializer when resolving references.
-
-
-
-
- Gets or sets the used by the serializer when resolving type names.
-
-
-
-
- Gets or sets the used by the serializer when writing trace messages.
-
- The trace writer.
-
-
-
- Gets or sets the equality comparer used by the serializer when comparing references.
-
- The equality comparer.
-
-
-
- Gets or sets how type name writing and reading is handled by the serializer.
-
-
- should be used with caution when your application deserializes JSON from an external source.
- Incoming types should be validated with a custom
- when deserializing with a value other than TypeNameHandling.None.
-
-
-
-
- Gets or sets how a type name assembly is written and resolved by the serializer.
-
- The type name assembly format.
-
-
-
- Gets or sets how object references are preserved by the serializer.
-
-
-
-
- Get or set how reference loops (e.g. a class referencing itself) is handled.
-
-
-
-
- Get or set how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization.
-
-
-
-
- Get or set how null values are handled during serialization and deserialization.
-
-
-
-
- Get or set how null default are handled during serialization and deserialization.
-
-
-
-
- Gets or sets how objects are created during deserialization.
-
- The object creation handling.
-
-
-
- Gets or sets how constructors are used during deserialization.
-
- The constructor handling.
-
-
-
- Gets or sets how metadata properties are used during deserialization.
-
- The metadata properties handling.
-
-
-
- Gets a collection that will be used during serialization.
-
- Collection that will be used during serialization.
-
-
-
- Gets or sets the contract resolver used by the serializer when
- serializing .NET objects to JSON and vice versa.
-
-
-
-
- Gets or sets the used by the serializer when invoking serialization callback methods.
-
- The context.
-
-
-
- Indicates how JSON text output is formatted.
-
-
-
-
- Get or set how dates are written to JSON text.
-
-
-
-
- Get or set how time zones are handling during serialization and deserialization.
-
-
-
-
- Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
-
-
-
-
- Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
-
-
-
-
- Get or set how special floating point numbers, e.g. ,
- and ,
- are written as JSON text.
-
-
-
-
- Get or set how strings are escaped when writing JSON text.
-
-
-
-
- Get or set how and values are formatted when writing JSON text, and the expected date format when reading JSON text.
-
-
-
-
- Gets or sets the culture used when reading JSON. Defaults to .
-
-
-
-
- Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a .
-
-
-
-
- Gets a value indicating whether there will be a check for additional JSON content after deserializing an object.
-
-
- true if there will be a check for additional JSON content after deserializing an object; otherwise, false.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Creates a new instance.
- The will not use default settings
- from .
-
-
- A new instance.
- The will not use default settings
- from .
-
-
-
-
- Creates a new instance using the specified .
- The will not use default settings
- from .
-
- The settings to be applied to the .
-
- A new instance using the specified .
- The will not use default settings
- from .
-
-
-
-
- Creates a new instance.
- The will use default settings
- from .
-
-
- A new instance.
- The will use default settings
- from .
-
-
-
-
- Creates a new instance using the specified .
- The will use default settings
- from as well as the specified .
-
- The settings to be applied to the .
-
- A new instance using the specified .
- The will use default settings
- from as well as the specified .
-
-
-
-
- Populates the JSON values onto the target object.
-
- The that contains the JSON structure to reader values from.
- The target object to populate values onto.
-
-
-
- Populates the JSON values onto the target object.
-
- The that contains the JSON structure to reader values from.
- The target object to populate values onto.
-
-
-
- Deserializes the JSON structure contained by the specified .
-
- The that contains the JSON structure to deserialize.
- The being deserialized.
-
-
-
- Deserializes the JSON structure contained by the specified
- into an instance of the specified type.
-
- The containing the object.
- The of object being deserialized.
- The instance of being deserialized.
-
-
-
- Deserializes the JSON structure contained by the specified
- into an instance of the specified type.
-
- The containing the object.
- The type of the object to deserialize.
- The instance of being deserialized.
-
-
-
- Deserializes the JSON structure contained by the specified
- into an instance of the specified type.
-
- The containing the object.
- The of object being deserialized.
- The instance of being deserialized.
-
-
-
- Serializes the specified and writes the JSON structure
- to a Stream using the specified .
-
- The used to write the JSON structure.
- The to serialize.
-
-
-
- Serializes the specified and writes the JSON structure
- to a Stream using the specified .
-
- The used to write the JSON structure.
- The to serialize.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
-
-
-
- Serializes the specified and writes the JSON structure
- to a Stream using the specified .
-
- The used to write the JSON structure.
- The to serialize.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
-
-
-
- Serializes the specified and writes the JSON structure
- to a Stream using the specified .
-
- The used to write the JSON structure.
- The to serialize.
-
-
-
- Specifies missing member handling options for the .
-
-
-
-
- Ignore a missing member and do not attempt to deserialize it.
-
-
-
-
- Throw a when a missing member is encountered during deserialization.
-
-
-
-
- Specifies null value handling options for the .
-
-
-
-
-
-
-
-
- Include null values when serializing and deserializing objects.
-
-
-
-
- Ignore null values when serializing and deserializing objects.
-
-
-
-
- Specifies reference loop handling options for the .
-
-
-
-
- Throw a when a loop is encountered.
-
-
-
-
- Ignore loop references and do not serialize.
-
-
-
-
- Serialize loop references.
-
-
-
-
- Specifies type name handling options for the .
-
-
- should be used with caution when your application deserializes JSON from an external source.
- Incoming types should be validated with a custom
- when deserializing with a value other than TypeNameHandling.None.
-
-
-
-
- Do not include the .NET type name when serializing types.
-
-
-
-
- Include the .NET type name when serializing into a JSON object structure.
-
-
-
-
- Include the .NET type name when serializing into a JSON array structure.
-
-
-
-
- Always include the .NET type name when serializing.
-
-
-
-
- Include the .NET type name when the type of the object being serialized is not the same as its declared type.
-
-
-
-
- Specifies the type of JSON token.
-
-
-
-
- This is returned by the if a method has not been called.
-
-
-
-
- An object start token.
-
-
-
-
- An array start token.
-
-
-
-
- A constructor start token.
-
-
-
-
- An object property name.
-
-
-
-
- A comment.
-
-
-
-
- Raw JSON.
-
-
-
-
- An integer.
-
-
-
-
- A float.
-
-
-
-
- A string.
-
-
-
-
- A boolean.
-
-
-
-
- A null token.
-
-
-
-
- An undefined token.
-
-
-
-
- An object end token.
-
-
-
-
- An array end token.
-
-
-
-
- A constructor end token.
-
-
-
-
- A Date.
-
-
-
-
- Byte data.
-
-
-
-
- Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
-
-
-
-
- Gets or sets a value indicating whether the underlying stream or
- should be closed when the writer is closed.
-
-
- true to close the underlying stream or when
- the writer is closed; otherwise false. The default is true.
-
-
-
-
- Gets the top.
-
- The top.
-
-
-
- Gets the state of the writer.
-
-
-
-
- Gets the path of the writer.
-
-
-
-
- Indicates how JSON text output is formatted.
-
-
-
-
- Get or set how dates are written to JSON text.
-
-
-
-
- Get or set how time zones are handling when writing JSON text.
-
-
-
-
- Get or set how strings are escaped when writing JSON text.
-
-
-
-
- Get or set how special floating point numbers, e.g. ,
- and ,
- are written to JSON text.
-
-
-
-
- Get or set how and values are formatting when writing JSON text.
-
-
-
-
- Gets or sets the culture used when writing JSON. Defaults to .
-
-
-
-
- Creates an instance of the JsonWriter class.
-
-
-
-
- Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
-
-
-
-
- Closes this stream and the underlying stream.
-
-
-
-
- Writes the beginning of a JSON object.
-
-
-
-
- Writes the end of a JSON object.
-
-
-
-
- Writes the beginning of a JSON array.
-
-
-
-
- Writes the end of an array.
-
-
-
-
- Writes the start of a constructor with the given name.
-
- The name of the constructor.
-
-
-
- Writes the end constructor.
-
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
- A flag to indicate whether the text should be escaped when it is written as a JSON property name.
-
-
-
- Writes the end of the current JSON object or array.
-
-
-
-
- Writes the current token and its children.
-
- The to read the token from.
-
-
-
- Writes the current token.
-
- The to read the token from.
- A flag indicating whether the current token's children should be written.
-
-
-
- Writes the token and its value.
-
- The to write.
-
- The value to write.
- A value is only required for tokens that have an associated value, e.g. the property name for .
- A null value can be passed to the method for token's that don't have a value, e.g. .
-
-
-
- Writes the token.
-
- The to write.
-
-
-
- Writes the specified end token.
-
- The end token to write.
-
-
-
- Writes indent characters.
-
-
-
-
- Writes the JSON value delimiter.
-
-
-
-
- Writes an indent space.
-
-
-
-
- Writes a null value.
-
-
-
-
- Writes an undefined value.
-
-
-
-
- Writes raw JSON without changing the writer's state.
-
- The raw JSON to write.
-
-
-
- Writes raw JSON where a value is expected and updates the writer's state.
-
- The raw JSON to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value.
-
- The [] value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
- An error will raised if the value cannot be written as a single JSON token.
-
- The value to write.
-
-
-
- Writes out a comment /*...*/ containing the specified text.
-
- Text to place inside the comment.
-
-
-
- Writes out the given white space.
-
- The string of white space characters.
-
-
-
- Releases unmanaged and - optionally - managed resources
-
- true to release both managed and unmanaged resources; false to release only unmanaged resources.
-
-
-
- Sets the state of the JsonWriter,
-
- The JsonToken being written.
- The value being written.
-
-
-
- Specifies the state of the .
-
-
-
-
- An exception has been thrown, which has left the in an invalid state.
- You may call the method to put the in the Closed state.
- Any other method calls results in an being thrown.
-
-
-
-
- The method has been called.
-
-
-
-
- An object is being written.
-
-
-
-
- A array is being written.
-
-
-
-
- A constructor is being written.
-
-
-
-
- A property is being written.
-
-
-
-
- A write method has not been called.
-
-
-
-
diff --git a/Assets/Plugins/JsonDotNet/Assemblies/AOT/Newtonsoft.Json.dll b/Assets/Plugins/JsonDotNet/Assemblies/AOT/Newtonsoft.Json.dll
deleted file mode 100644
index 3d09325..0000000
Binary files a/Assets/Plugins/JsonDotNet/Assemblies/AOT/Newtonsoft.Json.dll and /dev/null differ
diff --git a/Assets/Plugins/JsonDotNet/Assemblies/AOT/Newtonsoft.Json.dll.meta b/Assets/Plugins/JsonDotNet/Assemblies/AOT/Newtonsoft.Json.dll.meta
deleted file mode 100644
index 80c05ab..0000000
--- a/Assets/Plugins/JsonDotNet/Assemblies/AOT/Newtonsoft.Json.dll.meta
+++ /dev/null
@@ -1,109 +0,0 @@
-fileFormatVersion: 2
-guid: 6a3c684705042f345975d924f6983e36
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- : Linux
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- : OSXIntel
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- : OSXIntel64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- : SamsungTV
- second:
- enabled: 1
- settings:
- STV_MODEL: STANDARD_13
- - first:
- : Tizen
- second:
- enabled: 1
- settings: {}
- - first:
- Android: Android
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- WebGL: WebGL
- second:
- enabled: 1
- settings: {}
- - first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- DontProcess: False
- PlaceholderPath: Assets/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll
- SDK: AnySDK
- ScriptingBackend: Il2Cpp
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings:
- CompileFlags:
- FrameworkDependencies:
- - first:
- tvOS: tvOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.XML b/Assets/Plugins/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.XML
deleted file mode 100644
index 4dbcd9e..0000000
--- a/Assets/Plugins/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.XML
+++ /dev/null
@@ -1,8040 +0,0 @@
-
-
-
- Newtonsoft.Json
-
-
-
-
- Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
-
-
-
-
- Gets or sets a value indicating whether binary data reading should compatible with incorrect Json.NET 3.5 written binary.
-
-
- true if binary data reading will be compatible with incorrect Json.NET 3.5 written binary; otherwise, false.
-
-
-
-
- Gets or sets a value indicating whether the root object will be read as a JSON array.
-
-
- true if the root object will be read as a JSON array; otherwise, false.
-
-
-
-
- Gets or sets the used when reading values from BSON.
-
- The used when reading values from BSON.
-
-
-
- Initializes a new instance of the class.
-
- The stream.
-
-
-
- Initializes a new instance of the class.
-
- The reader.
-
-
-
- Initializes a new instance of the class.
-
- The stream.
- if set to true the root object will be read as a JSON array.
- The used when reading values from BSON.
-
-
-
- Initializes a new instance of the class.
-
- The reader.
- if set to true the root object will be read as a JSON array.
- The used when reading values from BSON.
-
-
-
- Reads the next JSON token from the stream.
-
-
- true if the next token was read successfully; false if there are no more tokens to read.
-
-
-
-
- Changes the to Closed.
-
-
-
-
- Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
-
-
-
-
- Gets or sets the used when writing values to BSON.
- When set to no conversion will occur.
-
- The used when writing values to BSON.
-
-
-
- Initializes a new instance of the class.
-
- The stream.
-
-
-
- Initializes a new instance of the class.
-
- The writer.
-
-
-
- Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
-
-
-
-
- Writes the end.
-
- The token.
-
-
-
- Writes out a comment /*...*/ containing the specified text.
-
- Text to place inside the comment.
-
-
-
- Writes the start of a constructor with the given name.
-
- The name of the constructor.
-
-
-
- Writes raw JSON.
-
- The raw JSON to write.
-
-
-
- Writes raw JSON where a value is expected and updates the writer's state.
-
- The raw JSON to write.
-
-
-
- Writes the beginning of a JSON array.
-
-
-
-
- Writes the beginning of a JSON object.
-
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
-
-
-
- Closes this stream and the underlying stream.
-
-
-
-
- Writes a value.
- An error will raised if the value cannot be written as a single JSON token.
-
- The value to write.
-
-
-
- Writes a null value.
-
-
-
-
- Writes an undefined value.
-
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value.
-
- The [] value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value that represents a BSON object id.
-
- The Object ID value to write.
-
-
-
- Writes a BSON regex.
-
- The regex pattern.
- The regex options.
-
-
-
- Represents a BSON Oid (object id).
-
-
-
-
- Gets or sets the value of the Oid.
-
- The value of the Oid.
-
-
-
- Initializes a new instance of the class.
-
- The Oid value.
-
-
-
- Converts a binary value to and from a base 64 string value.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Create a custom object
-
- The object type to convert.
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Creates an object which will then be populated by the serializer.
-
- Type of the object.
- The created object.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Gets a value indicating whether this can write JSON.
-
-
- true if this can write JSON; otherwise, false.
-
-
-
-
- Provides a base class for converting a to and from JSON.
-
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Converts a to and from JSON.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Converts a to and from JSON and BSON.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Converts a to and from JSON and BSON.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Converts an to and from its name string value.
-
-
-
-
- Gets or sets a value indicating whether the written enum text should be camel case.
-
- true if the written enum text will be camel case; otherwise, false.
-
-
-
- Gets or sets a value indicating whether integer values are allowed.
-
- true if integers are allowed; otherwise, false.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- true if the written enum text will be camel case; otherwise, false.
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Json Converter for Vector2, Vector3 and Vector4. Only serializes x, y, (z) and (w) properties.
-
-
-
-
- Default Constructor - All Vector types enabled by default
-
-
-
-
- Selectively enable Vector types
-
- Use for Vector2 objects
- Use for Vector3 objects
- Use for Vector4 objects
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Converts a to and from a string (e.g. "1.2.3.4").
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing property value of the JSON that is being converted.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Converts a to and from the ISO 8601 date format (e.g. 2008-04-12T12:53Z).
-
-
-
-
- Gets or sets the date time styles used when converting a date to and from JSON.
-
- The date time styles used when converting a date to and from JSON.
-
-
-
- Gets or sets the date time format used when converting a date to and from JSON.
-
- The date time format used when converting a date to and from JSON.
-
-
-
- Gets or sets the culture used when converting a date to and from JSON.
-
- The culture used when converting a date to and from JSON.
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Converts a to and from a JavaScript date constructor (e.g. new Date(52231943)).
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing property value of the JSON that is being converted.
- The calling serializer.
- The object value.
-
-
-
- Converts XML to and from JSON.
-
-
-
-
- Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produces multiple root elements.
-
- The name of the deserialize root element.
-
-
-
- Gets or sets a flag to indicate whether to write the Json.NET array attribute.
- This attribute helps preserve arrays when converting the written XML back to JSON.
-
- true if the array attibute is written to the XML; otherwise, false.
-
-
-
- Gets or sets a value indicating whether to write the root JSON object.
-
- true if the JSON root object is omitted; otherwise, false.
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The calling serializer.
- The value.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Checks if the attributeName is a namespace attribute.
-
- Attribute name to test.
- The attribute name prefix if it has one, otherwise an empty string.
- True if attribute name is for a namespace attribute, otherwise false.
-
-
-
- Determines whether this instance can convert the specified value type.
-
- Type of the value.
-
- true if this instance can convert the specified value type; otherwise, false.
-
-
-
-
- Specifies how constructors are used when initializing objects during deserialization by the .
-
-
-
-
- First attempt to use the public default constructor, then fall back to single paramatized constructor, then the non-public default constructor.
-
-
-
-
- Json.NET will use a non-public default constructor before falling back to a paramatized constructor.
-
-
-
-
- Specifies how dates are formatted when writing JSON text.
-
-
-
-
- Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z".
-
-
-
-
- Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/".
-
-
-
-
- Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text.
-
-
-
-
- Date formatted strings are not parsed to a date type and are read as strings.
-
-
-
-
- Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to .
-
-
-
-
- Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to .
-
-
-
-
- Specifies how to treat the time value when converting between string and .
-
-
-
-
- Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time.
-
-
-
-
- Treat as a UTC. If the object represents a local time, it is converted to a UTC.
-
-
-
-
- Treat as a local time if a is being converted to a string.
- If a string is being converted to , convert to a local time if a time zone is specified.
-
-
-
-
- Time zone information should be preserved when converting.
-
-
-
-
- Specifies float format handling options when writing special floating point numbers, e.g. ,
- and with .
-
-
-
-
- Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity".
-
-
-
-
- Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity.
- Note that this will produce non-valid JSON.
-
-
-
-
- Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a property.
-
-
-
-
- Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
-
-
-
-
- Floating point numbers are parsed to .
-
-
-
-
- Floating point numbers are parsed to .
-
-
-
-
- Specifies formatting options for the .
-
-
-
-
- No special formatting is applied. This is the default.
-
-
-
-
- Causes child objects to be indented according to the and settings.
-
-
-
-
- Provides an interface for using pooled arrays.
-
- The array type content.
-
-
-
- Rent a array from the pool. This array must be returned when it is no longer needed.
-
- The minimum required length of the array. The returned array may be longer.
- The rented array from the pool. This array must be returned when it is no longer needed.
-
-
-
- Return an array to the pool.
-
- The array that is being returned.
-
-
-
- Instructs the to use the specified constructor when deserializing that object.
-
-
-
-
- Instructs the how to serialize the collection.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with the specified container Id.
-
- The container Id.
-
-
-
- The exception thrown when an error occurs during JSON serialization or deserialization.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class
- with a specified error message.
-
- The error message that explains the reason for the exception.
-
-
-
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
-
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
- The parameter is null.
- The class name is null or is zero (0).
-
-
-
- Instructs the to deserialize properties with no matching class member into the specified collection
- and write values during serialization.
-
-
-
-
- Gets or sets a value that indicates whether to write extension data when serializing the object.
-
-
- true to write extension data when serializing the object; otherwise, false. The default is true.
-
-
-
-
- Gets or sets a value that indicates whether to read extension data when deserializing the object.
-
-
- true to read extension data when deserializing the object; otherwise, false. The default is true.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Instructs the to always serialize the member, and require the member has a value.
-
-
-
-
- Specifies how JSON comments are handled when loading JSON.
-
-
-
-
- Ignore comments.
-
-
-
-
- Load comments as a with type .
-
-
-
-
- Specifies how line information is handled when loading JSON.
-
-
-
-
- Ignore line information.
-
-
-
-
- Load line information.
-
-
-
-
- Represents a view of a .
-
-
-
-
- Initializes a new instance of the class.
-
- The name.
-
-
-
- When overridden in a derived class, returns whether resetting an object changes its value.
-
-
- true if resetting the component changes its value; otherwise, false.
-
- The component to test for reset capability.
-
-
-
-
- When overridden in a derived class, gets the current value of the property on a component.
-
-
- The value of a property for a given component.
-
- The component with the property for which to retrieve the value.
-
-
-
-
- When overridden in a derived class, resets the value for this property of the component to the default value.
-
- The component with the property value that is to be reset to the default value.
-
-
-
-
- When overridden in a derived class, sets the value of the component to a different value.
-
- The component with the property value that is to be set.
- The new value.
-
-
-
-
- When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted.
-
-
- true if the property should be persisted; otherwise, false.
-
- The component with the property to be examined for persistence.
-
-
-
-
- When overridden in a derived class, gets the type of the component this property is bound to.
-
-
- A that represents the type of component this property is bound to. When the or methods are invoked, the object specified might be an instance of this type.
-
-
-
-
- When overridden in a derived class, gets a value indicating whether this property is read-only.
-
-
- true if the property is read-only; otherwise, false.
-
-
-
-
- When overridden in a derived class, gets the type of the property.
-
-
- A that represents the type of the property.
-
-
-
-
- Gets the hash code for the name of the member.
-
-
-
- The hash code for the name of the member.
-
-
-
-
- Specifies the settings used when loading JSON.
-
-
-
-
- Gets or sets how JSON comments are handled when loading JSON.
-
- The JSON comment handling.
-
-
-
- Gets or sets how JSON line info is handled when loading JSON.
-
- The JSON line info handling.
-
-
-
- Specifies the settings used when merging JSON.
-
-
-
-
- Gets or sets the method used when merging JSON arrays.
-
- The method used when merging JSON arrays.
-
-
-
- Gets or sets how how null value properties are merged.
-
- How null value properties are merged.
-
-
-
- Specifies how JSON arrays are merged together.
-
-
-
- Concatenate arrays.
-
-
- Union arrays, skipping items that already exist.
-
-
- Replace all array items.
-
-
- Merge array items together, matched by index.
-
-
-
- Specifies how null value properties are merged.
-
-
-
-
- The content's null value properties will be ignored during merging.
-
-
-
-
- The content's null value properties will be merged.
-
-
-
-
- Represents a raw JSON string.
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class.
-
- The raw json.
-
-
-
- Creates an instance of with the content of the reader's current token.
-
- The reader.
- An instance of with the content of the reader's current token.
-
-
-
- Represents a collection of objects.
-
- The type of token
-
-
-
- Gets the with the specified key.
-
-
-
-
-
- Compares tokens to determine whether they are equal.
-
-
-
-
- Determines whether the specified objects are equal.
-
- The first object of type to compare.
- The second object of type to compare.
-
- true if the specified objects are equal; otherwise, false.
-
-
-
-
- Returns a hash code for the specified object.
-
- The for which a hash code is to be returned.
- A hash code for the specified object.
- The type of is a reference type and is null.
-
-
-
- Contains the LINQ to JSON extension methods.
-
-
-
-
- Returns a collection of tokens that contains the ancestors of every token in the source collection.
-
- The type of the objects in source, constrained to .
- An of that contains the source collection.
- An of that contains the ancestors of every token in the source collection.
-
-
-
- Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection.
-
- The type of the objects in source, constrained to .
- An of that contains the source collection.
- An of that contains every token in the source collection, the ancestors of every token in the source collection.
-
-
-
- Returns a collection of tokens that contains the descendants of every token in the source collection.
-
- The type of the objects in source, constrained to .
- An of that contains the source collection.
- An of that contains the descendants of every token in the source collection.
-
-
-
- Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection.
-
- The type of the objects in source, constrained to .
- An of that contains the source collection.
- An of that contains every token in the source collection, and the descendants of every token in the source collection.
-
-
-
- Returns a collection of child properties of every object in the source collection.
-
- An of that contains the source collection.
- An of that contains the properties of every object in the source collection.
-
-
-
- Returns a collection of child values of every object in the source collection with the given key.
-
- An of that contains the source collection.
- The token key.
- An of that contains the values of every token in the source collection with the given key.
-
-
-
- Returns a collection of child values of every object in the source collection.
-
- An of that contains the source collection.
- An of that contains the values of every token in the source collection.
-
-
-
- Returns a collection of converted child values of every object in the source collection with the given key.
-
- The type to convert the values to.
- An of that contains the source collection.
- The token key.
- An that contains the converted values of every token in the source collection with the given key.
-
-
-
- Returns a collection of converted child values of every object in the source collection.
-
- The type to convert the values to.
- An of that contains the source collection.
- An that contains the converted values of every token in the source collection.
-
-
-
- Converts the value.
-
- The type to convert the value to.
- A cast as a of .
- A converted value.
-
-
-
- Converts the value.
-
- The source collection type.
- The type to convert the value to.
- A cast as a of .
- A converted value.
-
-
-
- Returns a collection of child tokens of every array in the source collection.
-
- The source collection type.
- An of that contains the source collection.
- An of that contains the values of every token in the source collection.
-
-
-
- Returns a collection of converted child tokens of every array in the source collection.
-
- An of that contains the source collection.
- The type to convert the values to.
- The source collection type.
- An that contains the converted values of every token in the source collection.
-
-
-
- Returns the input typed as .
-
- An of that contains the source collection.
- The input typed as .
-
-
-
- Returns the input typed as .
-
- The source collection type.
- An of that contains the source collection.
- The input typed as .
-
-
-
- Represents a JSON constructor.
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Gets or sets the name of this constructor.
-
- The constructor name.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class with the specified name and content.
-
- The constructor name.
- The contents of the constructor.
-
-
-
- Initializes a new instance of the class with the specified name and content.
-
- The constructor name.
- The contents of the constructor.
-
-
-
- Initializes a new instance of the class with the specified name.
-
- The constructor name.
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Gets the with the specified key.
-
- The with the specified key.
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- A that contains the JSON that was read from the specified .
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- The used to load the JSON.
- If this is null, default load settings will be used.
- A that contains the JSON that was read from the specified .
-
-
-
- Represents a token that can contain other tokens.
-
-
-
-
- Occurs when the list changes or an item in the list changes.
-
-
-
-
- Occurs before an item is added to the collection.
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Raises the event.
-
- The instance containing the event data.
-
-
-
- Raises the event.
-
- The instance containing the event data.
-
-
-
- Gets a value indicating whether this token has child tokens.
-
-
- true if this token has child values; otherwise, false.
-
-
-
-
- Get the first child token of this token.
-
-
- A containing the first child token of the .
-
-
-
-
- Get the last child token of this token.
-
-
- A containing the last child token of the .
-
-
-
-
- Returns a collection of the child tokens of this token, in document order.
-
-
- An of containing the child tokens of this , in document order.
-
-
-
-
- Returns a collection of the child values of this token, in document order.
-
- The type to convert the values to.
-
- A containing the child values of this , in document order.
-
-
-
-
- Returns a collection of the descendant tokens for this token in document order.
-
- An containing the descendant tokens of the .
-
-
-
- Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order.
-
- An containing this token, and all the descendant tokens of the .
-
-
-
- Adds the specified content as children of this .
-
- The content to be added.
-
-
-
- Adds the specified content as the first children of this .
-
- The content to be added.
-
-
-
- Creates an that can be used to add tokens to the .
-
- An that is ready to have content written to it.
-
-
-
- Replaces the children nodes of this token with the specified content.
-
- The content.
-
-
-
- Removes the child nodes from this token.
-
-
-
-
- Merge the specified content into this .
-
- The content to be merged.
-
-
-
- Merge the specified content into this using .
-
- The content to be merged.
- The used to merge the content.
-
-
-
- Gets the count of child JSON tokens.
-
- The count of child JSON tokens
-
-
-
- Represents a collection of objects.
-
- The type of token
-
-
-
- An empty collection of objects.
-
-
-
-
- Initializes a new instance of the struct.
-
- The enumerable.
-
-
-
- Returns an enumerator that iterates through the collection.
-
-
- A that can be used to iterate through the collection.
-
-
-
-
- Returns an enumerator that iterates through a collection.
-
-
- An object that can be used to iterate through the collection.
-
-
-
-
- Gets the with the specified key.
-
-
-
-
-
- Determines whether the specified is equal to this instance.
-
- The to compare with this instance.
-
- true if the specified is equal to this instance; otherwise, false.
-
-
-
-
- Determines whether the specified is equal to this instance.
-
- The to compare with this instance.
-
- true if the specified is equal to this instance; otherwise, false.
-
-
-
-
- Returns a hash code for this instance.
-
-
- A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
-
-
-
-
- Represents a JSON object.
-
-
-
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Occurs when a property value changes.
-
-
-
-
- Occurs when a property value is changing.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class with the specified content.
-
- The contents of the object.
-
-
-
- Initializes a new instance of the class with the specified content.
-
- The contents of the object.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Gets an of this object's properties.
-
- An of this object's properties.
-
-
-
- Gets a the specified name.
-
- The property name.
- A with the specified name or null.
-
-
-
- Gets an of this object's property values.
-
- An of this object's property values.
-
-
-
- Gets the with the specified key.
-
- The with the specified key.
-
-
-
- Gets or sets the with the specified property name.
-
-
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- A that contains the JSON that was read from the specified .
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- The used to load the JSON.
- If this is null, default load settings will be used.
- A that contains the JSON that was read from the specified .
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- A populated from the string that contains JSON.
-
-
-
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- The used to load the JSON.
- If this is null, default load settings will be used.
- A populated from the string that contains JSON.
-
-
-
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- A with the values of the specified object
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- The that will be used to read the object.
- A with the values of the specified object
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Gets the with the specified property name.
-
- Name of the property.
- The with the specified property name.
-
-
-
- Gets the with the specified property name.
- The exact property name will be searched for first and if no matching property is found then
- the will be used to match a property.
-
- Name of the property.
- One of the enumeration values that specifies how the strings will be compared.
- The with the specified property name.
-
-
-
- Tries to get the with the specified property name.
- The exact property name will be searched for first and if no matching property is found then
- the will be used to match a property.
-
- Name of the property.
- The value.
- One of the enumeration values that specifies how the strings will be compared.
- true if a value was successfully retrieved; otherwise, false.
-
-
-
- Adds the specified property name.
-
- Name of the property.
- The value.
-
-
-
- Removes the property with the specified name.
-
- Name of the property.
- true if item was successfully removed; otherwise, false.
-
-
-
- Tries the get value.
-
- Name of the property.
- The value.
- true if a value was successfully retrieved; otherwise, false.
-
-
-
- Returns an enumerator that iterates through the collection.
-
-
- A that can be used to iterate through the collection.
-
-
-
-
- Raises the event with the provided arguments.
-
- Name of the property.
-
-
-
- Raises the event with the provided arguments.
-
- Name of the property.
-
-
-
- Returns the properties for this instance of a component.
-
-
- A that represents the properties for this component instance.
-
-
-
-
- Returns the properties for this instance of a component using the attribute array as a filter.
-
- An array of type that is used as a filter.
-
- A that represents the filtered properties for this component instance.
-
-
-
-
- Returns a collection of custom attributes for this instance of a component.
-
-
- An containing the attributes for this object.
-
-
-
-
- Returns the class name of this instance of a component.
-
-
- The class name of the object, or null if the class does not have a name.
-
-
-
-
- Returns the name of this instance of a component.
-
-
- The name of the object, or null if the object does not have a name.
-
-
-
-
- Returns a type converter for this instance of a component.
-
-
- A that is the converter for this object, or null if there is no for this object.
-
-
-
-
- Returns the default event for this instance of a component.
-
-
- An that represents the default event for this object, or null if this object does not have events.
-
-
-
-
- Returns the default property for this instance of a component.
-
-
- A that represents the default property for this object, or null if this object does not have properties.
-
-
-
-
- Returns an editor of the specified type for this instance of a component.
-
- A that represents the editor for this object.
-
- An of the specified type that is the editor for this object, or null if the editor cannot be found.
-
-
-
-
- Returns the events for this instance of a component using the specified attribute array as a filter.
-
- An array of type that is used as a filter.
-
- An that represents the filtered events for this component instance.
-
-
-
-
- Returns the events for this instance of a component.
-
-
- An that represents the events for this component instance.
-
-
-
-
- Returns an object that contains the property described by the specified property descriptor.
-
- A that represents the property whose owner is to be found.
-
- An that represents the owner of the specified property.
-
-
-
-
- Represents a JSON array.
-
-
-
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class with the specified content.
-
- The contents of the array.
-
-
-
- Initializes a new instance of the class with the specified content.
-
- The contents of the array.
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- A that contains the JSON that was read from the specified .
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- The used to load the JSON.
- If this is null, default load settings will be used.
- A that contains the JSON that was read from the specified .
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- A populated from the string that contains JSON.
-
-
-
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- The used to load the JSON.
- If this is null, default load settings will be used.
- A populated from the string that contains JSON.
-
-
-
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- A with the values of the specified object
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- The that will be used to read the object.
- A with the values of the specified object
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Gets the with the specified key.
-
- The with the specified key.
-
-
-
- Gets or sets the at the specified index.
-
-
-
-
-
- Determines the index of a specific item in the .
-
- The object to locate in the .
-
- The index of if found in the list; otherwise, -1.
-
-
-
-
- Inserts an item to the at the specified index.
-
- The zero-based index at which should be inserted.
- The object to insert into the .
-
- is not a valid index in the .
- The is read-only.
-
-
-
- Removes the item at the specified index.
-
- The zero-based index of the item to remove.
-
- is not a valid index in the .
- The is read-only.
-
-
-
- Returns an enumerator that iterates through the collection.
-
-
- A that can be used to iterate through the collection.
-
-
-
-
- Adds an item to the .
-
- The object to add to the .
- The is read-only.
-
-
-
- Removes all items from the .
-
- The is read-only.
-
-
-
- Determines whether the contains a specific value.
-
- The object to locate in the .
-
- true if is found in the ; otherwise, false.
-
-
-
-
- Copies to.
-
- The array.
- Index of the array.
-
-
-
- Gets a value indicating whether the is read-only.
-
- true if the is read-only; otherwise, false.
-
-
-
- Removes the first occurrence of a specific object from the .
-
- The object to remove from the .
-
- true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original .
-
- The is read-only.
-
-
-
- Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
-
-
-
-
- Gets the at the reader's current position.
-
-
-
-
- Initializes a new instance of the class.
-
- The token to read from.
-
-
-
- Reads the next JSON token from the stream.
-
-
- true if the next token was read successfully; false if there are no more tokens to read.
-
-
-
-
- Gets the path of the current JSON token.
-
-
-
-
- Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
-
-
-
-
- Gets the at the writer's current position.
-
-
-
-
- Gets the token being writen.
-
- The token being writen.
-
-
-
- Initializes a new instance of the class writing to the given .
-
- The container being written to.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
-
-
-
-
- Closes this stream and the underlying stream.
-
-
-
-
- Writes the beginning of a JSON object.
-
-
-
-
- Writes the beginning of a JSON array.
-
-
-
-
- Writes the start of a constructor with the given name.
-
- The name of the constructor.
-
-
-
- Writes the end.
-
- The token.
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
-
-
-
- Writes a value.
- An error will raised if the value cannot be written as a single JSON token.
-
- The value to write.
-
-
-
- Writes a null value.
-
-
-
-
- Writes an undefined value.
-
-
-
-
- Writes raw JSON.
-
- The raw JSON to write.
-
-
-
- Writes out a comment /*...*/ containing the specified text.
-
- Text to place inside the comment.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value.
-
- The [] value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Represents an abstract JSON token.
-
-
-
-
- Gets a comparer that can compare two tokens for value equality.
-
- A that can compare two nodes for value equality.
-
-
-
- Gets or sets the parent.
-
- The parent.
-
-
-
- Gets the root of this .
-
- The root of this .
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Gets a value indicating whether this token has child tokens.
-
-
- true if this token has child values; otherwise, false.
-
-
-
-
- Compares the values of two tokens, including the values of all descendant tokens.
-
- The first to compare.
- The second to compare.
- true if the tokens are equal; otherwise false.
-
-
-
- Gets the next sibling token of this node.
-
- The that contains the next sibling token.
-
-
-
- Gets the previous sibling token of this node.
-
- The that contains the previous sibling token.
-
-
-
- Gets the path of the JSON token.
-
-
-
-
- Adds the specified content immediately after this token.
-
- A content object that contains simple content or a collection of content objects to be added after this token.
-
-
-
- Adds the specified content immediately before this token.
-
- A content object that contains simple content or a collection of content objects to be added before this token.
-
-
-
- Returns a collection of the ancestor tokens of this token.
-
- A collection of the ancestor tokens of this token.
-
-
-
- Returns a collection of tokens that contain this token, and the ancestors of this token.
-
- A collection of tokens that contain this token, and the ancestors of this token.
-
-
-
- Returns a collection of the sibling tokens after this token, in document order.
-
- A collection of the sibling tokens after this tokens, in document order.
-
-
-
- Returns a collection of the sibling tokens before this token, in document order.
-
- A collection of the sibling tokens before this token, in document order.
-
-
-
- Gets the with the specified key.
-
- The with the specified key.
-
-
-
- Gets the with the specified key converted to the specified type.
-
- The type to convert the token to.
- The token key.
- The converted token value.
-
-
-
- Get the first child token of this token.
-
- A containing the first child token of the .
-
-
-
- Get the last child token of this token.
-
- A containing the last child token of the .
-
-
-
- Returns a collection of the child tokens of this token, in document order.
-
- An of containing the child tokens of this , in document order.
-
-
-
- Returns a collection of the child tokens of this token, in document order, filtered by the specified type.
-
- The type to filter the child tokens on.
- A containing the child tokens of this , in document order.
-
-
-
- Returns a collection of the child values of this token, in document order.
-
- The type to convert the values to.
- A containing the child values of this , in document order.
-
-
-
- Removes this token from its parent.
-
-
-
-
- Replaces this token with the specified token.
-
- The value.
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Returns the indented JSON for this token.
-
-
- The indented JSON for this token.
-
-
-
-
- Returns the JSON for this token using the given formatting and converters.
-
- Indicates how the output is formatted.
- A collection of which will be used when writing the token.
- The JSON for this token using the given formatting and converters.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to [].
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from [] to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Creates an for this token.
-
- An that can be used to read this token and its descendants.
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- A with the value of the specified object
-
-
-
- Creates a from an object using the specified .
-
- The object that will be used to create .
- The that will be used when reading the object.
- A with the value of the specified object
-
-
-
- Creates the specified .NET type from the .
-
- The object type that the token will be deserialized to.
- The new object created from the JSON value.
-
-
-
- Creates the specified .NET type from the .
-
- The object type that the token will be deserialized to.
- The new object created from the JSON value.
-
-
-
- Creates the specified .NET type from the using the specified .
-
- The object type that the token will be deserialized to.
- The that will be used when creating the object.
- The new object created from the JSON value.
-
-
-
- Creates the specified .NET type from the using the specified .
-
- The object type that the token will be deserialized to.
- The that will be used when creating the object.
- The new object created from the JSON value.
-
-
-
- Creates a from a .
-
- An positioned at the token to read into this .
-
- An that contains the token and its descendant tokens
- that were read from the reader. The runtime type of the token is determined
- by the token type of the first token encountered in the reader.
-
-
-
-
- Creates a from a .
-
- An positioned at the token to read into this .
- The used to load the JSON.
- If this is null, default load settings will be used.
-
- An that contains the token and its descendant tokens
- that were read from the reader. The runtime type of the token is determined
- by the token type of the first token encountered in the reader.
-
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- A populated from the string that contains JSON.
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- The used to load the JSON.
- If this is null, default load settings will be used.
- A populated from the string that contains JSON.
-
-
-
- Creates a from a .
-
- An positioned at the token to read into this .
- The used to load the JSON.
- If this is null, default load settings will be used.
-
- An that contains the token and its descendant tokens
- that were read from the reader. The runtime type of the token is determined
- by the token type of the first token encountered in the reader.
-
-
-
-
- Creates a from a .
-
- An positioned at the token to read into this .
-
- An that contains the token and its descendant tokens
- that were read from the reader. The runtime type of the token is determined
- by the token type of the first token encountered in the reader.
-
-
-
-
- Selects a using a JPath expression. Selects the token that matches the object path.
-
-
- A that contains a JPath expression.
-
- A , or null.
-
-
-
- Selects a using a JPath expression. Selects the token that matches the object path.
-
-
- A that contains a JPath expression.
-
- A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression.
- A .
-
-
-
- Selects a collection of elements using a JPath expression.
-
-
- A that contains a JPath expression.
-
- An that contains the selected elements.
-
-
-
- Selects a collection of elements using a JPath expression.
-
-
- A that contains a JPath expression.
-
- A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression.
- An that contains the selected elements.
-
-
-
- Creates a new instance of the . All child tokens are recursively cloned.
-
- A new instance of the .
-
-
-
- Adds an object to the annotation list of this .
-
- The annotation to add.
-
-
-
- Get the first annotation object of the specified type from this .
-
- The type of the annotation to retrieve.
- The first annotation object that matches the specified type, or null if no annotation is of the specified type.
-
-
-
- Gets the first annotation object of the specified type from this .
-
- The of the annotation to retrieve.
- The first annotation object that matches the specified type, or null if no annotation is of the specified type.
-
-
-
- Gets a collection of annotations of the specified type for this .
-
- The type of the annotations to retrieve.
- An that contains the annotations for this .
-
-
-
- Gets a collection of annotations of the specified type for this .
-
- The of the annotations to retrieve.
- An of that contains the annotations that match the specified type for this .
-
-
-
- Removes the annotations of the specified type from this .
-
- The type of annotations to remove.
-
-
-
- Removes the annotations of the specified type from this .
-
- The of annotations to remove.
-
-
-
- Represents a JSON property.
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Gets the property name.
-
- The property name.
-
-
-
- Gets or sets the property value.
-
- The property value.
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Initializes a new instance of the class.
-
- The property name.
- The property content.
-
-
-
- Initializes a new instance of the class.
-
- The property name.
- The property content.
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- A that contains the JSON that was read from the specified .
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- The used to load the JSON.
- If this is null, default load settings will be used.
- A that contains the JSON that was read from the specified .
-
-
-
- Specifies the type of token.
-
-
-
-
- No token type has been set.
-
-
-
-
- A JSON object.
-
-
-
-
- A JSON array.
-
-
-
-
- A JSON constructor.
-
-
-
-
- A JSON object property.
-
-
-
-
- A comment.
-
-
-
-
- An integer value.
-
-
-
-
- A float value.
-
-
-
-
- A string value.
-
-
-
-
- A boolean value.
-
-
-
-
- A null value.
-
-
-
-
- An undefined value.
-
-
-
-
- A date value.
-
-
-
-
- A raw JSON value.
-
-
-
-
- A collection of bytes value.
-
-
-
-
- A Guid value.
-
-
-
-
- A Uri value.
-
-
-
-
- A TimeSpan value.
-
-
-
-
- Represents a value in JSON (string, integer, date, etc).
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Gets a value indicating whether this token has child tokens.
-
-
- true if this token has child values; otherwise, false.
-
-
-
-
- Creates a comment with the given value.
-
- The value.
- A comment with the given value.
-
-
-
- Creates a string with the given value.
-
- The value.
- A string with the given value.
-
-
-
- Creates a null value.
-
- A null value.
-
-
-
- Creates a undefined value.
-
- A undefined value.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Gets or sets the underlying token value.
-
- The underlying token value.
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Indicates whether the current object is equal to another object of the same type.
-
-
- true if the current object is equal to the parameter; otherwise, false.
-
- An object to compare with this object.
-
-
-
- Determines whether the specified is equal to the current .
-
- The to compare with the current .
-
- true if the specified is equal to the current ; otherwise, false.
-
-
- The parameter is null.
-
-
-
-
- Serves as a hash function for a particular type.
-
-
- A hash code for the current .
-
-
-
-
- Returns a that represents this instance.
-
-
- A that represents this instance.
-
-
-
-
- Returns a that represents this instance.
-
- The format.
-
- A that represents this instance.
-
-
-
-
- Returns a that represents this instance.
-
- The format provider.
-
- A that represents this instance.
-
-
-
-
- Returns a that represents this instance.
-
- The format.
- The format provider.
-
- A that represents this instance.
-
-
-
-
- Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
-
- An object to compare with this instance.
-
- A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings:
- Value
- Meaning
- Less than zero
- This instance is less than .
- Zero
- This instance is equal to .
- Greater than zero
- This instance is greater than .
-
-
- is not the same type as this instance.
-
-
-
-
- Specifies metadata property handling options for the .
-
-
-
-
- Read metadata properties located at the start of a JSON object.
-
-
-
-
- Read metadata properties located anywhere in a JSON object. Note that this setting will impact performance.
-
-
-
-
- Do not try to read metadata properties.
-
-
-
-
- Represents a trace writer that writes to the application's instances.
-
-
-
-
- Gets the that will be used to filter the trace messages passed to the writer.
- For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
-
-
- The that will be used to filter the trace messages passed to the writer.
-
-
-
-
- Writes the specified trace level, message and optional exception.
-
- The at which to write this trace.
- The trace message.
- The trace exception. This parameter is optional.
-
-
-
- Provides methods to get attributes.
-
-
-
-
- Returns a collection of all of the attributes, or an empty collection if there are no attributes.
-
- When true, look up the hierarchy chain for the inherited custom attribute.
- A collection of s, or an empty collection.
-
-
-
- Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
-
- The type of the attributes.
- When true, look up the hierarchy chain for the inherited custom attribute.
- A collection of s, or an empty collection.
-
-
-
- Represents a trace writer.
-
-
-
-
- Gets the that will be used to filter the trace messages passed to the writer.
- For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
-
- The that will be used to filter the trace messages passed to the writer.
-
-
-
- Writes the specified trace level, message and optional exception.
-
- The at which to write this trace.
- The trace message.
- The trace exception. This parameter is optional.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets or sets the default collection items .
-
- The converter.
-
-
-
- Gets or sets a value indicating whether the collection items preserve object references.
-
- true if collection items preserve object references; otherwise, false.
-
-
-
- Gets or sets the collection item reference loop handling.
-
- The reference loop handling.
-
-
-
- Gets or sets the collection item type name handling.
-
- The type name handling.
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Represents a trace writer that writes to memory. When the trace message limit is
- reached then old trace messages will be removed as new messages are added.
-
-
-
-
- Gets the that will be used to filter the trace messages passed to the writer.
- For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
-
-
- The that will be used to filter the trace messages passed to the writer.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Writes the specified trace level, message and optional exception.
-
- The at which to write this trace.
- The trace message.
- The trace exception. This parameter is optional.
-
-
-
- Returns an enumeration of the most recent trace messages.
-
- An enumeration of the most recent trace messages.
-
-
-
- Returns a of the most recent trace messages.
-
-
- A of the most recent trace messages.
-
-
-
-
- Provides methods to get attributes from a , , or .
-
-
-
-
- Initializes a new instance of the class.
-
- The instance to get attributes for. This parameter should be a , , or .
-
-
-
- Returns a collection of all of the attributes, or an empty collection if there are no attributes.
-
- When true, look up the hierarchy chain for the inherited custom attribute.
- A collection of s, or an empty collection.
-
-
-
- Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
-
- The type of the attributes.
- When true, look up the hierarchy chain for the inherited custom attribute.
- A collection of s, or an empty collection.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets or sets the ISerializable object constructor.
-
- The ISerializable object constructor.
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Get and set values for a using dynamic methods.
-
-
-
-
- Initializes a new instance of the class.
-
- The member info.
-
-
-
- Sets the value.
-
- The target to set the value on.
- The value to set on the target.
-
-
-
- Gets the value.
-
- The target to get the value from.
- The value.
-
-
-
- Provides data for the Error event.
-
-
-
-
- Gets the current object the error event is being raised against.
-
- The current object the error event is being raised against.
-
-
-
- Gets the error context.
-
- The error context.
-
-
-
- Initializes a new instance of the class.
-
- The current object.
- The error context.
-
-
-
- Resolves member mappings for a type, camel casing property names.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Resolves the name of the property.
-
- Name of the property.
- The property name camel cased.
-
-
-
- Used by to resolves a for a given .
-
-
-
-
- Gets a value indicating whether members are being get and set using dynamic code generation.
- This value is determined by the runtime permissions available.
-
-
- true if using dynamic code generation; otherwise, false.
-
-
-
-
- Gets or sets the default members search flags.
-
- The default members search flags.
-
-
-
- Gets or sets a value indicating whether compiler generated members should be serialized.
-
-
- true if serialized compiler generated members; otherwise, false.
-
-
-
-
- Gets or sets a value indicating whether to ignore the interface when serializing and deserializing types.
-
-
- true if the interface will be ignored when serializing and deserializing types; otherwise, false.
-
-
-
-
- Gets or sets a value indicating whether to ignore the attribute when serializing and deserializing types.
-
-
- true if the attribute will be ignored when serializing and deserializing types; otherwise, false.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
-
- If set to true the will use a cached shared with other resolvers of the same type.
- Sharing the cache will significantly improve performance with multiple resolver instances because expensive reflection will only
- happen once. This setting can cause unexpected behavior if different instances of the resolver are suppose to produce different
- results. When set to false it is highly recommended to reuse instances with the .
-
-
-
-
- Resolves the contract for a given type.
-
- The type to resolve a contract for.
- The contract for a given type.
-
-
-
- Gets the serializable members for the type.
-
- The type to get serializable members for.
- The serializable members for the type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates the constructor parameters.
-
- The constructor to create properties for.
- The type's member properties.
- Properties for the given .
-
-
-
- Creates a for the given .
-
- The matching member property.
- The constructor parameter.
- A created for the given .
-
-
-
- Resolves the default for the contract.
-
- Type of the object.
- The contract's default .
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Determines which contract type is created for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates properties for the given .
-
- The type to create properties for.
- /// The member serialization mode for the type.
- Properties for the given .
-
-
-
- Creates the used by the serializer to get and set values from a member.
-
- The member.
- The used by the serializer to get and set values from a member.
-
-
-
- Creates a for the given .
-
- The member's parent .
- The member to create a for.
- A created for the given .
-
-
-
- Resolves the name of the property.
-
- Name of the property.
- Resolved name of the property.
-
-
-
- Resolves the key of the dictionary. By default is used to resolve dictionary keys.
-
- Key of the dictionary.
- Resolved key of the dictionary.
-
-
-
- Gets the resolved name of the property.
-
- Name of the property.
- Name of the property.
-
-
-
- The default serialization binder used when resolving and loading classes from type names.
-
-
-
-
- When overridden in a derived class, controls the binding of a serialized object to a type.
-
- Specifies the name of the serialized object.
- Specifies the name of the serialized object.
-
- The type of the object the formatter creates a new instance of.
-
-
-
-
- Provides information surrounding an error.
-
-
-
-
- Gets the error.
-
- The error.
-
-
-
- Gets the original object that caused the error.
-
- The original object that caused the error.
-
-
-
- Gets the member that caused the error.
-
- The member that caused the error.
-
-
-
- Gets the path of the JSON location where the error occurred.
-
- The path of the JSON location where the error occurred.
-
-
-
- Gets or sets a value indicating whether this is handled.
-
- true if handled; otherwise, false.
-
-
-
- Used by to resolves a for a given .
-
-
-
-
-
-
-
-
- Resolves the contract for a given type.
-
- The type to resolve a contract for.
- The contract for a given type.
-
-
-
- Provides methods to get and set values.
-
-
-
-
- Sets the value.
-
- The target to set the value on.
- The value to set on the target.
-
-
-
- Gets the value.
-
- The target to get the value from.
- The value.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets the of the collection items.
-
- The of the collection items.
-
-
-
- Gets a value indicating whether the collection type is a multidimensional array.
-
- true if the collection type is a multidimensional array; otherwise, false.
-
-
-
- Gets or sets the function used to create the object. When set this function will override .
-
- The function used to create the object.
-
-
-
- Gets a value indicating whether the creator has a parameter with the collection values.
-
- true if the creator has a parameter with the collection values; otherwise, false.
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Handles serialization callback events.
-
- The object that raised the callback event.
- The streaming context.
-
-
-
- Handles serialization error callback events.
-
- The object that raised the callback event.
- The streaming context.
- The error context.
-
-
-
- Sets extension data for an object during deserialization.
-
- The object to set extension data on.
- The extension data key.
- The extension data value.
-
-
-
- Gets extension data for an object during serialization.
-
- The object to set extension data on.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets the underlying type for the contract.
-
- The underlying type for the contract.
-
-
-
- Gets or sets the type created during deserialization.
-
- The type created during deserialization.
-
-
-
- Gets or sets whether this type contract is serialized as a reference.
-
- Whether this type contract is serialized as a reference.
-
-
-
- Gets or sets the default for this contract.
-
- The converter.
-
-
-
- Gets or sets all methods called immediately after deserialization of the object.
-
- The methods called immediately after deserialization of the object.
-
-
-
- Gets or sets all methods called during deserialization of the object.
-
- The methods called during deserialization of the object.
-
-
-
- Gets or sets all methods called after serialization of the object graph.
-
- The methods called after serialization of the object graph.
-
-
-
- Gets or sets all methods called before serialization of the object.
-
- The methods called before serialization of the object.
-
-
-
- Gets or sets all method called when an error is thrown during the serialization of the object.
-
- The methods called when an error is thrown during the serialization of the object.
-
-
-
- Gets or sets the method called immediately after deserialization of the object.
-
- The method called immediately after deserialization of the object.
-
-
-
- Gets or sets the method called during deserialization of the object.
-
- The method called during deserialization of the object.
-
-
-
- Gets or sets the method called after serialization of the object graph.
-
- The method called after serialization of the object graph.
-
-
-
- Gets or sets the method called before serialization of the object.
-
- The method called before serialization of the object.
-
-
-
- Gets or sets the method called when an error is thrown during the serialization of the object.
-
- The method called when an error is thrown during the serialization of the object.
-
-
-
- Gets or sets the default creator method used to create the object.
-
- The default creator method used to create the object.
-
-
-
- Gets or sets a value indicating whether the default creator is non public.
-
- true if the default object creator is non-public; otherwise, false.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets or sets the property name resolver.
-
- The property name resolver.
-
-
-
- Gets or sets the dictionary key resolver.
-
- The dictionary key resolver.
-
-
-
- Gets the of the dictionary keys.
-
- The of the dictionary keys.
-
-
-
- Gets the of the dictionary values.
-
- The of the dictionary values.
-
-
-
- Gets or sets the function used to create the object. When set this function will override .
-
- The function used to create the object.
-
-
-
- Gets a value indicating whether the creator has a parameter with the dictionary values.
-
- true if the creator has a parameter with the dictionary values; otherwise, false.
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Maps a JSON property to a .NET member or constructor parameter.
-
-
-
-
- Gets or sets the name of the property.
-
- The name of the property.
-
-
-
- Gets or sets the type that declared this property.
-
- The type that declared this property.
-
-
-
- Gets or sets the order of serialization of a member.
-
- The numeric order of serialization.
-
-
-
- Gets or sets the name of the underlying member or parameter.
-
- The name of the underlying member or parameter.
-
-
-
- Gets the that will get and set the during serialization.
-
- The that will get and set the during serialization.
-
-
-
- Gets or sets the for this property.
-
- The for this property.
-
-
-
- Gets or sets the type of the property.
-
- The type of the property.
-
-
-
- Gets or sets the for the property.
- If set this converter takes presidence over the contract converter for the property type.
-
- The converter.
-
-
-
- Gets or sets the member converter.
-
- The member converter.
-
-
-
- Gets or sets a value indicating whether this is ignored.
-
- true if ignored; otherwise, false.
-
-
-
- Gets or sets a value indicating whether this is readable.
-
- true if readable; otherwise, false.
-
-
-
- Gets or sets a value indicating whether this is writable.
-
- true if writable; otherwise, false.
-
-
-
- Gets or sets a value indicating whether this has a member attribute.
-
- true if has a member attribute; otherwise, false.
-
-
-
- Gets the default value.
-
- The default value.
-
-
-
- Gets or sets a value indicating whether this is required.
-
- A value indicating whether this is required.
-
-
-
- Gets or sets a value indicating whether this property preserves object references.
-
-
- true if this instance is reference; otherwise, false.
-
-
-
-
- Gets or sets the property null value handling.
-
- The null value handling.
-
-
-
- Gets or sets the property default value handling.
-
- The default value handling.
-
-
-
- Gets or sets the property reference loop handling.
-
- The reference loop handling.
-
-
-
- Gets or sets the property object creation handling.
-
- The object creation handling.
-
-
-
- Gets or sets or sets the type name handling.
-
- The type name handling.
-
-
-
- Gets or sets a predicate used to determine whether the property should be serialize.
-
- A predicate used to determine whether the property should be serialize.
-
-
-
- Gets or sets a predicate used to determine whether the property should be deserialized.
-
- A predicate used to determine whether the property should be deserialized.
-
-
-
- Gets or sets a predicate used to determine whether the property should be serialized.
-
- A predicate used to determine whether the property should be serialized.
-
-
-
- Gets or sets an action used to set whether the property has been deserialized.
-
- An action used to set whether the property has been deserialized.
-
-
-
- Returns a that represents this instance.
-
-
- A that represents this instance.
-
-
-
-
- Gets or sets the converter used when serializing the property's collection items.
-
- The collection's items converter.
-
-
-
- Gets or sets whether this property's collection items are serialized as a reference.
-
- Whether this property's collection items are serialized as a reference.
-
-
-
- Gets or sets the the type name handling used when serializing the property's collection items.
-
- The collection's items type name handling.
-
-
-
- Gets or sets the the reference loop handling used when serializing the property's collection items.
-
- The collection's items reference loop handling.
-
-
-
- A collection of objects.
-
-
-
-
- Initializes a new instance of the class.
-
- The type.
-
-
-
- When implemented in a derived class, extracts the key from the specified element.
-
- The element from which to extract the key.
- The key for the specified element.
-
-
-
- Adds a object.
-
- The property to add to the collection.
-
-
-
- Gets the closest matching object.
- First attempts to get an exact case match of propertyName and then
- a case insensitive match.
-
- Name of the property.
- A matching property if found.
-
-
-
- Gets a property by property name.
-
- The name of the property to get.
- Type property name string comparison.
- A matching property if found.
-
-
-
- Used to resolve references when serializing and deserializing JSON by the .
-
-
-
-
- Resolves a reference to its object.
-
- The serialization context.
- The reference to resolve.
- The object that
-
-
-
- Gets the reference for the sepecified object.
-
- The serialization context.
- The object to get a reference for.
- The reference to the object.
-
-
-
- Determines whether the specified object is referenced.
-
- The serialization context.
- The object to test for a reference.
-
- true if the specified object is referenced; otherwise, false.
-
-
-
-
- Adds a reference to the specified object.
-
- The serialization context.
- The reference.
- The object to reference.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets or sets the object member serialization.
-
- The member object serialization.
-
-
-
- Gets or sets a value that indicates whether the object's properties are required.
-
-
- A value indicating whether the object's properties are required.
-
-
-
-
- Gets the object's properties.
-
- The object's properties.
-
-
-
- Gets the constructor parameters required for any non-default constructor
-
-
-
-
- Gets a collection of instances that define the parameters used with .
-
-
-
-
- Gets or sets the override constructor used to create the object.
- This is set when a constructor is marked up using the
- JsonConstructor attribute.
-
- The override constructor.
-
-
-
- Gets or sets the parametrized constructor used to create the object.
-
- The parametrized constructor.
-
-
-
- Gets or sets the function used to create the object. When set this function will override .
- This function is called with a collection of arguments which are defined by the collection.
-
- The function used to create the object.
-
-
-
- Gets or sets the extension data setter.
-
-
-
-
- Gets or sets the extension data getter.
-
-
-
-
- Gets or sets the extension data value type.
-
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Lookup and create an instance of the JsonConverter type described by the argument.
-
- The JsonConverter type to create.
- Optional arguments to pass to an initializing constructor of the JsonConverter.
- If null, the default constructor is used.
-
-
-
- Create a factory function that can be used to create instances of a JsonConverter described by the
- argument type. The returned function can then be used to either invoke the converter's default ctor, or any
- parameterized constructors by way of an object array.
-
-
-
-
- Get and set values for a using reflection.
-
-
-
-
- Initializes a new instance of the class.
-
- The member info.
-
-
-
- Sets the value.
-
- The target to set the value on.
- The value to set on the target.
-
-
-
- Gets the value.
-
- The target to get the value from.
- The value.
-
-
-
- When applied to a method, specifies that the method is called when an error occurs serializing an object.
-
-
-
-
- Represents a method that constructs an object.
-
- The object type to create.
-
-
-
- Specifies how strings are escaped when writing JSON text.
-
-
-
-
- Only control characters (e.g. newline) are escaped.
-
-
-
-
- All non-ASCII and control characters (e.g. newline) are escaped.
-
-
-
-
- HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped.
-
-
-
-
- Converts the value to the specified type. If the value is unable to be converted, the
- value is checked whether it assignable to the specified type.
-
- The value to convert.
- The culture to use when converting.
- The type to convert or cast the value to.
-
- The converted type. If conversion was unsuccessful, the initial value
- is returned if assignable to the target type.
-
-
-
-
- Gets a dictionary of the names and values of an Enum type.
-
-
-
-
-
- Gets a dictionary of the names and values of an Enum type.
-
- The enum type to get names and values for.
-
-
-
-
- Builds a string. Unlike StringBuilder this class lets you reuse it's internal buffer.
-
-
-
-
- Determines whether the collection is null or empty.
-
- The collection.
-
- true if the collection is null or empty; otherwise, false.
-
-
-
-
- Adds the elements of the specified collection to the specified generic IList.
-
- The list to add to.
- The collection of elements to add.
-
-
-
- Gets the type of the typed collection's items.
-
- The type.
- The type of the typed collection's items.
-
-
-
- Gets the member's underlying type.
-
- The member.
- The underlying type of the member.
-
-
-
- Determines whether the member is an indexed property.
-
- The member.
-
- true if the member is an indexed property; otherwise, false.
-
-
-
-
- Determines whether the property is an indexed property.
-
- The property.
-
- true if the property is an indexed property; otherwise, false.
-
-
-
-
- Gets the member's value on the object.
-
- The member.
- The target object.
- The member's value on the object.
-
-
-
- Sets the member's value on the target object.
-
- The member.
- The target.
- The value.
-
-
-
- Determines whether the specified MemberInfo can be read.
-
- The MemberInfo to determine whether can be read.
- /// if set to true then allow the member to be gotten non-publicly.
-
- true if the specified MemberInfo can be read; otherwise, false.
-
-
-
-
- Determines whether the specified MemberInfo can be set.
-
- The MemberInfo to determine whether can be set.
- if set to true then allow the member to be set non-publicly.
- if set to true then allow the member to be set if read-only.
-
- true if the specified MemberInfo can be set; otherwise, false.
-
-
-
-
- Determines whether the string is all white space. Empty string will return false.
-
- The string to test whether it is all white space.
-
- true if the string is all white space; otherwise, false.
-
-
-
-
- Nulls an empty string.
-
- The string.
- Null if the string was null, otherwise the string unchanged.
-
-
-
- Indicating whether a property is required.
-
-
-
-
- The property is not required. The default state.
-
-
-
-
- The property must be defined in JSON but can be a null value.
-
-
-
-
- The property must be defined in JSON and cannot be a null value.
-
-
-
-
- The property is not required but it cannot be a null value.
-
-
-
-
- Specifies reference handling options for the .
- Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement ISerializable.
-
-
-
-
-
-
-
- Do not preserve references when serializing types.
-
-
-
-
- Preserve references when serializing into a JSON object structure.
-
-
-
-
- Preserve references when serializing into a JSON array structure.
-
-
-
-
- Preserve references when serializing.
-
-
-
-
- Provides an interface to enable a class to return line and position information.
-
-
-
-
- Gets a value indicating whether the class can return line information.
-
-
- true if LineNumber and LinePosition can be provided; otherwise, false.
-
-
-
-
- Gets the current line number.
-
- The current line number or 0 if no line information is available (for example, HasLineInfo returns false).
-
-
-
- Gets the current line position.
-
- The current line position or 0 if no line information is available (for example, HasLineInfo returns false).
-
-
-
- Instructs the how to serialize the collection.
-
-
-
-
- Gets or sets a value indicating whether null items are allowed in the collection.
-
- true if null items are allowed in the collection; otherwise, false.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with a flag indicating whether the array can contain null items
-
- A flag indicating whether the array can contain null items.
-
-
-
- Initializes a new instance of the class with the specified container Id.
-
- The container Id.
-
-
-
- Instructs the how to serialize the object.
-
-
-
-
- Gets or sets the id.
-
- The id.
-
-
-
- Gets or sets the title.
-
- The title.
-
-
-
- Gets or sets the description.
-
- The description.
-
-
-
- Gets the collection's items converter.
-
- The collection's items converter.
-
-
-
- The parameter list to use when constructing the JsonConverter described by ItemConverterType.
- If null, the default constructor is used.
- When non-null, there must be a constructor defined in the JsonConverter that exactly matches the number,
- order, and type of these parameters.
-
-
- [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
-
-
-
-
- Gets or sets a value that indicates whether to preserve object references.
-
-
- true to keep object reference; otherwise, false. The default is false.
-
-
-
-
- Gets or sets a value that indicates whether to preserve collection's items references.
-
-
- true to keep collection's items object references; otherwise, false. The default is false.
-
-
-
-
- Gets or sets the reference loop handling used when serializing the collection's items.
-
- The reference loop handling.
-
-
-
- Gets or sets the type name handling used when serializing the collection's items.
-
- The type name handling.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with the specified container Id.
-
- The container Id.
-
-
-
- Specifies default value handling options for the .
-
-
-
-
-
-
-
-
- Include members where the member value is the same as the member's default value when serializing objects.
- Included members are written to JSON. Has no effect when deserializing.
-
-
-
-
- Ignore members where the member value is the same as the member's default value when serializing objects
- so that is is not written to JSON.
- This option will ignore all default values (e.g. null for objects and nullable types; 0 for integers,
- decimals and floating point numbers; and false for booleans). The default value ignored can be changed by
- placing the on the property.
-
-
-
-
- Members with a default value but no JSON will be set to their default value when deserializing.
-
-
-
-
- Ignore members where the member value is the same as the member's default value when serializing objects
- and sets members to their default value when deserializing.
-
-
-
-
- Instructs the to use the specified when serializing the member or class.
-
-
-
-
- Gets the of the converter.
-
- The of the converter.
-
-
-
- The parameter list to use when constructing the JsonConverter described by ConverterType.
- If null, the default constructor is used.
-
-
-
-
- Initializes a new instance of the class.
-
- Type of the converter.
-
-
-
- Initializes a new instance of the class.
-
- Type of the converter.
- Parameter list to use when constructing the JsonConverter. Can be null.
-
-
-
- Instructs the how to serialize the object.
-
-
-
-
- Gets or sets the member serialization.
-
- The member serialization.
-
-
-
- Gets or sets a value that indicates whether the object's properties are required.
-
-
- A value indicating whether the object's properties are required.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with the specified member serialization.
-
- The member serialization.
-
-
-
- Initializes a new instance of the class with the specified container Id.
-
- The container Id.
-
-
-
- Specifies the settings on a object.
-
-
-
-
- Gets or sets how reference loops (e.g. a class referencing itself) is handled.
-
- Reference loop handling.
-
-
-
- Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization.
-
- Missing member handling.
-
-
-
- Gets or sets how objects are created during deserialization.
-
- The object creation handling.
-
-
-
- Gets or sets how null values are handled during serialization and deserialization.
-
- Null value handling.
-
-
-
- Gets or sets how null default are handled during serialization and deserialization.
-
- The default value handling.
-
-
-
- Gets or sets a collection that will be used during serialization.
-
- The converters.
-
-
-
- Gets or sets how object references are preserved by the serializer.
-
- The preserve references handling.
-
-
-
- Gets or sets how type name writing and reading is handled by the serializer.
-
-
- should be used with caution when your application deserializes JSON from an external source.
- Incoming types should be validated with a custom
- when deserializing with a value other than TypeNameHandling.None.
-
- The type name handling.
-
-
-
- Gets or sets how metadata properties are used during deserialization.
-
- The metadata properties handling.
-
-
-
- Gets or sets how a type name assembly is written and resolved by the serializer.
-
- The type name assembly format.
-
-
-
- Gets or sets how constructors are used during deserialization.
-
- The constructor handling.
-
-
-
- Gets or sets the contract resolver used by the serializer when
- serializing .NET objects to JSON and vice versa.
-
- The contract resolver.
-
-
-
- Gets or sets the equality comparer used by the serializer when comparing references.
-
- The equality comparer.
-
-
-
- Gets or sets the used by the serializer when resolving references.
-
- The reference resolver.
-
-
-
- Gets or sets a function that creates the used by the serializer when resolving references.
-
- A function that creates the used by the serializer when resolving references.
-
-
-
- Gets or sets the used by the serializer when writing trace messages.
-
- The trace writer.
-
-
-
- Gets or sets the used by the serializer when resolving type names.
-
- The binder.
-
-
-
- Gets or sets the error handler called during serialization and deserialization.
-
- The error handler called during serialization and deserialization.
-
-
-
- Gets or sets the used by the serializer when invoking serialization callback methods.
-
- The context.
-
-
-
- Get or set how and values are formatted when writing JSON text, and the expected date format when reading JSON text.
-
-
-
-
- Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a .
-
-
-
-
- Indicates how JSON text output is formatted.
-
-
-
-
- Get or set how dates are written to JSON text.
-
-
-
-
- Get or set how time zones are handling during serialization and deserialization.
-
-
-
-
- Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
-
-
-
-
- Get or set how special floating point numbers, e.g. ,
- and ,
- are written as JSON.
-
-
-
-
- Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
-
-
-
-
- Get or set how strings are escaped when writing JSON text.
-
-
-
-
- Gets or sets the culture used when reading JSON. Defaults to .
-
-
-
-
- Gets a value indicating whether there will be a check for additional content after deserializing an object.
-
-
- true if there will be a check for additional content after deserializing an object; otherwise, false.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Specifies the member serialization options for the .
-
-
-
-
- All public members are serialized by default. Members can be excluded using or .
- This is the default member serialization mode.
-
-
-
-
- Only members marked with or are serialized.
- This member serialization mode can also be set by marking the class with .
-
-
-
-
- All public and private fields are serialized. Members can be excluded using or .
- This member serialization mode can also be set by marking the class with
- and setting IgnoreSerializableAttribute on to false.
-
-
-
-
- Specifies how object creation is handled by the .
-
-
-
-
- Reuse existing objects, create new objects when needed.
-
-
-
-
- Only reuse existing objects.
-
-
-
-
- Always create new objects.
-
-
-
-
- Represents a reader that provides fast, non-cached, forward-only access to JSON text data.
-
-
-
-
- Initializes a new instance of the class with the specified .
-
- The TextReader containing the XML data to read.
-
-
-
- Gets or sets the reader's character buffer pool.
-
-
-
-
- Reads the next JSON token from the stream.
-
-
- true if the next token was read successfully; false if there are no more tokens to read.
-
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a [].
-
- A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Changes the state to closed.
-
-
-
-
- Gets a value indicating whether the class can return line information.
-
-
- true if LineNumber and LinePosition can be provided; otherwise, false.
-
-
-
-
- Gets the current line number.
-
-
- The current line number or 0 if no line information is available (for example, HasLineInfo returns false).
-
-
-
-
- Gets the current line position.
-
-
- The current line position or 0 if no line information is available (for example, HasLineInfo returns false).
-
-
-
-
- Instructs the to always serialize the member with the specified name.
-
-
-
-
- Gets or sets the converter used when serializing the property's collection items.
-
- The collection's items converter.
-
-
-
- The parameter list to use when constructing the JsonConverter described by ItemConverterType.
- If null, the default constructor is used.
- When non-null, there must be a constructor defined in the JsonConverter that exactly matches the number,
- order, and type of these parameters.
-
-
- [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
-
-
-
-
- Gets or sets the null value handling used when serializing this property.
-
- The null value handling.
-
-
-
- Gets or sets the default value handling used when serializing this property.
-
- The default value handling.
-
-
-
- Gets or sets the reference loop handling used when serializing this property.
-
- The reference loop handling.
-
-
-
- Gets or sets the object creation handling used when deserializing this property.
-
- The object creation handling.
-
-
-
- Gets or sets the type name handling used when serializing this property.
-
- The type name handling.
-
-
-
- Gets or sets whether this property's value is serialized as a reference.
-
- Whether this property's value is serialized as a reference.
-
-
-
- Gets or sets the order of serialization of a member.
-
- The numeric order of serialization.
-
-
-
- Gets or sets a value indicating whether this property is required.
-
-
- A value indicating whether this property is required.
-
-
-
-
- Gets or sets the name of the property.
-
- The name of the property.
-
-
-
- Gets or sets the the reference loop handling used when serializing the property's collection items.
-
- The collection's items reference loop handling.
-
-
-
- Gets or sets the the type name handling used when serializing the property's collection items.
-
- The collection's items type name handling.
-
-
-
- Gets or sets whether this property's collection items are serialized as a reference.
-
- Whether this property's collection items are serialized as a reference.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with the specified name.
-
- Name of the property.
-
-
-
- Instructs the not to serialize the public field or public read/write property value.
-
-
-
-
- Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
-
-
-
-
- Gets or sets the writer's character array pool.
-
-
-
-
- Gets or sets how many IndentChars to write for each level in the hierarchy when is set to Formatting.Indented.
-
-
-
-
- Gets or sets which character to use to quote attribute values.
-
-
-
-
- Gets or sets which character to use for indenting when is set to Formatting.Indented.
-
-
-
-
- Gets or sets a value indicating whether object names will be surrounded with quotes.
-
-
-
-
- Creates an instance of the JsonWriter class using the specified .
-
- The TextWriter to write to.
-
-
-
- Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
-
-
-
-
- Closes this stream and the underlying stream.
-
-
-
-
- Writes the beginning of a JSON object.
-
-
-
-
- Writes the beginning of a JSON array.
-
-
-
-
- Writes the start of a constructor with the given name.
-
- The name of the constructor.
-
-
-
- Writes the specified end token.
-
- The end token to write.
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
- A flag to indicate whether the text should be escaped when it is written as a JSON property name.
-
-
-
- Writes indent characters.
-
-
-
-
- Writes the JSON value delimiter.
-
-
-
-
- Writes an indent space.
-
-
-
-
- Writes a value.
- An error will raised if the value cannot be written as a single JSON token.
-
- The value to write.
-
-
-
- Writes a null value.
-
-
-
-
- Writes an undefined value.
-
-
-
-
- Writes raw JSON.
-
- The raw JSON to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value.
-
- The [] value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes out a comment /*...*/ containing the specified text.
-
- Text to place inside the comment.
-
-
-
- Writes out the given white space.
-
- The string of white space characters.
-
-
-
- The exception thrown when an error occurs while reading JSON text.
-
-
-
-
- Gets the path to the JSON where the error occurred.
-
- The path to the JSON where the error occurred.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class
- with a specified error message.
-
- The error message that explains the reason for the exception.
-
-
-
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
-
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
- The parameter is null.
- The class name is null or is zero (0).
-
-
-
- The exception thrown when an error occurs while reading JSON text.
-
-
-
-
- Gets the line number indicating where the error occurred.
-
- The line number indicating where the error occurred.
-
-
-
- Gets the line position indicating where the error occurred.
-
- The line position indicating where the error occurred.
-
-
-
- Gets the path to the JSON where the error occurred.
-
- The path to the JSON where the error occurred.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class
- with a specified error message.
-
- The error message that explains the reason for the exception.
-
-
-
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
-
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
- The parameter is null.
- The class name is null or is zero (0).
-
-
-
- Converts an object to and from JSON.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Gets a value indicating whether this can read JSON.
-
- true if this can read JSON; otherwise, false.
-
-
-
- Gets a value indicating whether this can write JSON.
-
- true if this can write JSON; otherwise, false.
-
-
-
- Represents a collection of .
-
-
-
-
- Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
-
-
-
-
- Specifies the state of the reader.
-
-
-
-
- The Read method has not been called.
-
-
-
-
- The end of the file has been reached successfully.
-
-
-
-
- Reader is at a property.
-
-
-
-
- Reader is at the start of an object.
-
-
-
-
- Reader is in an object.
-
-
-
-
- Reader is at the start of an array.
-
-
-
-
- Reader is in an array.
-
-
-
-
- The Close method has been called.
-
-
-
-
- Reader has just read a value.
-
-
-
-
- Reader is at the start of a constructor.
-
-
-
-
- Reader in a constructor.
-
-
-
-
- An error occurred that prevents the read operation from continuing.
-
-
-
-
- The end of the file has been reached successfully.
-
-
-
-
- Gets the current reader state.
-
- The current reader state.
-
-
-
- Gets or sets a value indicating whether the underlying stream or
- should be closed when the reader is closed.
-
-
- true to close the underlying stream or when
- the reader is closed; otherwise false. The default is true.
-
-
-
-
- Gets or sets a value indicating whether multiple pieces of JSON content can
- be read from a continuous stream without erroring.
-
-
- true to support reading multiple pieces of JSON content; otherwise false. The default is false.
-
-
-
-
- Gets the quotation mark character used to enclose the value of a string.
-
-
-
-
- Get or set how time zones are handling when reading JSON.
-
-
-
-
- Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
-
-
-
-
- Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
-
-
-
-
- Get or set how custom date formatted strings are parsed when reading JSON.
-
-
-
-
- Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a .
-
-
-
-
- Gets the type of the current JSON token.
-
-
-
-
- Gets the text value of the current JSON token.
-
-
-
-
- Gets The Common Language Runtime (CLR) type for the current JSON token.
-
-
-
-
- Gets the depth of the current token in the JSON document.
-
- The depth of the current token in the JSON document.
-
-
-
- Gets the path of the current JSON token.
-
-
-
-
- Gets or sets the culture used when reading JSON. Defaults to .
-
-
-
-
- Initializes a new instance of the class with the specified .
-
-
-
-
- Reads the next JSON token from the stream.
-
- true if the next token was read successfully; false if there are no more tokens to read.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a [].
-
- A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Skips the children of the current token.
-
-
-
-
- Sets the current token.
-
- The new token.
-
-
-
- Sets the current token and value.
-
- The new token.
- The value.
-
-
-
- Sets the state based on current token type.
-
-
-
-
- Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
-
-
-
-
- Releases unmanaged and - optionally - managed resources
-
- true to release both managed and unmanaged resources; false to release only unmanaged resources.
-
-
-
- Changes the to Closed.
-
-
-
-
- Provides methods for converting between common language runtime types and JSON types.
-
-
-
-
-
-
-
- Gets or sets a function that creates default .
- Default settings are automatically used by serialization methods on ,
- and and on .
- To serialize without using any default settings create a with
- .
-
-
-
-
- Represents JavaScript's boolean value true as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's boolean value false as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's null as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's undefined as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's positive infinity as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's negative infinity as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's NaN as a string. This field is read-only.
-
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation using the specified.
-
- The value to convert.
- The format the date will be converted to.
- The time zone handling when the date is converted to a string.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation using the specified.
-
- The value to convert.
- The format the date will be converted to.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- The string delimiter character.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- The string delimiter character.
- The string escape handling.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Serializes the specified object to a JSON string.
-
- The object to serialize.
- A JSON string representation of the object.
-
-
-
- Serializes the specified object to a JSON string using formatting.
-
- The object to serialize.
- Indicates how the output is formatted.
-
- A JSON string representation of the object.
-
-
-
-
- Serializes the specified object to a JSON string using a collection of .
-
- The object to serialize.
- A collection converters used while serializing.
- A JSON string representation of the object.
-
-
-
- Serializes the specified object to a JSON string using formatting and a collection of .
-
- The object to serialize.
- Indicates how the output is formatted.
- A collection converters used while serializing.
- A JSON string representation of the object.
-
-
-
- Serializes the specified object to a JSON string using .
-
- The object to serialize.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- A JSON string representation of the object.
-
-
-
-
- Serializes the specified object to a JSON string using a type, formatting and .
-
- The object to serialize.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
-
- A JSON string representation of the object.
-
-
-
-
- Serializes the specified object to a JSON string using formatting and .
-
- The object to serialize.
- Indicates how the output is formatted.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- A JSON string representation of the object.
-
-
-
-
- Serializes the specified object to a JSON string using a type, formatting and .
-
- The object to serialize.
- Indicates how the output is formatted.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
-
- A JSON string representation of the object.
-
-
-
-
- Deserializes the JSON to a .NET object.
-
- The JSON to deserialize.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to a .NET object using .
-
- The JSON to deserialize.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type.
-
- The JSON to deserialize.
- The of object being deserialized.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type.
-
- The type of the object to deserialize to.
- The JSON to deserialize.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the given anonymous type.
-
-
- The anonymous type to deserialize to. This can't be specified
- traditionally and must be infered from the anonymous type passed
- as a parameter.
-
- The JSON to deserialize.
- The anonymous type object.
- The deserialized anonymous type from the JSON string.
-
-
-
- Deserializes the JSON to the given anonymous type using .
-
-
- The anonymous type to deserialize to. This can't be specified
- traditionally and must be infered from the anonymous type passed
- as a parameter.
-
- The JSON to deserialize.
- The anonymous type object.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized anonymous type from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type using a collection of .
-
- The type of the object to deserialize to.
- The JSON to deserialize.
- Converters to use while deserializing.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type using .
-
- The type of the object to deserialize to.
- The object to deserialize.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type using a collection of .
-
- The JSON to deserialize.
- The type of the object to deserialize.
- Converters to use while deserializing.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type using .
-
- The JSON to deserialize.
- The type of the object to deserialize to.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized object from the JSON string.
-
-
-
- Populates the object with values from the JSON string.
-
- The JSON to populate values from.
- The target object to populate values onto.
-
-
-
- Populates the object with values from the JSON string using .
-
- The JSON to populate values from.
- The target object to populate values onto.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
-
-
-
- Serializes the XML node to a JSON string.
-
- The node to serialize.
- A JSON string of the XmlNode.
-
-
-
- Serializes the XML node to a JSON string using formatting.
-
- The node to serialize.
- Indicates how the output is formatted.
- A JSON string of the XmlNode.
-
-
-
- Serializes the XML node to a JSON string using formatting and omits the root object if is true.
-
- The node to serialize.
- Indicates how the output is formatted.
- Omits writing the root object.
- A JSON string of the XmlNode.
-
-
-
- Deserializes the XmlNode from a JSON string.
-
- The JSON string.
- The deserialized XmlNode
-
-
-
- Deserializes the XmlNode from a JSON string nested in a root elment specified by .
-
- The JSON string.
- The name of the root element to append when deserializing.
- The deserialized XmlNode
-
-
-
- Deserializes the XmlNode from a JSON string nested in a root elment specified by
- and writes a .NET array attribute for collections.
-
- The JSON string.
- The name of the root element to append when deserializing.
-
- A flag to indicate whether to write the Json.NET array attribute.
- This attribute helps preserve arrays when converting the written XML back to JSON.
-
- The deserialized XmlNode
-
-
-
- Serializes the to a JSON string.
-
- The node to convert to JSON.
- A JSON string of the XNode.
-
-
-
- Serializes the to a JSON string using formatting.
-
- The node to convert to JSON.
- Indicates how the output is formatted.
- A JSON string of the XNode.
-
-
-
- Serializes the to a JSON string using formatting and omits the root object if is true.
-
- The node to serialize.
- Indicates how the output is formatted.
- Omits writing the root object.
- A JSON string of the XNode.
-
-
-
- Deserializes the from a JSON string.
-
- The JSON string.
- The deserialized XNode
-
-
-
- Deserializes the from a JSON string nested in a root elment specified by .
-
- The JSON string.
- The name of the root element to append when deserializing.
- The deserialized XNode
-
-
-
- Deserializes the from a JSON string nested in a root elment specified by
- and writes a .NET array attribute for collections.
-
- The JSON string.
- The name of the root element to append when deserializing.
-
- A flag to indicate whether to write the Json.NET array attribute.
- This attribute helps preserve arrays when converting the written XML back to JSON.
-
- The deserialized XNode
-
-
-
- The exception thrown when an error occurs during JSON serialization or deserialization.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class
- with a specified error message.
-
- The error message that explains the reason for the exception.
-
-
-
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
-
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
-
-
-
- Initializes a new instance of the class.
-
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
- The parameter is null.
- The class name is null or is zero (0).
-
-
-
- Serializes and deserializes objects into and from the JSON format.
- The enables you to control how objects are encoded into JSON.
-
-
-
-
- Occurs when the errors during serialization and deserialization.
-
-
-
-
- Gets or sets the used by the serializer when resolving references.
-
-
-
-
- Gets or sets the used by the serializer when resolving type names.
-
-
-
-
- Gets or sets the used by the serializer when writing trace messages.
-
- The trace writer.
-
-
-
- Gets or sets the equality comparer used by the serializer when comparing references.
-
- The equality comparer.
-
-
-
- Gets or sets how type name writing and reading is handled by the serializer.
-
-
- should be used with caution when your application deserializes JSON from an external source.
- Incoming types should be validated with a custom
- when deserializing with a value other than TypeNameHandling.None.
-
-
-
-
- Gets or sets how a type name assembly is written and resolved by the serializer.
-
- The type name assembly format.
-
-
-
- Gets or sets how object references are preserved by the serializer.
-
-
-
-
- Get or set how reference loops (e.g. a class referencing itself) is handled.
-
-
-
-
- Get or set how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization.
-
-
-
-
- Get or set how null values are handled during serialization and deserialization.
-
-
-
-
- Get or set how null default are handled during serialization and deserialization.
-
-
-
-
- Gets or sets how objects are created during deserialization.
-
- The object creation handling.
-
-
-
- Gets or sets how constructors are used during deserialization.
-
- The constructor handling.
-
-
-
- Gets or sets how metadata properties are used during deserialization.
-
- The metadata properties handling.
-
-
-
- Gets a collection that will be used during serialization.
-
- Collection that will be used during serialization.
-
-
-
- Gets or sets the contract resolver used by the serializer when
- serializing .NET objects to JSON and vice versa.
-
-
-
-
- Gets or sets the used by the serializer when invoking serialization callback methods.
-
- The context.
-
-
-
- Indicates how JSON text output is formatted.
-
-
-
-
- Get or set how dates are written to JSON text.
-
-
-
-
- Get or set how time zones are handling during serialization and deserialization.
-
-
-
-
- Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
-
-
-
-
- Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
-
-
-
-
- Get or set how special floating point numbers, e.g. ,
- and ,
- are written as JSON text.
-
-
-
-
- Get or set how strings are escaped when writing JSON text.
-
-
-
-
- Get or set how and values are formatted when writing JSON text, and the expected date format when reading JSON text.
-
-
-
-
- Gets or sets the culture used when reading JSON. Defaults to .
-
-
-
-
- Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a .
-
-
-
-
- Gets a value indicating whether there will be a check for additional JSON content after deserializing an object.
-
-
- true if there will be a check for additional JSON content after deserializing an object; otherwise, false.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Creates a new instance.
- The will not use default settings
- from .
-
-
- A new instance.
- The will not use default settings
- from .
-
-
-
-
- Creates a new instance using the specified .
- The will not use default settings
- from .
-
- The settings to be applied to the .
-
- A new instance using the specified .
- The will not use default settings
- from .
-
-
-
-
- Creates a new instance.
- The will use default settings
- from .
-
-
- A new instance.
- The will use default settings
- from .
-
-
-
-
- Creates a new instance using the specified .
- The will use default settings
- from as well as the specified .
-
- The settings to be applied to the .
-
- A new instance using the specified .
- The will use default settings
- from as well as the specified .
-
-
-
-
- Populates the JSON values onto the target object.
-
- The that contains the JSON structure to reader values from.
- The target object to populate values onto.
-
-
-
- Populates the JSON values onto the target object.
-
- The that contains the JSON structure to reader values from.
- The target object to populate values onto.
-
-
-
- Deserializes the JSON structure contained by the specified .
-
- The that contains the JSON structure to deserialize.
- The being deserialized.
-
-
-
- Deserializes the JSON structure contained by the specified
- into an instance of the specified type.
-
- The containing the object.
- The of object being deserialized.
- The instance of being deserialized.
-
-
-
- Deserializes the JSON structure contained by the specified
- into an instance of the specified type.
-
- The containing the object.
- The type of the object to deserialize.
- The instance of being deserialized.
-
-
-
- Deserializes the JSON structure contained by the specified
- into an instance of the specified type.
-
- The containing the object.
- The of object being deserialized.
- The instance of being deserialized.
-
-
-
- Serializes the specified and writes the JSON structure
- to a Stream using the specified .
-
- The used to write the JSON structure.
- The to serialize.
-
-
-
- Serializes the specified and writes the JSON structure
- to a Stream using the specified .
-
- The used to write the JSON structure.
- The to serialize.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
-
-
-
- Serializes the specified and writes the JSON structure
- to a Stream using the specified .
-
- The used to write the JSON structure.
- The to serialize.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
-
-
-
- Serializes the specified and writes the JSON structure
- to a Stream using the specified .
-
- The used to write the JSON structure.
- The to serialize.
-
-
-
- Specifies missing member handling options for the .
-
-
-
-
- Ignore a missing member and do not attempt to deserialize it.
-
-
-
-
- Throw a when a missing member is encountered during deserialization.
-
-
-
-
- Specifies null value handling options for the .
-
-
-
-
-
-
-
-
- Include null values when serializing and deserializing objects.
-
-
-
-
- Ignore null values when serializing and deserializing objects.
-
-
-
-
- Specifies reference loop handling options for the .
-
-
-
-
- Throw a when a loop is encountered.
-
-
-
-
- Ignore loop references and do not serialize.
-
-
-
-
- Serialize loop references.
-
-
-
-
- Specifies type name handling options for the .
-
-
- should be used with caution when your application deserializes JSON from an external source.
- Incoming types should be validated with a custom
- when deserializing with a value other than TypeNameHandling.None.
-
-
-
-
- Do not include the .NET type name when serializing types.
-
-
-
-
- Include the .NET type name when serializing into a JSON object structure.
-
-
-
-
- Include the .NET type name when serializing into a JSON array structure.
-
-
-
-
- Always include the .NET type name when serializing.
-
-
-
-
- Include the .NET type name when the type of the object being serialized is not the same as its declared type.
-
-
-
-
- Specifies the type of JSON token.
-
-
-
-
- This is returned by the if a method has not been called.
-
-
-
-
- An object start token.
-
-
-
-
- An array start token.
-
-
-
-
- A constructor start token.
-
-
-
-
- An object property name.
-
-
-
-
- A comment.
-
-
-
-
- Raw JSON.
-
-
-
-
- An integer.
-
-
-
-
- A float.
-
-
-
-
- A string.
-
-
-
-
- A boolean.
-
-
-
-
- A null token.
-
-
-
-
- An undefined token.
-
-
-
-
- An object end token.
-
-
-
-
- An array end token.
-
-
-
-
- A constructor end token.
-
-
-
-
- A Date.
-
-
-
-
- Byte data.
-
-
-
-
- Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
-
-
-
-
- Gets or sets a value indicating whether the underlying stream or
- should be closed when the writer is closed.
-
-
- true to close the underlying stream or when
- the writer is closed; otherwise false. The default is true.
-
-
-
-
- Gets the top.
-
- The top.
-
-
-
- Gets the state of the writer.
-
-
-
-
- Gets the path of the writer.
-
-
-
-
- Indicates how JSON text output is formatted.
-
-
-
-
- Get or set how dates are written to JSON text.
-
-
-
-
- Get or set how time zones are handling when writing JSON text.
-
-
-
-
- Get or set how strings are escaped when writing JSON text.
-
-
-
-
- Get or set how special floating point numbers, e.g. ,
- and ,
- are written to JSON text.
-
-
-
-
- Get or set how and values are formatting when writing JSON text.
-
-
-
-
- Gets or sets the culture used when writing JSON. Defaults to .
-
-
-
-
- Creates an instance of the JsonWriter class.
-
-
-
-
- Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
-
-
-
-
- Closes this stream and the underlying stream.
-
-
-
-
- Writes the beginning of a JSON object.
-
-
-
-
- Writes the end of a JSON object.
-
-
-
-
- Writes the beginning of a JSON array.
-
-
-
-
- Writes the end of an array.
-
-
-
-
- Writes the start of a constructor with the given name.
-
- The name of the constructor.
-
-
-
- Writes the end constructor.
-
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
- A flag to indicate whether the text should be escaped when it is written as a JSON property name.
-
-
-
- Writes the end of the current JSON object or array.
-
-
-
-
- Writes the current token and its children.
-
- The to read the token from.
-
-
-
- Writes the current token.
-
- The to read the token from.
- A flag indicating whether the current token's children should be written.
-
-
-
- Writes the token and its value.
-
- The to write.
-
- The value to write.
- A value is only required for tokens that have an associated value, e.g. the property name for .
- A null value can be passed to the method for token's that don't have a value, e.g. .
-
-
-
- Writes the token.
-
- The to write.
-
-
-
- Writes the specified end token.
-
- The end token to write.
-
-
-
- Writes indent characters.
-
-
-
-
- Writes the JSON value delimiter.
-
-
-
-
- Writes an indent space.
-
-
-
-
- Writes a null value.
-
-
-
-
- Writes an undefined value.
-
-
-
-
- Writes raw JSON without changing the writer's state.
-
- The raw JSON to write.
-
-
-
- Writes raw JSON where a value is expected and updates the writer's state.
-
- The raw JSON to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value.
-
- The [] value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
- An error will raised if the value cannot be written as a single JSON token.
-
- The value to write.
-
-
-
- Writes out a comment /*...*/ containing the specified text.
-
- Text to place inside the comment.
-
-
-
- Writes out the given white space.
-
- The string of white space characters.
-
-
-
- Releases unmanaged and - optionally - managed resources
-
- true to release both managed and unmanaged resources; false to release only unmanaged resources.
-
-
-
- Sets the state of the JsonWriter,
-
- The JsonToken being written.
- The value being written.
-
-
-
- Specifies the state of the .
-
-
-
-
- An exception has been thrown, which has left the in an invalid state.
- You may call the method to put the in the Closed state.
- Any other method calls results in an being thrown.
-
-
-
-
- The method has been called.
-
-
-
-
- An object is being written.
-
-
-
-
- A array is being written.
-
-
-
-
- A constructor is being written.
-
-
-
-
- A property is being written.
-
-
-
-
- A write method has not been called.
-
-
-
-
diff --git a/Assets/Plugins/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.XML.meta b/Assets/Plugins/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.XML.meta
deleted file mode 100644
index 7623f10..0000000
--- a/Assets/Plugins/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.XML.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: d6807fedb8dcaf04682d2c84f0ab753f
-timeCreated: 1466788355
-licenseType: Store
-TextScriptImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll b/Assets/Plugins/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll
deleted file mode 100644
index cea08b2..0000000
Binary files a/Assets/Plugins/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll and /dev/null differ
diff --git a/Assets/Plugins/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll.meta b/Assets/Plugins/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll.meta
deleted file mode 100644
index 51d1c02..0000000
--- a/Assets/Plugins/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll.meta
+++ /dev/null
@@ -1,106 +0,0 @@
-fileFormatVersion: 2
-guid: 17aef65a15b471f468b5fbeb4ff0c6a1
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- : Linux
- second:
- enabled: 1
- settings:
- CPU: x86
- - first:
- : LinuxUniversal
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- : OSXIntel
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- : OSXIntel64
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- : SamsungTV
- second:
- enabled: 0
- settings:
- STV_MODEL: STANDARD_13
- - first:
- Android: Android
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- - first:
- Standalone: Linux64
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- DontProcess: False
- PlaceholderPath:
- SDK: AnySDK
- ScriptingBackend: Il2Cpp
- - first:
- iPhone: iOS
- second:
- enabled: 0
- settings:
- CompileFlags:
- FrameworkDependencies:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/JsonDotNet/Assemblies/Windows.meta b/Assets/Plugins/JsonDotNet/Assemblies/Windows.meta
deleted file mode 100644
index 0c47db5..0000000
--- a/Assets/Plugins/JsonDotNet/Assemblies/Windows.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 1418141139a6ac443b18cb05c0643a29
-folderAsset: yes
-timeCreated: 1466788345
-licenseType: Store
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/JsonDotNet/Assemblies/Windows/Newtonsoft.Json.XML b/Assets/Plugins/JsonDotNet/Assemblies/Windows/Newtonsoft.Json.XML
deleted file mode 100644
index ed0eec5..0000000
--- a/Assets/Plugins/JsonDotNet/Assemblies/Windows/Newtonsoft.Json.XML
+++ /dev/null
@@ -1,7977 +0,0 @@
-
-
-
- Newtonsoft.Json
-
-
-
-
- Represents a BSON Oid (object id).
-
-
-
-
- Gets or sets the value of the Oid.
-
- The value of the Oid.
-
-
-
- Initializes a new instance of the class.
-
- The Oid value.
-
-
-
- Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
-
-
-
-
- Gets or sets a value indicating whether binary data reading should compatible with incorrect Json.NET 3.5 written binary.
-
-
- true if binary data reading will be compatible with incorrect Json.NET 3.5 written binary; otherwise, false.
-
-
-
-
- Gets or sets a value indicating whether the root object will be read as a JSON array.
-
-
- true if the root object will be read as a JSON array; otherwise, false.
-
-
-
-
- Gets or sets the used when reading values from BSON.
-
- The used when reading values from BSON.
-
-
-
- Initializes a new instance of the class.
-
- The stream.
-
-
-
- Initializes a new instance of the class.
-
- The reader.
-
-
-
- Initializes a new instance of the class.
-
- The stream.
- if set to true the root object will be read as a JSON array.
- The used when reading values from BSON.
-
-
-
- Initializes a new instance of the class.
-
- The reader.
- if set to true the root object will be read as a JSON array.
- The used when reading values from BSON.
-
-
-
- Reads the next JSON token from the stream.
-
-
- true if the next token was read successfully; false if there are no more tokens to read.
-
-
-
-
- Changes the to Closed.
-
-
-
-
- Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
-
-
-
-
- Gets or sets the used when writing values to BSON.
- When set to no conversion will occur.
-
- The used when writing values to BSON.
-
-
-
- Initializes a new instance of the class.
-
- The stream.
-
-
-
- Initializes a new instance of the class.
-
- The writer.
-
-
-
- Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
-
-
-
-
- Writes the end.
-
- The token.
-
-
-
- Writes out a comment /*...*/ containing the specified text.
-
- Text to place inside the comment.
-
-
-
- Writes the start of a constructor with the given name.
-
- The name of the constructor.
-
-
-
- Writes raw JSON.
-
- The raw JSON to write.
-
-
-
- Writes raw JSON where a value is expected and updates the writer's state.
-
- The raw JSON to write.
-
-
-
- Writes the beginning of a JSON array.
-
-
-
-
- Writes the beginning of a JSON object.
-
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
-
-
-
- Closes this stream and the underlying stream.
-
-
-
-
- Writes a value.
- An error will raised if the value cannot be written as a single JSON token.
-
- The value to write.
-
-
-
- Writes a null value.
-
-
-
-
- Writes an undefined value.
-
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value.
-
- The [] value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value that represents a BSON object id.
-
- The Object ID value to write.
-
-
-
- Writes a BSON regex.
-
- The regex pattern.
- The regex options.
-
-
-
- Specifies how constructors are used when initializing objects during deserialization by the .
-
-
-
-
- First attempt to use the public default constructor, then fall back to single paramatized constructor, then the non-public default constructor.
-
-
-
-
- Json.NET will use a non-public default constructor before falling back to a paramatized constructor.
-
-
-
-
- Converts a to and from JSON and BSON.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Create a custom object
-
- The object type to convert.
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Creates an object which will then be populated by the serializer.
-
- Type of the object.
- The created object.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Gets a value indicating whether this can write JSON.
-
-
- true if this can write JSON; otherwise, false.
-
-
-
-
- Provides a base class for converting a to and from JSON.
-
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Converts a F# discriminated union type to and from JSON.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Converts an ExpandoObject to and from JSON.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Gets a value indicating whether this can write JSON.
-
-
- true if this can write JSON; otherwise, false.
-
-
-
-
-
-
-
-
-
-
-
- Converts a to and from the ISO 8601 date format (e.g. 2008-04-12T12:53Z).
-
-
-
-
- Gets or sets the date time styles used when converting a date to and from JSON.
-
- The date time styles used when converting a date to and from JSON.
-
-
-
- Gets or sets the date time format used when converting a date to and from JSON.
-
- The date time format used when converting a date to and from JSON.
-
-
-
- Gets or sets the culture used when converting a date to and from JSON.
-
- The culture used when converting a date to and from JSON.
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Converts a to and from a JavaScript date constructor (e.g. new Date(52231943)).
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing property value of the JSON that is being converted.
- The calling serializer.
- The object value.
-
-
-
- Converts a to and from JSON.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Converts a to and from JSON and BSON.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Converts an to and from its name string value.
-
-
-
-
- Gets or sets a value indicating whether the written enum text should be camel case.
-
- true if the written enum text will be camel case; otherwise, false.
-
-
-
- Gets or sets a value indicating whether integer values are allowed.
-
- true if integers are allowed; otherwise, false.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- true if the written enum text will be camel case; otherwise, false.
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Json Converter for Vector2, Vector3 and Vector4. Only serializes x, y, (z) and (w) properties.
-
-
-
-
- Default Constructor - All Vector types enabled by default
-
-
-
-
- Selectively enable Vector types
-
- Use for Vector2 objects
- Use for Vector3 objects
- Use for Vector4 objects
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Converts a to and from a string (e.g. "1.2.3.4").
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing property value of the JSON that is being converted.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Converts XML to and from JSON.
-
-
-
-
- Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produces multiple root elements.
-
- The name of the deserialize root element.
-
-
-
- Gets or sets a flag to indicate whether to write the Json.NET array attribute.
- This attribute helps preserve arrays when converting the written XML back to JSON.
-
- true if the array attibute is written to the XML; otherwise, false.
-
-
-
- Gets or sets a value indicating whether to write the root JSON object.
-
- true if the JSON root object is omitted; otherwise, false.
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The calling serializer.
- The value.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Checks if the attributeName is a namespace attribute.
-
- Attribute name to test.
- The attribute name prefix if it has one, otherwise an empty string.
- True if attribute name is for a namespace attribute, otherwise false.
-
-
-
- Determines whether this instance can convert the specified value type.
-
- Type of the value.
-
- true if this instance can convert the specified value type; otherwise, false.
-
-
-
-
- Specifies how dates are formatted when writing JSON text.
-
-
-
-
- Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z".
-
-
-
-
- Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/".
-
-
-
-
- Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text.
-
-
-
-
- Date formatted strings are not parsed to a date type and are read as strings.
-
-
-
-
- Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to .
-
-
-
-
- Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to .
-
-
-
-
- Specifies how to treat the time value when converting between string and .
-
-
-
-
- Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time.
-
-
-
-
- Treat as a UTC. If the object represents a local time, it is converted to a UTC.
-
-
-
-
- Treat as a local time if a is being converted to a string.
- If a string is being converted to , convert to a local time if a time zone is specified.
-
-
-
-
- Time zone information should be preserved when converting.
-
-
-
-
- Specifies default value handling options for the .
-
-
-
-
-
-
-
-
- Include members where the member value is the same as the member's default value when serializing objects.
- Included members are written to JSON. Has no effect when deserializing.
-
-
-
-
- Ignore members where the member value is the same as the member's default value when serializing objects
- so that is is not written to JSON.
- This option will ignore all default values (e.g. null for objects and nullable types; 0 for integers,
- decimals and floating point numbers; and false for booleans). The default value ignored can be changed by
- placing the on the property.
-
-
-
-
- Members with a default value but no JSON will be set to their default value when deserializing.
-
-
-
-
- Ignore members where the member value is the same as the member's default value when serializing objects
- and sets members to their default value when deserializing.
-
-
-
-
- Specifies float format handling options when writing special floating point numbers, e.g. ,
- and with .
-
-
-
-
- Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity".
-
-
-
-
- Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity.
- Note that this will produce non-valid JSON.
-
-
-
-
- Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a property.
-
-
-
-
- Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
-
-
-
-
- Floating point numbers are parsed to .
-
-
-
-
- Floating point numbers are parsed to .
-
-
-
-
- Specifies formatting options for the .
-
-
-
-
- No special formatting is applied. This is the default.
-
-
-
-
- Causes child objects to be indented according to the and settings.
-
-
-
-
- Provides an interface for using pooled arrays.
-
- The array type content.
-
-
-
- Rent a array from the pool. This array must be returned when it is no longer needed.
-
- The minimum required length of the array. The returned array may be longer.
- The rented array from the pool. This array must be returned when it is no longer needed.
-
-
-
- Return an array to the pool.
-
- The array that is being returned.
-
-
-
- Provides an interface to enable a class to return line and position information.
-
-
-
-
- Gets a value indicating whether the class can return line information.
-
-
- true if LineNumber and LinePosition can be provided; otherwise, false.
-
-
-
-
- Gets the current line number.
-
- The current line number or 0 if no line information is available (for example, HasLineInfo returns false).
-
-
-
- Gets the current line position.
-
- The current line position or 0 if no line information is available (for example, HasLineInfo returns false).
-
-
-
- Instructs the how to serialize the collection.
-
-
-
-
- Gets or sets a value indicating whether null items are allowed in the collection.
-
- true if null items are allowed in the collection; otherwise, false.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with a flag indicating whether the array can contain null items
-
- A flag indicating whether the array can contain null items.
-
-
-
- Initializes a new instance of the class with the specified container Id.
-
- The container Id.
-
-
-
- Instructs the to use the specified constructor when deserializing that object.
-
-
-
-
- Instructs the how to serialize the object.
-
-
-
-
- Gets or sets the id.
-
- The id.
-
-
-
- Gets or sets the title.
-
- The title.
-
-
-
- Gets or sets the description.
-
- The description.
-
-
-
- Gets the collection's items converter.
-
- The collection's items converter.
-
-
-
- The parameter list to use when constructing the JsonConverter described by ItemConverterType.
- If null, the default constructor is used.
- When non-null, there must be a constructor defined in the JsonConverter that exactly matches the number,
- order, and type of these parameters.
-
-
- [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
-
-
-
-
- Gets or sets a value that indicates whether to preserve object references.
-
-
- true to keep object reference; otherwise, false. The default is false.
-
-
-
-
- Gets or sets a value that indicates whether to preserve collection's items references.
-
-
- true to keep collection's items object references; otherwise, false. The default is false.
-
-
-
-
- Gets or sets the reference loop handling used when serializing the collection's items.
-
- The reference loop handling.
-
-
-
- Gets or sets the type name handling used when serializing the collection's items.
-
- The type name handling.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with the specified container Id.
-
- The container Id.
-
-
-
- Provides methods for converting between common language runtime types and JSON types.
-
-
-
-
-
-
-
- Gets or sets a function that creates default .
- Default settings are automatically used by serialization methods on ,
- and and on .
- To serialize without using any default settings create a with
- .
-
-
-
-
- Represents JavaScript's boolean value true as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's boolean value false as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's null as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's undefined as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's positive infinity as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's negative infinity as a string. This field is read-only.
-
-
-
-
- Represents JavaScript's NaN as a string. This field is read-only.
-
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation using the specified.
-
- The value to convert.
- The format the date will be converted to.
- The time zone handling when the date is converted to a string.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation using the specified.
-
- The value to convert.
- The format the date will be converted to.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- The string delimiter character.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- The string delimiter character.
- The string escape handling.
- A JSON string representation of the .
-
-
-
- Converts the to its JSON string representation.
-
- The value to convert.
- A JSON string representation of the .
-
-
-
- Serializes the specified object to a JSON string.
-
- The object to serialize.
- A JSON string representation of the object.
-
-
-
- Serializes the specified object to a JSON string using formatting.
-
- The object to serialize.
- Indicates how the output is formatted.
-
- A JSON string representation of the object.
-
-
-
-
- Serializes the specified object to a JSON string using a collection of .
-
- The object to serialize.
- A collection converters used while serializing.
- A JSON string representation of the object.
-
-
-
- Serializes the specified object to a JSON string using formatting and a collection of .
-
- The object to serialize.
- Indicates how the output is formatted.
- A collection converters used while serializing.
- A JSON string representation of the object.
-
-
-
- Serializes the specified object to a JSON string using .
-
- The object to serialize.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- A JSON string representation of the object.
-
-
-
-
- Serializes the specified object to a JSON string using a type, formatting and .
-
- The object to serialize.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
-
- A JSON string representation of the object.
-
-
-
-
- Serializes the specified object to a JSON string using formatting and .
-
- The object to serialize.
- Indicates how the output is formatted.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- A JSON string representation of the object.
-
-
-
-
- Serializes the specified object to a JSON string using a type, formatting and .
-
- The object to serialize.
- Indicates how the output is formatted.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
-
- A JSON string representation of the object.
-
-
-
-
- Asynchronously serializes the specified object to a JSON string.
- Serialization will happen on a new thread.
-
- The object to serialize.
-
- A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object.
-
-
-
-
- Asynchronously serializes the specified object to a JSON string using formatting.
- Serialization will happen on a new thread.
-
- The object to serialize.
- Indicates how the output is formatted.
-
- A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object.
-
-
-
-
- Asynchronously serializes the specified object to a JSON string using formatting and a collection of .
- Serialization will happen on a new thread.
-
- The object to serialize.
- Indicates how the output is formatted.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object.
-
-
-
-
- Deserializes the JSON to a .NET object.
-
- The JSON to deserialize.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to a .NET object using .
-
- The JSON to deserialize.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type.
-
- The JSON to deserialize.
- The of object being deserialized.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type.
-
- The type of the object to deserialize to.
- The JSON to deserialize.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the given anonymous type.
-
-
- The anonymous type to deserialize to. This can't be specified
- traditionally and must be infered from the anonymous type passed
- as a parameter.
-
- The JSON to deserialize.
- The anonymous type object.
- The deserialized anonymous type from the JSON string.
-
-
-
- Deserializes the JSON to the given anonymous type using .
-
-
- The anonymous type to deserialize to. This can't be specified
- traditionally and must be infered from the anonymous type passed
- as a parameter.
-
- The JSON to deserialize.
- The anonymous type object.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized anonymous type from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type using a collection of .
-
- The type of the object to deserialize to.
- The JSON to deserialize.
- Converters to use while deserializing.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type using .
-
- The type of the object to deserialize to.
- The object to deserialize.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type using a collection of .
-
- The JSON to deserialize.
- The type of the object to deserialize.
- Converters to use while deserializing.
- The deserialized object from the JSON string.
-
-
-
- Deserializes the JSON to the specified .NET type using .
-
- The JSON to deserialize.
- The type of the object to deserialize to.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized object from the JSON string.
-
-
-
- Asynchronously deserializes the JSON to the specified .NET type.
- Deserialization will happen on a new thread.
-
- The type of the object to deserialize to.
- The JSON to deserialize.
-
- A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string.
-
-
-
-
- Asynchronously deserializes the JSON to the specified .NET type using .
- Deserialization will happen on a new thread.
-
- The type of the object to deserialize to.
- The JSON to deserialize.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
-
- A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string.
-
-
-
-
- Asynchronously deserializes the JSON to the specified .NET type.
- Deserialization will happen on a new thread.
-
- The JSON to deserialize.
-
- A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string.
-
-
-
-
- Asynchronously deserializes the JSON to the specified .NET type using .
- Deserialization will happen on a new thread.
-
- The JSON to deserialize.
- The type of the object to deserialize to.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
-
- A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string.
-
-
-
-
- Populates the object with values from the JSON string.
-
- The JSON to populate values from.
- The target object to populate values onto.
-
-
-
- Populates the object with values from the JSON string using .
-
- The JSON to populate values from.
- The target object to populate values onto.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
-
-
-
- Asynchronously populates the object with values from the JSON string using .
-
- The JSON to populate values from.
- The target object to populate values onto.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
-
- A task that represents the asynchronous populate operation.
-
-
-
-
- Serializes the to a JSON string.
-
- The node to convert to JSON.
- A JSON string of the XNode.
-
-
-
- Serializes the to a JSON string using formatting.
-
- The node to convert to JSON.
- Indicates how the output is formatted.
- A JSON string of the XNode.
-
-
-
- Serializes the to a JSON string using formatting and omits the root object if is true.
-
- The node to serialize.
- Indicates how the output is formatted.
- Omits writing the root object.
- A JSON string of the XNode.
-
-
-
- Deserializes the from a JSON string.
-
- The JSON string.
- The deserialized XNode
-
-
-
- Deserializes the from a JSON string nested in a root elment specified by .
-
- The JSON string.
- The name of the root element to append when deserializing.
- The deserialized XNode
-
-
-
- Deserializes the from a JSON string nested in a root elment specified by
- and writes a .NET array attribute for collections.
-
- The JSON string.
- The name of the root element to append when deserializing.
-
- A flag to indicate whether to write the Json.NET array attribute.
- This attribute helps preserve arrays when converting the written XML back to JSON.
-
- The deserialized XNode
-
-
-
- Converts an object to and from JSON.
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
-
- Reads the JSON representation of the object.
-
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
-
-
- Determines whether this instance can convert the specified object type.
-
- Type of the object.
-
- true if this instance can convert the specified object type; otherwise, false.
-
-
-
-
- Gets a value indicating whether this can read JSON.
-
- true if this can read JSON; otherwise, false.
-
-
-
- Gets a value indicating whether this can write JSON.
-
- true if this can write JSON; otherwise, false.
-
-
-
- Instructs the to use the specified when serializing the member or class.
-
-
-
-
- Gets the of the converter.
-
- The of the converter.
-
-
-
- The parameter list to use when constructing the JsonConverter described by ConverterType.
- If null, the default constructor is used.
-
-
-
-
- Initializes a new instance of the class.
-
- Type of the converter.
-
-
-
- Initializes a new instance of the class.
-
- Type of the converter.
- Parameter list to use when constructing the JsonConverter. Can be null.
-
-
-
- Represents a collection of .
-
-
-
-
- Instructs the how to serialize the collection.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with the specified container Id.
-
- The container Id.
-
-
-
- The exception thrown when an error occurs during JSON serialization or deserialization.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class
- with a specified error message.
-
- The error message that explains the reason for the exception.
-
-
-
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
-
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
-
-
-
- Instructs the to deserialize properties with no matching class member into the specified collection
- and write values during serialization.
-
-
-
-
- Gets or sets a value that indicates whether to write extension data when serializing the object.
-
-
- true to write extension data when serializing the object; otherwise, false. The default is true.
-
-
-
-
- Gets or sets a value that indicates whether to read extension data when deserializing the object.
-
-
- true to read extension data when deserializing the object; otherwise, false. The default is true.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Instructs the not to serialize the public field or public read/write property value.
-
-
-
-
- Instructs the how to serialize the object.
-
-
-
-
- Gets or sets the member serialization.
-
- The member serialization.
-
-
-
- Gets or sets a value that indicates whether the object's properties are required.
-
-
- A value indicating whether the object's properties are required.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with the specified member serialization.
-
- The member serialization.
-
-
-
- Initializes a new instance of the class with the specified container Id.
-
- The container Id.
-
-
-
- Instructs the to always serialize the member with the specified name.
-
-
-
-
- Gets or sets the converter used when serializing the property's collection items.
-
- The collection's items converter.
-
-
-
- The parameter list to use when constructing the JsonConverter described by ItemConverterType.
- If null, the default constructor is used.
- When non-null, there must be a constructor defined in the JsonConverter that exactly matches the number,
- order, and type of these parameters.
-
-
- [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
-
-
-
-
- Gets or sets the null value handling used when serializing this property.
-
- The null value handling.
-
-
-
- Gets or sets the default value handling used when serializing this property.
-
- The default value handling.
-
-
-
- Gets or sets the reference loop handling used when serializing this property.
-
- The reference loop handling.
-
-
-
- Gets or sets the object creation handling used when deserializing this property.
-
- The object creation handling.
-
-
-
- Gets or sets the type name handling used when serializing this property.
-
- The type name handling.
-
-
-
- Gets or sets whether this property's value is serialized as a reference.
-
- Whether this property's value is serialized as a reference.
-
-
-
- Gets or sets the order of serialization of a member.
-
- The numeric order of serialization.
-
-
-
- Gets or sets a value indicating whether this property is required.
-
-
- A value indicating whether this property is required.
-
-
-
-
- Gets or sets the name of the property.
-
- The name of the property.
-
-
-
- Gets or sets the the reference loop handling used when serializing the property's collection items.
-
- The collection's items reference loop handling.
-
-
-
- Gets or sets the the type name handling used when serializing the property's collection items.
-
- The collection's items type name handling.
-
-
-
- Gets or sets whether this property's collection items are serialized as a reference.
-
- Whether this property's collection items are serialized as a reference.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class with the specified name.
-
- Name of the property.
-
-
-
- Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
-
-
-
-
- Specifies the state of the reader.
-
-
-
-
- The Read method has not been called.
-
-
-
-
- The end of the file has been reached successfully.
-
-
-
-
- Reader is at a property.
-
-
-
-
- Reader is at the start of an object.
-
-
-
-
- Reader is in an object.
-
-
-
-
- Reader is at the start of an array.
-
-
-
-
- Reader is in an array.
-
-
-
-
- The Close method has been called.
-
-
-
-
- Reader has just read a value.
-
-
-
-
- Reader is at the start of a constructor.
-
-
-
-
- Reader in a constructor.
-
-
-
-
- An error occurred that prevents the read operation from continuing.
-
-
-
-
- The end of the file has been reached successfully.
-
-
-
-
- Gets the current reader state.
-
- The current reader state.
-
-
-
- Gets or sets a value indicating whether the underlying stream or
- should be closed when the reader is closed.
-
-
- true to close the underlying stream or when
- the reader is closed; otherwise false. The default is true.
-
-
-
-
- Gets or sets a value indicating whether multiple pieces of JSON content can
- be read from a continuous stream without erroring.
-
-
- true to support reading multiple pieces of JSON content; otherwise false. The default is false.
-
-
-
-
- Gets the quotation mark character used to enclose the value of a string.
-
-
-
-
- Get or set how time zones are handling when reading JSON.
-
-
-
-
- Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
-
-
-
-
- Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
-
-
-
-
- Get or set how custom date formatted strings are parsed when reading JSON.
-
-
-
-
- Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a .
-
-
-
-
- Gets the type of the current JSON token.
-
-
-
-
- Gets the text value of the current JSON token.
-
-
-
-
- Gets The Common Language Runtime (CLR) type for the current JSON token.
-
-
-
-
- Gets the depth of the current token in the JSON document.
-
- The depth of the current token in the JSON document.
-
-
-
- Gets the path of the current JSON token.
-
-
-
-
- Gets or sets the culture used when reading JSON. Defaults to .
-
-
-
-
- Initializes a new instance of the class with the specified .
-
-
-
-
- Reads the next JSON token from the stream.
-
- true if the next token was read successfully; false if there are no more tokens to read.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a [].
-
- A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Skips the children of the current token.
-
-
-
-
- Sets the current token.
-
- The new token.
-
-
-
- Sets the current token and value.
-
- The new token.
- The value.
-
-
-
- Sets the state based on current token type.
-
-
-
-
- Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
-
-
-
-
- Releases unmanaged and - optionally - managed resources
-
- true to release both managed and unmanaged resources; false to release only unmanaged resources.
-
-
-
- Changes the to Closed.
-
-
-
-
- The exception thrown when an error occurs while reading JSON text.
-
-
-
-
- Gets the line number indicating where the error occurred.
-
- The line number indicating where the error occurred.
-
-
-
- Gets the line position indicating where the error occurred.
-
- The line position indicating where the error occurred.
-
-
-
- Gets the path to the JSON where the error occurred.
-
- The path to the JSON where the error occurred.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class
- with a specified error message.
-
- The error message that explains the reason for the exception.
-
-
-
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
-
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
-
-
-
- Instructs the to always serialize the member, and require the member has a value.
-
-
-
-
- The exception thrown when an error occurs during JSON serialization or deserialization.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class
- with a specified error message.
-
- The error message that explains the reason for the exception.
-
-
-
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
-
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
-
-
-
- Serializes and deserializes objects into and from the JSON format.
- The enables you to control how objects are encoded into JSON.
-
-
-
-
- Occurs when the errors during serialization and deserialization.
-
-
-
-
- Gets or sets the used by the serializer when resolving references.
-
-
-
-
- Gets or sets the used by the serializer when resolving type names.
-
-
-
-
- Gets or sets the used by the serializer when writing trace messages.
-
- The trace writer.
-
-
-
- Gets or sets the equality comparer used by the serializer when comparing references.
-
- The equality comparer.
-
-
-
- Gets or sets how type name writing and reading is handled by the serializer.
-
-
- should be used with caution when your application deserializes JSON from an external source.
- Incoming types should be validated with a custom
- when deserializing with a value other than TypeNameHandling.None.
-
-
-
-
- Gets or sets how a type name assembly is written and resolved by the serializer.
-
- The type name assembly format.
-
-
-
- Gets or sets how object references are preserved by the serializer.
-
-
-
-
- Get or set how reference loops (e.g. a class referencing itself) is handled.
-
-
-
-
- Get or set how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization.
-
-
-
-
- Get or set how null values are handled during serialization and deserialization.
-
-
-
-
- Get or set how null default are handled during serialization and deserialization.
-
-
-
-
- Gets or sets how objects are created during deserialization.
-
- The object creation handling.
-
-
-
- Gets or sets how constructors are used during deserialization.
-
- The constructor handling.
-
-
-
- Gets or sets how metadata properties are used during deserialization.
-
- The metadata properties handling.
-
-
-
- Gets a collection that will be used during serialization.
-
- Collection that will be used during serialization.
-
-
-
- Gets or sets the contract resolver used by the serializer when
- serializing .NET objects to JSON and vice versa.
-
-
-
-
- Gets or sets the used by the serializer when invoking serialization callback methods.
-
- The context.
-
-
-
- Indicates how JSON text output is formatted.
-
-
-
-
- Get or set how dates are written to JSON text.
-
-
-
-
- Get or set how time zones are handling during serialization and deserialization.
-
-
-
-
- Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
-
-
-
-
- Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
-
-
-
-
- Get or set how special floating point numbers, e.g. ,
- and ,
- are written as JSON text.
-
-
-
-
- Get or set how strings are escaped when writing JSON text.
-
-
-
-
- Get or set how and values are formatted when writing JSON text, and the expected date format when reading JSON text.
-
-
-
-
- Gets or sets the culture used when reading JSON. Defaults to .
-
-
-
-
- Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a .
-
-
-
-
- Gets a value indicating whether there will be a check for additional JSON content after deserializing an object.
-
-
- true if there will be a check for additional JSON content after deserializing an object; otherwise, false.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Creates a new instance.
- The will not use default settings
- from .
-
-
- A new instance.
- The will not use default settings
- from .
-
-
-
-
- Creates a new instance using the specified .
- The will not use default settings
- from .
-
- The settings to be applied to the .
-
- A new instance using the specified .
- The will not use default settings
- from .
-
-
-
-
- Creates a new instance.
- The will use default settings
- from .
-
-
- A new instance.
- The will use default settings
- from .
-
-
-
-
- Creates a new instance using the specified .
- The will use default settings
- from as well as the specified .
-
- The settings to be applied to the .
-
- A new instance using the specified .
- The will use default settings
- from as well as the specified .
-
-
-
-
- Populates the JSON values onto the target object.
-
- The that contains the JSON structure to reader values from.
- The target object to populate values onto.
-
-
-
- Populates the JSON values onto the target object.
-
- The that contains the JSON structure to reader values from.
- The target object to populate values onto.
-
-
-
- Deserializes the JSON structure contained by the specified .
-
- The that contains the JSON structure to deserialize.
- The being deserialized.
-
-
-
- Deserializes the JSON structure contained by the specified
- into an instance of the specified type.
-
- The containing the object.
- The of object being deserialized.
- The instance of being deserialized.
-
-
-
- Deserializes the JSON structure contained by the specified
- into an instance of the specified type.
-
- The containing the object.
- The type of the object to deserialize.
- The instance of being deserialized.
-
-
-
- Deserializes the JSON structure contained by the specified
- into an instance of the specified type.
-
- The containing the object.
- The of object being deserialized.
- The instance of being deserialized.
-
-
-
- Serializes the specified and writes the JSON structure
- to a Stream using the specified .
-
- The used to write the JSON structure.
- The to serialize.
-
-
-
- Serializes the specified and writes the JSON structure
- to a Stream using the specified .
-
- The used to write the JSON structure.
- The to serialize.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
-
-
-
- Serializes the specified and writes the JSON structure
- to a Stream using the specified .
-
- The used to write the JSON structure.
- The to serialize.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
-
-
-
- Serializes the specified and writes the JSON structure
- to a Stream using the specified .
-
- The used to write the JSON structure.
- The to serialize.
-
-
-
- Specifies the settings on a object.
-
-
-
-
- Gets or sets how reference loops (e.g. a class referencing itself) is handled.
-
- Reference loop handling.
-
-
-
- Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization.
-
- Missing member handling.
-
-
-
- Gets or sets how objects are created during deserialization.
-
- The object creation handling.
-
-
-
- Gets or sets how null values are handled during serialization and deserialization.
-
- Null value handling.
-
-
-
- Gets or sets how null default are handled during serialization and deserialization.
-
- The default value handling.
-
-
-
- Gets or sets a collection that will be used during serialization.
-
- The converters.
-
-
-
- Gets or sets how object references are preserved by the serializer.
-
- The preserve references handling.
-
-
-
- Gets or sets how type name writing and reading is handled by the serializer.
-
-
- should be used with caution when your application deserializes JSON from an external source.
- Incoming types should be validated with a custom
- when deserializing with a value other than TypeNameHandling.None.
-
- The type name handling.
-
-
-
- Gets or sets how metadata properties are used during deserialization.
-
- The metadata properties handling.
-
-
-
- Gets or sets how a type name assembly is written and resolved by the serializer.
-
- The type name assembly format.
-
-
-
- Gets or sets how constructors are used during deserialization.
-
- The constructor handling.
-
-
-
- Gets or sets the contract resolver used by the serializer when
- serializing .NET objects to JSON and vice versa.
-
- The contract resolver.
-
-
-
- Gets or sets the equality comparer used by the serializer when comparing references.
-
- The equality comparer.
-
-
-
- Gets or sets the used by the serializer when resolving references.
-
- The reference resolver.
-
-
-
- Gets or sets a function that creates the used by the serializer when resolving references.
-
- A function that creates the used by the serializer when resolving references.
-
-
-
- Gets or sets the used by the serializer when writing trace messages.
-
- The trace writer.
-
-
-
- Gets or sets the used by the serializer when resolving type names.
-
- The binder.
-
-
-
- Gets or sets the error handler called during serialization and deserialization.
-
- The error handler called during serialization and deserialization.
-
-
-
- Gets or sets the used by the serializer when invoking serialization callback methods.
-
- The context.
-
-
-
- Get or set how and values are formatted when writing JSON text, and the expected date format when reading JSON text.
-
-
-
-
- Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a .
-
-
-
-
- Indicates how JSON text output is formatted.
-
-
-
-
- Get or set how dates are written to JSON text.
-
-
-
-
- Get or set how time zones are handling during serialization and deserialization.
-
-
-
-
- Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
-
-
-
-
- Get or set how special floating point numbers, e.g. ,
- and ,
- are written as JSON.
-
-
-
-
- Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
-
-
-
-
- Get or set how strings are escaped when writing JSON text.
-
-
-
-
- Gets or sets the culture used when reading JSON. Defaults to .
-
-
-
-
- Gets a value indicating whether there will be a check for additional content after deserializing an object.
-
-
- true if there will be a check for additional content after deserializing an object; otherwise, false.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Represents a reader that provides fast, non-cached, forward-only access to JSON text data.
-
-
-
-
- Initializes a new instance of the class with the specified .
-
- The TextReader containing the XML data to read.
-
-
-
- Gets or sets the reader's character buffer pool.
-
-
-
-
- Reads the next JSON token from the stream.
-
-
- true if the next token was read successfully; false if there are no more tokens to read.
-
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a [].
-
- A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Reads the next JSON token from the stream as a .
-
- A . This method will return null at the end of an array.
-
-
-
- Changes the state to closed.
-
-
-
-
- Gets a value indicating whether the class can return line information.
-
-
- true if LineNumber and LinePosition can be provided; otherwise, false.
-
-
-
-
- Gets the current line number.
-
-
- The current line number or 0 if no line information is available (for example, HasLineInfo returns false).
-
-
-
-
- Gets the current line position.
-
-
- The current line position or 0 if no line information is available (for example, HasLineInfo returns false).
-
-
-
-
- Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
-
-
-
-
- Gets or sets the writer's character array pool.
-
-
-
-
- Gets or sets how many IndentChars to write for each level in the hierarchy when is set to Formatting.Indented.
-
-
-
-
- Gets or sets which character to use to quote attribute values.
-
-
-
-
- Gets or sets which character to use for indenting when is set to Formatting.Indented.
-
-
-
-
- Gets or sets a value indicating whether object names will be surrounded with quotes.
-
-
-
-
- Creates an instance of the JsonWriter class using the specified .
-
- The TextWriter to write to.
-
-
-
- Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
-
-
-
-
- Closes this stream and the underlying stream.
-
-
-
-
- Writes the beginning of a JSON object.
-
-
-
-
- Writes the beginning of a JSON array.
-
-
-
-
- Writes the start of a constructor with the given name.
-
- The name of the constructor.
-
-
-
- Writes the specified end token.
-
- The end token to write.
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
- A flag to indicate whether the text should be escaped when it is written as a JSON property name.
-
-
-
- Writes indent characters.
-
-
-
-
- Writes the JSON value delimiter.
-
-
-
-
- Writes an indent space.
-
-
-
-
- Writes a value.
- An error will raised if the value cannot be written as a single JSON token.
-
- The value to write.
-
-
-
- Writes a null value.
-
-
-
-
- Writes an undefined value.
-
-
-
-
- Writes raw JSON.
-
- The raw JSON to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value.
-
- The [] value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes out a comment /*...*/ containing the specified text.
-
- Text to place inside the comment.
-
-
-
- Writes out the given white space.
-
- The string of white space characters.
-
-
-
- Specifies the type of JSON token.
-
-
-
-
- This is returned by the if a method has not been called.
-
-
-
-
- An object start token.
-
-
-
-
- An array start token.
-
-
-
-
- A constructor start token.
-
-
-
-
- An object property name.
-
-
-
-
- A comment.
-
-
-
-
- Raw JSON.
-
-
-
-
- An integer.
-
-
-
-
- A float.
-
-
-
-
- A string.
-
-
-
-
- A boolean.
-
-
-
-
- A null token.
-
-
-
-
- An undefined token.
-
-
-
-
- An object end token.
-
-
-
-
- An array end token.
-
-
-
-
- A constructor end token.
-
-
-
-
- A Date.
-
-
-
-
- Byte data.
-
-
-
-
- Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
-
-
-
-
- Gets or sets a value indicating whether the underlying stream or
- should be closed when the writer is closed.
-
-
- true to close the underlying stream or when
- the writer is closed; otherwise false. The default is true.
-
-
-
-
- Gets the top.
-
- The top.
-
-
-
- Gets the state of the writer.
-
-
-
-
- Gets the path of the writer.
-
-
-
-
- Indicates how JSON text output is formatted.
-
-
-
-
- Get or set how dates are written to JSON text.
-
-
-
-
- Get or set how time zones are handling when writing JSON text.
-
-
-
-
- Get or set how strings are escaped when writing JSON text.
-
-
-
-
- Get or set how special floating point numbers, e.g. ,
- and ,
- are written to JSON text.
-
-
-
-
- Get or set how and values are formatting when writing JSON text.
-
-
-
-
- Gets or sets the culture used when writing JSON. Defaults to .
-
-
-
-
- Creates an instance of the JsonWriter class.
-
-
-
-
- Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
-
-
-
-
- Closes this stream and the underlying stream.
-
-
-
-
- Writes the beginning of a JSON object.
-
-
-
-
- Writes the end of a JSON object.
-
-
-
-
- Writes the beginning of a JSON array.
-
-
-
-
- Writes the end of an array.
-
-
-
-
- Writes the start of a constructor with the given name.
-
- The name of the constructor.
-
-
-
- Writes the end constructor.
-
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
- A flag to indicate whether the text should be escaped when it is written as a JSON property name.
-
-
-
- Writes the end of the current JSON object or array.
-
-
-
-
- Writes the current token and its children.
-
- The to read the token from.
-
-
-
- Writes the current token.
-
- The to read the token from.
- A flag indicating whether the current token's children should be written.
-
-
-
- Writes the token and its value.
-
- The to write.
-
- The value to write.
- A value is only required for tokens that have an associated value, e.g. the property name for .
- A null value can be passed to the method for token's that don't have a value, e.g. .
-
-
-
- Writes the token.
-
- The to write.
-
-
-
- Writes the specified end token.
-
- The end token to write.
-
-
-
- Writes indent characters.
-
-
-
-
- Writes the JSON value delimiter.
-
-
-
-
- Writes an indent space.
-
-
-
-
- Writes a null value.
-
-
-
-
- Writes an undefined value.
-
-
-
-
- Writes raw JSON without changing the writer's state.
-
- The raw JSON to write.
-
-
-
- Writes raw JSON where a value is expected and updates the writer's state.
-
- The raw JSON to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value.
-
- The [] value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
- An error will raised if the value cannot be written as a single JSON token.
-
- The value to write.
-
-
-
- Writes out a comment /*...*/ containing the specified text.
-
- Text to place inside the comment.
-
-
-
- Writes out the given white space.
-
- The string of white space characters.
-
-
-
- Releases unmanaged and - optionally - managed resources
-
- true to release both managed and unmanaged resources; false to release only unmanaged resources.
-
-
-
- Sets the state of the JsonWriter,
-
- The JsonToken being written.
- The value being written.
-
-
-
- The exception thrown when an error occurs while reading JSON text.
-
-
-
-
- Gets the path to the JSON where the error occurred.
-
- The path to the JSON where the error occurred.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class
- with a specified error message.
-
- The error message that explains the reason for the exception.
-
-
-
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
-
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
-
-
-
- Specifies how JSON comments are handled when loading JSON.
-
-
-
-
- Ignore comments.
-
-
-
-
- Load comments as a with type .
-
-
-
-
- Specifies how line information is handled when loading JSON.
-
-
-
-
- Ignore line information.
-
-
-
-
- Load line information.
-
-
-
-
- Contains the LINQ to JSON extension methods.
-
-
-
-
- Returns a collection of tokens that contains the ancestors of every token in the source collection.
-
- The type of the objects in source, constrained to .
- An of that contains the source collection.
- An of that contains the ancestors of every token in the source collection.
-
-
-
- Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection.
-
- The type of the objects in source, constrained to .
- An of that contains the source collection.
- An of that contains every token in the source collection, the ancestors of every token in the source collection.
-
-
-
- Returns a collection of tokens that contains the descendants of every token in the source collection.
-
- The type of the objects in source, constrained to .
- An of that contains the source collection.
- An of that contains the descendants of every token in the source collection.
-
-
-
- Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection.
-
- The type of the objects in source, constrained to .
- An of that contains the source collection.
- An of that contains every token in the source collection, and the descendants of every token in the source collection.
-
-
-
- Returns a collection of child properties of every object in the source collection.
-
- An of that contains the source collection.
- An of that contains the properties of every object in the source collection.
-
-
-
- Returns a collection of child values of every object in the source collection with the given key.
-
- An of that contains the source collection.
- The token key.
- An of that contains the values of every token in the source collection with the given key.
-
-
-
- Returns a collection of child values of every object in the source collection.
-
- An of that contains the source collection.
- An of that contains the values of every token in the source collection.
-
-
-
- Returns a collection of converted child values of every object in the source collection with the given key.
-
- The type to convert the values to.
- An of that contains the source collection.
- The token key.
- An that contains the converted values of every token in the source collection with the given key.
-
-
-
- Returns a collection of converted child values of every object in the source collection.
-
- The type to convert the values to.
- An of that contains the source collection.
- An that contains the converted values of every token in the source collection.
-
-
-
- Converts the value.
-
- The type to convert the value to.
- A cast as a of .
- A converted value.
-
-
-
- Converts the value.
-
- The source collection type.
- The type to convert the value to.
- A cast as a of .
- A converted value.
-
-
-
- Returns a collection of child tokens of every array in the source collection.
-
- The source collection type.
- An of that contains the source collection.
- An of that contains the values of every token in the source collection.
-
-
-
- Returns a collection of converted child tokens of every array in the source collection.
-
- An of that contains the source collection.
- The type to convert the values to.
- The source collection type.
- An that contains the converted values of every token in the source collection.
-
-
-
- Returns the input typed as .
-
- An of that contains the source collection.
- The input typed as .
-
-
-
- Returns the input typed as .
-
- The source collection type.
- An of that contains the source collection.
- The input typed as .
-
-
-
- Represents a collection of objects.
-
- The type of token
-
-
-
- Gets the with the specified key.
-
-
-
-
-
- Represents a JSON array.
-
-
-
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class with the specified content.
-
- The contents of the array.
-
-
-
- Initializes a new instance of the class with the specified content.
-
- The contents of the array.
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- A that contains the JSON that was read from the specified .
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- The used to load the JSON.
- If this is null, default load settings will be used.
- A that contains the JSON that was read from the specified .
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- A populated from the string that contains JSON.
-
-
-
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- The used to load the JSON.
- If this is null, default load settings will be used.
- A populated from the string that contains JSON.
-
-
-
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- A with the values of the specified object
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- The that will be used to read the object.
- A with the values of the specified object
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Gets the with the specified key.
-
- The with the specified key.
-
-
-
- Gets or sets the at the specified index.
-
-
-
-
-
- Determines the index of a specific item in the .
-
- The object to locate in the .
-
- The index of if found in the list; otherwise, -1.
-
-
-
-
- Inserts an item to the at the specified index.
-
- The zero-based index at which should be inserted.
- The object to insert into the .
-
- is not a valid index in the .
- The is read-only.
-
-
-
- Removes the item at the specified index.
-
- The zero-based index of the item to remove.
-
- is not a valid index in the .
- The is read-only.
-
-
-
- Returns an enumerator that iterates through the collection.
-
-
- A that can be used to iterate through the collection.
-
-
-
-
- Adds an item to the .
-
- The object to add to the .
- The is read-only.
-
-
-
- Removes all items from the .
-
- The is read-only.
-
-
-
- Determines whether the contains a specific value.
-
- The object to locate in the .
-
- true if is found in the ; otherwise, false.
-
-
-
-
- Copies to.
-
- The array.
- Index of the array.
-
-
-
- Gets a value indicating whether the is read-only.
-
- true if the is read-only; otherwise, false.
-
-
-
- Removes the first occurrence of a specific object from the .
-
- The object to remove from the .
-
- true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original .
-
- The is read-only.
-
-
-
- Represents a JSON constructor.
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Gets or sets the name of this constructor.
-
- The constructor name.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class with the specified name and content.
-
- The constructor name.
- The contents of the constructor.
-
-
-
- Initializes a new instance of the class with the specified name and content.
-
- The constructor name.
- The contents of the constructor.
-
-
-
- Initializes a new instance of the class with the specified name.
-
- The constructor name.
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Gets the with the specified key.
-
- The with the specified key.
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- A that contains the JSON that was read from the specified .
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- The used to load the JSON.
- If this is null, default load settings will be used.
- A that contains the JSON that was read from the specified .
-
-
-
- Represents a token that can contain other tokens.
-
-
-
-
- Occurs when the items list of the collection has changed, or the collection is reset.
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Raises the event.
-
- The instance containing the event data.
-
-
-
- Gets a value indicating whether this token has child tokens.
-
-
- true if this token has child values; otherwise, false.
-
-
-
-
- Get the first child token of this token.
-
-
- A containing the first child token of the .
-
-
-
-
- Get the last child token of this token.
-
-
- A containing the last child token of the .
-
-
-
-
- Returns a collection of the child tokens of this token, in document order.
-
-
- An of containing the child tokens of this , in document order.
-
-
-
-
- Returns a collection of the child values of this token, in document order.
-
- The type to convert the values to.
-
- A containing the child values of this , in document order.
-
-
-
-
- Returns a collection of the descendant tokens for this token in document order.
-
- An containing the descendant tokens of the .
-
-
-
- Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order.
-
- An containing this token, and all the descendant tokens of the .
-
-
-
- Adds the specified content as children of this .
-
- The content to be added.
-
-
-
- Adds the specified content as the first children of this .
-
- The content to be added.
-
-
-
- Creates an that can be used to add tokens to the .
-
- An that is ready to have content written to it.
-
-
-
- Replaces the children nodes of this token with the specified content.
-
- The content.
-
-
-
- Removes the child nodes from this token.
-
-
-
-
- Merge the specified content into this .
-
- The content to be merged.
-
-
-
- Merge the specified content into this using .
-
- The content to be merged.
- The used to merge the content.
-
-
-
- Gets the count of child JSON tokens.
-
- The count of child JSON tokens
-
-
-
- Represents a collection of objects.
-
- The type of token
-
-
-
- An empty collection of objects.
-
-
-
-
- Initializes a new instance of the struct.
-
- The enumerable.
-
-
-
- Returns an enumerator that iterates through the collection.
-
-
- A that can be used to iterate through the collection.
-
-
-
-
- Returns an enumerator that iterates through a collection.
-
-
- An object that can be used to iterate through the collection.
-
-
-
-
- Gets the with the specified key.
-
-
-
-
-
- Determines whether the specified is equal to this instance.
-
- The to compare with this instance.
-
- true if the specified is equal to this instance; otherwise, false.
-
-
-
-
- Determines whether the specified is equal to this instance.
-
- The to compare with this instance.
-
- true if the specified is equal to this instance; otherwise, false.
-
-
-
-
- Returns a hash code for this instance.
-
-
- A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
-
-
-
-
- Represents a JSON object.
-
-
-
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Occurs when a property value changes.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class with the specified content.
-
- The contents of the object.
-
-
-
- Initializes a new instance of the class with the specified content.
-
- The contents of the object.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Gets an of this object's properties.
-
- An of this object's properties.
-
-
-
- Gets a the specified name.
-
- The property name.
- A with the specified name or null.
-
-
-
- Gets an of this object's property values.
-
- An of this object's property values.
-
-
-
- Gets the with the specified key.
-
- The with the specified key.
-
-
-
- Gets or sets the with the specified property name.
-
-
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- A that contains the JSON that was read from the specified .
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- The used to load the JSON.
- If this is null, default load settings will be used.
- A that contains the JSON that was read from the specified .
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- A populated from the string that contains JSON.
-
-
-
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- The used to load the JSON.
- If this is null, default load settings will be used.
- A populated from the string that contains JSON.
-
-
-
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- A with the values of the specified object
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- The that will be used to read the object.
- A with the values of the specified object
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Gets the with the specified property name.
-
- Name of the property.
- The with the specified property name.
-
-
-
- Gets the with the specified property name.
- The exact property name will be searched for first and if no matching property is found then
- the will be used to match a property.
-
- Name of the property.
- One of the enumeration values that specifies how the strings will be compared.
- The with the specified property name.
-
-
-
- Tries to get the with the specified property name.
- The exact property name will be searched for first and if no matching property is found then
- the will be used to match a property.
-
- Name of the property.
- The value.
- One of the enumeration values that specifies how the strings will be compared.
- true if a value was successfully retrieved; otherwise, false.
-
-
-
- Adds the specified property name.
-
- Name of the property.
- The value.
-
-
-
- Removes the property with the specified name.
-
- Name of the property.
- true if item was successfully removed; otherwise, false.
-
-
-
- Tries the get value.
-
- Name of the property.
- The value.
- true if a value was successfully retrieved; otherwise, false.
-
-
-
- Returns an enumerator that iterates through the collection.
-
-
- A that can be used to iterate through the collection.
-
-
-
-
- Raises the event with the provided arguments.
-
- Name of the property.
-
-
-
- Returns the responsible for binding operations performed on this object.
-
- The expression tree representation of the runtime value.
-
- The to bind this object.
-
-
-
-
- Represents a JSON property.
-
-
-
-
- Gets the container's children tokens.
-
- The container's children tokens.
-
-
-
- Gets the property name.
-
- The property name.
-
-
-
- Gets or sets the property value.
-
- The property value.
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Initializes a new instance of the class.
-
- The property name.
- The property content.
-
-
-
- Initializes a new instance of the class.
-
- The property name.
- The property content.
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- A that contains the JSON that was read from the specified .
-
-
-
- Loads an from a .
-
- A that will be read for the content of the .
- The used to load the JSON.
- If this is null, default load settings will be used.
- A that contains the JSON that was read from the specified .
-
-
-
- Represents a raw JSON string.
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class.
-
- The raw json.
-
-
-
- Creates an instance of with the content of the reader's current token.
-
- The reader.
- An instance of with the content of the reader's current token.
-
-
-
- Specifies the settings used when loading JSON.
-
-
-
-
- Gets or sets how JSON comments are handled when loading JSON.
-
- The JSON comment handling.
-
-
-
- Gets or sets how JSON line info is handled when loading JSON.
-
- The JSON line info handling.
-
-
-
- Specifies the settings used when merging JSON.
-
-
-
-
- Gets or sets the method used when merging JSON arrays.
-
- The method used when merging JSON arrays.
-
-
-
- Gets or sets how how null value properties are merged.
-
- How null value properties are merged.
-
-
-
- Represents an abstract JSON token.
-
-
-
-
- Gets a comparer that can compare two tokens for value equality.
-
- A that can compare two nodes for value equality.
-
-
-
- Gets or sets the parent.
-
- The parent.
-
-
-
- Gets the root of this .
-
- The root of this .
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Gets a value indicating whether this token has child tokens.
-
-
- true if this token has child values; otherwise, false.
-
-
-
-
- Compares the values of two tokens, including the values of all descendant tokens.
-
- The first to compare.
- The second to compare.
- true if the tokens are equal; otherwise false.
-
-
-
- Gets the next sibling token of this node.
-
- The that contains the next sibling token.
-
-
-
- Gets the previous sibling token of this node.
-
- The that contains the previous sibling token.
-
-
-
- Gets the path of the JSON token.
-
-
-
-
- Adds the specified content immediately after this token.
-
- A content object that contains simple content or a collection of content objects to be added after this token.
-
-
-
- Adds the specified content immediately before this token.
-
- A content object that contains simple content or a collection of content objects to be added before this token.
-
-
-
- Returns a collection of the ancestor tokens of this token.
-
- A collection of the ancestor tokens of this token.
-
-
-
- Returns a collection of tokens that contain this token, and the ancestors of this token.
-
- A collection of tokens that contain this token, and the ancestors of this token.
-
-
-
- Returns a collection of the sibling tokens after this token, in document order.
-
- A collection of the sibling tokens after this tokens, in document order.
-
-
-
- Returns a collection of the sibling tokens before this token, in document order.
-
- A collection of the sibling tokens before this token, in document order.
-
-
-
- Gets the with the specified key.
-
- The with the specified key.
-
-
-
- Gets the with the specified key converted to the specified type.
-
- The type to convert the token to.
- The token key.
- The converted token value.
-
-
-
- Get the first child token of this token.
-
- A containing the first child token of the .
-
-
-
- Get the last child token of this token.
-
- A containing the last child token of the .
-
-
-
- Returns a collection of the child tokens of this token, in document order.
-
- An of containing the child tokens of this , in document order.
-
-
-
- Returns a collection of the child tokens of this token, in document order, filtered by the specified type.
-
- The type to filter the child tokens on.
- A containing the child tokens of this , in document order.
-
-
-
- Returns a collection of the child values of this token, in document order.
-
- The type to convert the values to.
- A containing the child values of this , in document order.
-
-
-
- Removes this token from its parent.
-
-
-
-
- Replaces this token with the specified token.
-
- The value.
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Returns the indented JSON for this token.
-
-
- The indented JSON for this token.
-
-
-
-
- Returns the JSON for this token using the given formatting and converters.
-
- Indicates how the output is formatted.
- A collection of which will be used when writing the token.
- The JSON for this token using the given formatting and converters.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to [].
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an explicit conversion from to .
-
- The value.
- The result of the conversion.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from [] to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Performs an implicit conversion from to .
-
- The value to create a from.
- The initialized with the specified value.
-
-
-
- Creates an for this token.
-
- An that can be used to read this token and its descendants.
-
-
-
- Creates a from an object.
-
- The object that will be used to create .
- A with the value of the specified object
-
-
-
- Creates a from an object using the specified .
-
- The object that will be used to create .
- The that will be used when reading the object.
- A with the value of the specified object
-
-
-
- Creates the specified .NET type from the .
-
- The object type that the token will be deserialized to.
- The new object created from the JSON value.
-
-
-
- Creates the specified .NET type from the .
-
- The object type that the token will be deserialized to.
- The new object created from the JSON value.
-
-
-
- Creates the specified .NET type from the using the specified .
-
- The object type that the token will be deserialized to.
- The that will be used when creating the object.
- The new object created from the JSON value.
-
-
-
- Creates the specified .NET type from the using the specified .
-
- The object type that the token will be deserialized to.
- The that will be used when creating the object.
- The new object created from the JSON value.
-
-
-
- Creates a from a .
-
- An positioned at the token to read into this .
-
- An that contains the token and its descendant tokens
- that were read from the reader. The runtime type of the token is determined
- by the token type of the first token encountered in the reader.
-
-
-
-
- Creates a from a .
-
- An positioned at the token to read into this .
- The used to load the JSON.
- If this is null, default load settings will be used.
-
- An that contains the token and its descendant tokens
- that were read from the reader. The runtime type of the token is determined
- by the token type of the first token encountered in the reader.
-
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- A populated from the string that contains JSON.
-
-
-
- Load a from a string that contains JSON.
-
- A that contains JSON.
- The used to load the JSON.
- If this is null, default load settings will be used.
- A populated from the string that contains JSON.
-
-
-
- Creates a from a .
-
- An positioned at the token to read into this .
- The used to load the JSON.
- If this is null, default load settings will be used.
-
- An that contains the token and its descendant tokens
- that were read from the reader. The runtime type of the token is determined
- by the token type of the first token encountered in the reader.
-
-
-
-
- Creates a from a .
-
- An positioned at the token to read into this .
-
- An that contains the token and its descendant tokens
- that were read from the reader. The runtime type of the token is determined
- by the token type of the first token encountered in the reader.
-
-
-
-
- Selects a using a JPath expression. Selects the token that matches the object path.
-
-
- A that contains a JPath expression.
-
- A , or null.
-
-
-
- Selects a using a JPath expression. Selects the token that matches the object path.
-
-
- A that contains a JPath expression.
-
- A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression.
- A .
-
-
-
- Selects a collection of elements using a JPath expression.
-
-
- A that contains a JPath expression.
-
- An that contains the selected elements.
-
-
-
- Selects a collection of elements using a JPath expression.
-
-
- A that contains a JPath expression.
-
- A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression.
- An that contains the selected elements.
-
-
-
- Returns the responsible for binding operations performed on this object.
-
- The expression tree representation of the runtime value.
-
- The to bind this object.
-
-
-
-
- Returns the responsible for binding operations performed on this object.
-
- The expression tree representation of the runtime value.
-
- The to bind this object.
-
-
-
-
- Creates a new instance of the . All child tokens are recursively cloned.
-
- A new instance of the .
-
-
-
- Adds an object to the annotation list of this .
-
- The annotation to add.
-
-
-
- Get the first annotation object of the specified type from this .
-
- The type of the annotation to retrieve.
- The first annotation object that matches the specified type, or null if no annotation is of the specified type.
-
-
-
- Gets the first annotation object of the specified type from this .
-
- The of the annotation to retrieve.
- The first annotation object that matches the specified type, or null if no annotation is of the specified type.
-
-
-
- Gets a collection of annotations of the specified type for this .
-
- The type of the annotations to retrieve.
- An that contains the annotations for this .
-
-
-
- Gets a collection of annotations of the specified type for this .
-
- The of the annotations to retrieve.
- An of that contains the annotations that match the specified type for this .
-
-
-
- Removes the annotations of the specified type from this .
-
- The type of annotations to remove.
-
-
-
- Removes the annotations of the specified type from this .
-
- The of annotations to remove.
-
-
-
- Compares tokens to determine whether they are equal.
-
-
-
-
- Determines whether the specified objects are equal.
-
- The first object of type to compare.
- The second object of type to compare.
-
- true if the specified objects are equal; otherwise, false.
-
-
-
-
- Returns a hash code for the specified object.
-
- The for which a hash code is to be returned.
- A hash code for the specified object.
- The type of is a reference type and is null.
-
-
-
- Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
-
-
-
-
- Gets the at the reader's current position.
-
-
-
-
- Initializes a new instance of the class.
-
- The token to read from.
-
-
-
- Reads the next JSON token from the stream.
-
-
- true if the next token was read successfully; false if there are no more tokens to read.
-
-
-
-
- Gets the path of the current JSON token.
-
-
-
-
- Specifies the type of token.
-
-
-
-
- No token type has been set.
-
-
-
-
- A JSON object.
-
-
-
-
- A JSON array.
-
-
-
-
- A JSON constructor.
-
-
-
-
- A JSON object property.
-
-
-
-
- A comment.
-
-
-
-
- An integer value.
-
-
-
-
- A float value.
-
-
-
-
- A string value.
-
-
-
-
- A boolean value.
-
-
-
-
- A null value.
-
-
-
-
- An undefined value.
-
-
-
-
- A date value.
-
-
-
-
- A raw JSON value.
-
-
-
-
- A collection of bytes value.
-
-
-
-
- A Guid value.
-
-
-
-
- A Uri value.
-
-
-
-
- A TimeSpan value.
-
-
-
-
- Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
-
-
-
-
- Gets the at the writer's current position.
-
-
-
-
- Gets the token being writen.
-
- The token being writen.
-
-
-
- Initializes a new instance of the class writing to the given .
-
- The container being written to.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
-
-
-
-
- Closes this stream and the underlying stream.
-
-
-
-
- Writes the beginning of a JSON object.
-
-
-
-
- Writes the beginning of a JSON array.
-
-
-
-
- Writes the start of a constructor with the given name.
-
- The name of the constructor.
-
-
-
- Writes the end.
-
- The token.
-
-
-
- Writes the property name of a name/value pair on a JSON object.
-
- The name of the property.
-
-
-
- Writes a value.
- An error will raised if the value cannot be written as a single JSON token.
-
- The value to write.
-
-
-
- Writes a null value.
-
-
-
-
- Writes an undefined value.
-
-
-
-
- Writes raw JSON.
-
- The raw JSON to write.
-
-
-
- Writes out a comment /*...*/ containing the specified text.
-
- Text to place inside the comment.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a [] value.
-
- The [] value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Writes a value.
-
- The value to write.
-
-
-
- Represents a value in JSON (string, integer, date, etc).
-
-
-
-
- Initializes a new instance of the class from another object.
-
- A object to copy from.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Initializes a new instance of the class with the given value.
-
- The value.
-
-
-
- Gets a value indicating whether this token has child tokens.
-
-
- true if this token has child values; otherwise, false.
-
-
-
-
- Creates a comment with the given value.
-
- The value.
- A comment with the given value.
-
-
-
- Creates a string with the given value.
-
- The value.
- A string with the given value.
-
-
-
- Creates a null value.
-
- A null value.
-
-
-
- Creates a undefined value.
-
- A undefined value.
-
-
-
- Gets the node type for this .
-
- The type.
-
-
-
- Gets or sets the underlying token value.
-
- The underlying token value.
-
-
-
- Writes this token to a .
-
- A into which this method will write.
- A collection of which will be used when writing the token.
-
-
-
- Indicates whether the current object is equal to another object of the same type.
-
-
- true if the current object is equal to the parameter; otherwise, false.
-
- An object to compare with this object.
-
-
-
- Determines whether the specified is equal to the current .
-
- The to compare with the current .
-
- true if the specified is equal to the current ; otherwise, false.
-
-
- The parameter is null.
-
-
-
-
- Serves as a hash function for a particular type.
-
-
- A hash code for the current .
-
-
-
-
- Returns a that represents this instance.
-
-
- A that represents this instance.
-
-
-
-
- Returns a that represents this instance.
-
- The format.
-
- A that represents this instance.
-
-
-
-
- Returns a that represents this instance.
-
- The format provider.
-
- A that represents this instance.
-
-
-
-
- Returns a that represents this instance.
-
- The format.
- The format provider.
-
- A that represents this instance.
-
-
-
-
- Returns the responsible for binding operations performed on this object.
-
- The expression tree representation of the runtime value.
-
- The to bind this object.
-
-
-
-
- Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
-
- An object to compare with this instance.
-
- A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings:
- Value
- Meaning
- Less than zero
- This instance is less than .
- Zero
- This instance is equal to .
- Greater than zero
- This instance is greater than .
-
-
- is not the same type as this instance.
-
-
-
-
- Specifies how JSON arrays are merged together.
-
-
-
- Concatenate arrays.
-
-
- Union arrays, skipping items that already exist.
-
-
- Replace all array items.
-
-
- Merge array items together, matched by index.
-
-
-
- Specifies how null value properties are merged.
-
-
-
-
- The content's null value properties will be ignored during merging.
-
-
-
-
- The content's null value properties will be merged.
-
-
-
-
- Specifies the member serialization options for the .
-
-
-
-
- All public members are serialized by default. Members can be excluded using or .
- This is the default member serialization mode.
-
-
-
-
- Only members marked with or are serialized.
- This member serialization mode can also be set by marking the class with .
-
-
-
-
- All public and private fields are serialized. Members can be excluded using or .
- This member serialization mode can also be set by marking the class with
- and setting IgnoreSerializableAttribute on to false.
-
-
-
-
- Specifies metadata property handling options for the .
-
-
-
-
- Read metadata properties located at the start of a JSON object.
-
-
-
-
- Read metadata properties located anywhere in a JSON object. Note that this setting will impact performance.
-
-
-
-
- Do not try to read metadata properties.
-
-
-
-
- Specifies missing member handling options for the .
-
-
-
-
- Ignore a missing member and do not attempt to deserialize it.
-
-
-
-
- Throw a when a missing member is encountered during deserialization.
-
-
-
-
- Specifies null value handling options for the .
-
-
-
-
-
-
-
-
- Include null values when serializing and deserializing objects.
-
-
-
-
- Ignore null values when serializing and deserializing objects.
-
-
-
-
- Specifies how object creation is handled by the .
-
-
-
-
- Reuse existing objects, create new objects when needed.
-
-
-
-
- Only reuse existing objects.
-
-
-
-
- Always create new objects.
-
-
-
-
- Specifies reference handling options for the .
- Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement ISerializable.
-
-
-
-
-
-
-
- Do not preserve references when serializing types.
-
-
-
-
- Preserve references when serializing into a JSON object structure.
-
-
-
-
- Preserve references when serializing into a JSON array structure.
-
-
-
-
- Preserve references when serializing.
-
-
-
-
- Specifies reference loop handling options for the .
-
-
-
-
- Throw a when a loop is encountered.
-
-
-
-
- Ignore loop references and do not serialize.
-
-
-
-
- Serialize loop references.
-
-
-
-
- Indicating whether a property is required.
-
-
-
-
- The property is not required. The default state.
-
-
-
-
- The property must be defined in JSON but can be a null value.
-
-
-
-
- The property must be defined in JSON and cannot be a null value.
-
-
-
-
- The property is not required but it cannot be a null value.
-
-
-
-
- Allows users to control class loading and mandate what class to load.
-
-
-
-
- When overridden in a derived class, controls the binding of a serialized object to a type.
-
- Specifies the name of the serialized object.
- Specifies the name of the serialized object
- The type of the object the formatter creates a new instance of.
-
-
-
- When overridden in a derived class, controls the binding of a serialized object to a type.
-
- The type of the object the formatter creates a new instance of.
- Specifies the name of the serialized object.
- Specifies the name of the serialized object.
-
-
-
- Resolves member mappings for a type, camel casing property names.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Resolves the name of the property.
-
- Name of the property.
- The property name camel cased.
-
-
-
- Get and set values for a using dynamic methods.
-
-
-
-
- Initializes a new instance of the class.
-
- The member info.
-
-
-
- Sets the value.
-
- The target to set the value on.
- The value to set on the target.
-
-
-
- Gets the value.
-
- The target to get the value from.
- The value.
-
-
-
- Used by to resolves a for a given .
-
-
-
-
- Gets a value indicating whether members are being get and set using dynamic code generation.
- This value is determined by the runtime permissions available.
-
-
- true if using dynamic code generation; otherwise, false.
-
-
-
-
- Gets or sets a value indicating whether compiler generated members should be serialized.
-
-
- true if serialized compiler generated members; otherwise, false.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
-
- If set to true the will use a cached shared with other resolvers of the same type.
- Sharing the cache will significantly improve performance with multiple resolver instances because expensive reflection will only
- happen once. This setting can cause unexpected behavior if different instances of the resolver are suppose to produce different
- results. When set to false it is highly recommended to reuse instances with the .
-
-
-
-
- Resolves the contract for a given type.
-
- The type to resolve a contract for.
- The contract for a given type.
-
-
-
- Gets the serializable members for the type.
-
- The type to get serializable members for.
- The serializable members for the type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates the constructor parameters.
-
- The constructor to create properties for.
- The type's member properties.
- Properties for the given .
-
-
-
- Creates a for the given .
-
- The matching member property.
- The constructor parameter.
- A created for the given .
-
-
-
- Resolves the default for the contract.
-
- Type of the object.
- The contract's default .
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates a for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Determines which contract type is created for the given type.
-
- Type of the object.
- A for the given type.
-
-
-
- Creates properties for the given .
-
- The type to create properties for.
- /// The member serialization mode for the type.
- Properties for the given .
-
-
-
- Creates the used by the serializer to get and set values from a member.
-
- The member.
- The used by the serializer to get and set values from a member.
-
-
-
- Creates a for the given .
-
- The member's parent .
- The member to create a for.
- A created for the given .
-
-
-
- Resolves the name of the property.
-
- Name of the property.
- Resolved name of the property.
-
-
-
- Resolves the key of the dictionary. By default is used to resolve dictionary keys.
-
- Key of the dictionary.
- Resolved key of the dictionary.
-
-
-
- Gets the resolved name of the property.
-
- Name of the property.
- Name of the property.
-
-
-
- The default serialization binder used when resolving and loading classes from type names.
-
-
-
-
- When overridden in a derived class, controls the binding of a serialized object to a type.
-
- Specifies the name of the serialized object.
- Specifies the name of the serialized object.
-
- The type of the object the formatter creates a new instance of.
-
-
-
-
- When overridden in a derived class, controls the binding of a serialized object to a type.
-
- The type of the object the formatter creates a new instance of.
- Specifies the name of the serialized object.
- Specifies the name of the serialized object.
-
-
-
- Provides information surrounding an error.
-
-
-
-
- Gets the error.
-
- The error.
-
-
-
- Gets the original object that caused the error.
-
- The original object that caused the error.
-
-
-
- Gets the member that caused the error.
-
- The member that caused the error.
-
-
-
- Gets the path of the JSON location where the error occurred.
-
- The path of the JSON location where the error occurred.
-
-
-
- Gets or sets a value indicating whether this is handled.
-
- true if handled; otherwise, false.
-
-
-
- Provides data for the Error event.
-
-
-
-
- Gets the current object the error event is being raised against.
-
- The current object the error event is being raised against.
-
-
-
- Gets the error context.
-
- The error context.
-
-
-
- Initializes a new instance of the class.
-
- The current object.
- The error context.
-
-
-
- Provides methods to get attributes.
-
-
-
-
- Returns a collection of all of the attributes, or an empty collection if there are no attributes.
-
- When true, look up the hierarchy chain for the inherited custom attribute.
- A collection of s, or an empty collection.
-
-
-
- Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
-
- The type of the attributes.
- When true, look up the hierarchy chain for the inherited custom attribute.
- A collection of s, or an empty collection.
-
-
-
- Used by to resolves a for a given .
-
-
-
-
-
-
-
-
- Resolves the contract for a given type.
-
- The type to resolve a contract for.
- The contract for a given type.
-
-
-
- Used to resolve references when serializing and deserializing JSON by the .
-
-
-
-
- Resolves a reference to its object.
-
- The serialization context.
- The reference to resolve.
- The object that
-
-
-
- Gets the reference for the sepecified object.
-
- The serialization context.
- The object to get a reference for.
- The reference to the object.
-
-
-
- Determines whether the specified object is referenced.
-
- The serialization context.
- The object to test for a reference.
-
- true if the specified object is referenced; otherwise, false.
-
-
-
-
- Adds a reference to the specified object.
-
- The serialization context.
- The reference.
- The object to reference.
-
-
-
- Represents a trace writer.
-
-
-
-
- Gets the that will be used to filter the trace messages passed to the writer.
- For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
-
- The that will be used to filter the trace messages passed to the writer.
-
-
-
- Writes the specified trace level, message and optional exception.
-
- The at which to write this trace.
- The trace message.
- The trace exception. This parameter is optional.
-
-
-
- Provides methods to get and set values.
-
-
-
-
- Sets the value.
-
- The target to set the value on.
- The value to set on the target.
-
-
-
- Gets the value.
-
- The target to get the value from.
- The value.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets the of the collection items.
-
- The of the collection items.
-
-
-
- Gets a value indicating whether the collection type is a multidimensional array.
-
- true if the collection type is a multidimensional array; otherwise, false.
-
-
-
- Gets or sets the function used to create the object. When set this function will override .
-
- The function used to create the object.
-
-
-
- Gets a value indicating whether the creator has a parameter with the collection values.
-
- true if the creator has a parameter with the collection values; otherwise, false.
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets or sets the default collection items .
-
- The converter.
-
-
-
- Gets or sets a value indicating whether the collection items preserve object references.
-
- true if collection items preserve object references; otherwise, false.
-
-
-
- Gets or sets the collection item reference loop handling.
-
- The reference loop handling.
-
-
-
- Gets or sets the collection item type name handling.
-
- The type name handling.
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Handles serialization callback events.
-
- The object that raised the callback event.
- The streaming context.
-
-
-
- Handles serialization error callback events.
-
- The object that raised the callback event.
- The streaming context.
- The error context.
-
-
-
- Sets extension data for an object during deserialization.
-
- The object to set extension data on.
- The extension data key.
- The extension data value.
-
-
-
- Gets extension data for an object during serialization.
-
- The object to set extension data on.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets the underlying type for the contract.
-
- The underlying type for the contract.
-
-
-
- Gets or sets the type created during deserialization.
-
- The type created during deserialization.
-
-
-
- Gets or sets whether this type contract is serialized as a reference.
-
- Whether this type contract is serialized as a reference.
-
-
-
- Gets or sets the default for this contract.
-
- The converter.
-
-
-
- Gets or sets all methods called immediately after deserialization of the object.
-
- The methods called immediately after deserialization of the object.
-
-
-
- Gets or sets all methods called during deserialization of the object.
-
- The methods called during deserialization of the object.
-
-
-
- Gets or sets all methods called after serialization of the object graph.
-
- The methods called after serialization of the object graph.
-
-
-
- Gets or sets all methods called before serialization of the object.
-
- The methods called before serialization of the object.
-
-
-
- Gets or sets all method called when an error is thrown during the serialization of the object.
-
- The methods called when an error is thrown during the serialization of the object.
-
-
-
- Gets or sets the method called immediately after deserialization of the object.
-
- The method called immediately after deserialization of the object.
-
-
-
- Gets or sets the method called during deserialization of the object.
-
- The method called during deserialization of the object.
-
-
-
- Gets or sets the method called after serialization of the object graph.
-
- The method called after serialization of the object graph.
-
-
-
- Gets or sets the method called before serialization of the object.
-
- The method called before serialization of the object.
-
-
-
- Gets or sets the method called when an error is thrown during the serialization of the object.
-
- The method called when an error is thrown during the serialization of the object.
-
-
-
- Gets or sets the default creator method used to create the object.
-
- The default creator method used to create the object.
-
-
-
- Gets or sets a value indicating whether the default creator is non public.
-
- true if the default object creator is non-public; otherwise, false.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets or sets the property name resolver.
-
- The property name resolver.
-
-
-
- Gets or sets the dictionary key resolver.
-
- The dictionary key resolver.
-
-
-
- Gets the of the dictionary keys.
-
- The of the dictionary keys.
-
-
-
- Gets the of the dictionary values.
-
- The of the dictionary values.
-
-
-
- Gets or sets the function used to create the object. When set this function will override .
-
- The function used to create the object.
-
-
-
- Gets a value indicating whether the creator has a parameter with the dictionary values.
-
- true if the creator has a parameter with the dictionary values; otherwise, false.
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets the object's properties.
-
- The object's properties.
-
-
-
- Gets or sets the property name resolver.
-
- The property name resolver.
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Gets or sets the object member serialization.
-
- The member object serialization.
-
-
-
- Gets or sets a value that indicates whether the object's properties are required.
-
-
- A value indicating whether the object's properties are required.
-
-
-
-
- Gets the object's properties.
-
- The object's properties.
-
-
-
- Gets the constructor parameters required for any non-default constructor
-
-
-
-
- Gets a collection of instances that define the parameters used with .
-
-
-
-
- Gets or sets the override constructor used to create the object.
- This is set when a constructor is marked up using the
- JsonConstructor attribute.
-
- The override constructor.
-
-
-
- Gets or sets the parametrized constructor used to create the object.
-
- The parametrized constructor.
-
-
-
- Gets or sets the function used to create the object. When set this function will override .
- This function is called with a collection of arguments which are defined by the collection.
-
- The function used to create the object.
-
-
-
- Gets or sets the extension data setter.
-
-
-
-
- Gets or sets the extension data getter.
-
-
-
-
- Gets or sets the extension data value type.
-
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Maps a JSON property to a .NET member or constructor parameter.
-
-
-
-
- Gets or sets the name of the property.
-
- The name of the property.
-
-
-
- Gets or sets the type that declared this property.
-
- The type that declared this property.
-
-
-
- Gets or sets the order of serialization of a member.
-
- The numeric order of serialization.
-
-
-
- Gets or sets the name of the underlying member or parameter.
-
- The name of the underlying member or parameter.
-
-
-
- Gets the that will get and set the during serialization.
-
- The that will get and set the during serialization.
-
-
-
- Gets or sets the for this property.
-
- The for this property.
-
-
-
- Gets or sets the type of the property.
-
- The type of the property.
-
-
-
- Gets or sets the for the property.
- If set this converter takes presidence over the contract converter for the property type.
-
- The converter.
-
-
-
- Gets or sets the member converter.
-
- The member converter.
-
-
-
- Gets or sets a value indicating whether this is ignored.
-
- true if ignored; otherwise, false.
-
-
-
- Gets or sets a value indicating whether this is readable.
-
- true if readable; otherwise, false.
-
-
-
- Gets or sets a value indicating whether this is writable.
-
- true if writable; otherwise, false.
-
-
-
- Gets or sets a value indicating whether this has a member attribute.
-
- true if has a member attribute; otherwise, false.
-
-
-
- Gets the default value.
-
- The default value.
-
-
-
- Gets or sets a value indicating whether this is required.
-
- A value indicating whether this is required.
-
-
-
- Gets or sets a value indicating whether this property preserves object references.
-
-
- true if this instance is reference; otherwise, false.
-
-
-
-
- Gets or sets the property null value handling.
-
- The null value handling.
-
-
-
- Gets or sets the property default value handling.
-
- The default value handling.
-
-
-
- Gets or sets the property reference loop handling.
-
- The reference loop handling.
-
-
-
- Gets or sets the property object creation handling.
-
- The object creation handling.
-
-
-
- Gets or sets or sets the type name handling.
-
- The type name handling.
-
-
-
- Gets or sets a predicate used to determine whether the property should be serialize.
-
- A predicate used to determine whether the property should be serialize.
-
-
-
- Gets or sets a predicate used to determine whether the property should be deserialized.
-
- A predicate used to determine whether the property should be deserialized.
-
-
-
- Gets or sets a predicate used to determine whether the property should be serialized.
-
- A predicate used to determine whether the property should be serialized.
-
-
-
- Gets or sets an action used to set whether the property has been deserialized.
-
- An action used to set whether the property has been deserialized.
-
-
-
- Returns a that represents this instance.
-
-
- A that represents this instance.
-
-
-
-
- Gets or sets the converter used when serializing the property's collection items.
-
- The collection's items converter.
-
-
-
- Gets or sets whether this property's collection items are serialized as a reference.
-
- Whether this property's collection items are serialized as a reference.
-
-
-
- Gets or sets the the type name handling used when serializing the property's collection items.
-
- The collection's items type name handling.
-
-
-
- Gets or sets the the reference loop handling used when serializing the property's collection items.
-
- The collection's items reference loop handling.
-
-
-
- A collection of objects.
-
-
-
-
- Initializes a new instance of the class.
-
- The type.
-
-
-
- When implemented in a derived class, extracts the key from the specified element.
-
- The element from which to extract the key.
- The key for the specified element.
-
-
-
- Adds a object.
-
- The property to add to the collection.
-
-
-
- Gets the closest matching object.
- First attempts to get an exact case match of propertyName and then
- a case insensitive match.
-
- Name of the property.
- A matching property if found.
-
-
-
- Gets a property by property name.
-
- The name of the property to get.
- Type property name string comparison.
- A matching property if found.
-
-
-
- Contract details for a used by the .
-
-
-
-
- Initializes a new instance of the class.
-
- The underlying type for the contract.
-
-
-
- Lookup and create an instance of the JsonConverter type described by the argument.
-
- The JsonConverter type to create.
- Optional arguments to pass to an initializing constructor of the JsonConverter.
- If null, the default constructor is used.
-
-
-
- Create a factory function that can be used to create instances of a JsonConverter described by the
- argument type. The returned function can then be used to either invoke the converter's default ctor, or any
- parameterized constructors by way of an object array.
-
-
-
-
- Represents a trace writer that writes to memory. When the trace message limit is
- reached then old trace messages will be removed as new messages are added.
-
-
-
-
- Gets the that will be used to filter the trace messages passed to the writer.
- For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
-
-
- The that will be used to filter the trace messages passed to the writer.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Writes the specified trace level, message and optional exception.
-
- The at which to write this trace.
- The trace message.
- The trace exception. This parameter is optional.
-
-
-
- Returns an enumeration of the most recent trace messages.
-
- An enumeration of the most recent trace messages.
-
-
-
- Returns a of the most recent trace messages.
-
-
- A of the most recent trace messages.
-
-
-
-
- Represents a method that constructs an object.
-
- The object type to create.
-
-
-
- When applied to a method, specifies that the method is called when an error occurs serializing an object.
-
-
-
-
- Provides methods to get attributes from a , , or .
-
-
-
-
- Initializes a new instance of the class.
-
- The instance to get attributes for. This parameter should be a , , or .
-
-
-
- Returns a collection of all of the attributes, or an empty collection if there are no attributes.
-
- When true, look up the hierarchy chain for the inherited custom attribute.
- A collection of s, or an empty collection.
-
-
-
- Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
-
- The type of the attributes.
- When true, look up the hierarchy chain for the inherited custom attribute.
- A collection of s, or an empty collection.
-
-
-
- Get and set values for a using reflection.
-
-
-
-
- Initializes a new instance of the class.
-
- The member info.
-
-
-
- Sets the value.
-
- The target to set the value on.
- The value to set on the target.
-
-
-
- Gets the value.
-
- The target to get the value from.
- The value.
-
-
-
- Specifies how strings are escaped when writing JSON text.
-
-
-
-
- Only control characters (e.g. newline) are escaped.
-
-
-
-
- All non-ASCII and control characters (e.g. newline) are escaped.
-
-
-
-
- HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped.
-
-
-
-
- Specifies what messages to output for the class.
-
-
-
-
- Output no tracing and debugging messages.
-
-
-
-
- Output error-handling messages.
-
-
-
-
- Output warnings and error-handling messages.
-
-
-
-
- Output informational messages, warnings, and error-handling messages.
-
-
-
-
- Output all debugging and tracing messages.
-
-
-
-
- Specifies type name handling options for the .
-
-
- should be used with caution when your application deserializes JSON from an external source.
- Incoming types should be validated with a custom
- when deserializing with a value other than TypeNameHandling.None.
-
-
-
-
- Do not include the .NET type name when serializing types.
-
-
-
-
- Include the .NET type name when serializing into a JSON object structure.
-
-
-
-
- Include the .NET type name when serializing into a JSON array structure.
-
-
-
-
- Always include the .NET type name when serializing.
-
-
-
-
- Include the .NET type name when the type of the object being serialized is not the same as its declared type.
-
-
-
-
- Determines whether the collection is null or empty.
-
- The collection.
-
- true if the collection is null or empty; otherwise, false.
-
-
-
-
- Adds the elements of the specified collection to the specified generic IList.
-
- The list to add to.
- The collection of elements to add.
-
-
-
- Converts the value to the specified type. If the value is unable to be converted, the
- value is checked whether it assignable to the specified type.
-
- The value to convert.
- The culture to use when converting.
- The type to convert or cast the value to.
-
- The converted type. If conversion was unsuccessful, the initial value
- is returned if assignable to the target type.
-
-
-
-
- Helper method for generating a MetaObject which calls a
- specific method on Dynamic that returns a result
-
-
-
-
- Helper method for generating a MetaObject which calls a
- specific method on Dynamic, but uses one of the arguments for
- the result.
-
-
-
-
- Helper method for generating a MetaObject which calls a
- specific method on Dynamic, but uses one of the arguments for
- the result.
-
-
-
-
- Returns a Restrictions object which includes our current restrictions merged
- with a restriction limiting our type
-
-
-
-
- Gets a dictionary of the names and values of an Enum type.
-
-
-
-
-
- Gets a dictionary of the names and values of an Enum type.
-
- The enum type to get names and values for.
-
-
-
-
- Gets the type of the typed collection's items.
-
- The type.
- The type of the typed collection's items.
-
-
-
- Gets the member's underlying type.
-
- The member.
- The underlying type of the member.
-
-
-
- Determines whether the member is an indexed property.
-
- The member.
-
- true if the member is an indexed property; otherwise, false.
-
-
-
-
- Determines whether the property is an indexed property.
-
- The property.
-
- true if the property is an indexed property; otherwise, false.
-
-
-
-
- Gets the member's value on the object.
-
- The member.
- The target object.
- The member's value on the object.
-
-
-
- Sets the member's value on the target object.
-
- The member.
- The target.
- The value.
-
-
-
- Determines whether the specified MemberInfo can be read.
-
- The MemberInfo to determine whether can be read.
- /// if set to true then allow the member to be gotten non-publicly.
-
- true if the specified MemberInfo can be read; otherwise, false.
-
-
-
-
- Determines whether the specified MemberInfo can be set.
-
- The MemberInfo to determine whether can be set.
- if set to true then allow the member to be set non-publicly.
- if set to true then allow the member to be set if read-only.
-
- true if the specified MemberInfo can be set; otherwise, false.
-
-
-
-
- Builds a string. Unlike StringBuilder this class lets you reuse it's internal buffer.
-
-
-
-
- Determines whether the string is all white space. Empty string will return false.
-
- The string to test whether it is all white space.
-
- true if the string is all white space; otherwise, false.
-
-
-
-
- Nulls an empty string.
-
- The string.
- Null if the string was null, otherwise the string unchanged.
-
-
-
- Specifies the state of the .
-
-
-
-
- An exception has been thrown, which has left the in an invalid state.
- You may call the method to put the in the Closed state.
- Any other method calls results in an being thrown.
-
-
-
-
- The method has been called.
-
-
-
-
- An object is being written.
-
-
-
-
- A array is being written.
-
-
-
-
- A constructor is being written.
-
-
-
-
- A property is being written.
-
-
-
-
- A write method has not been called.
-
-
-
-
- Indicates the method that will be used during deserialization for locating and loading assemblies.
-
-
-
-
- In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the LoadWithPartialName method is used to load the assembly.
-
-
-
-
- In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The Load method of the Assembly class is used to load the assembly.
-
-
-
-
diff --git a/Assets/Plugins/JsonDotNet/Assemblies/Windows/Newtonsoft.Json.dll b/Assets/Plugins/JsonDotNet/Assemblies/Windows/Newtonsoft.Json.dll
deleted file mode 100644
index 05a0d4b..0000000
Binary files a/Assets/Plugins/JsonDotNet/Assemblies/Windows/Newtonsoft.Json.dll and /dev/null differ
diff --git a/Assets/Plugins/JsonDotNet/Assemblies/Windows/Newtonsoft.Json.dll.meta b/Assets/Plugins/JsonDotNet/Assemblies/Windows/Newtonsoft.Json.dll.meta
deleted file mode 100644
index 149f7bc..0000000
--- a/Assets/Plugins/JsonDotNet/Assemblies/Windows/Newtonsoft.Json.dll.meta
+++ /dev/null
@@ -1,94 +0,0 @@
-fileFormatVersion: 2
-guid: 9b6ba260dada0ea4a871a42011f8b87d
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- : Linux
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- : OSXIntel
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- : OSXIntel64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- : SamsungTV
- second:
- enabled: 0
- settings:
- STV_MODEL: STANDARD_13
- - first:
- Android: Android
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- DontProcess: False
- PlaceholderPath: Assets/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll
- SDK: AnySDK
- ScriptingBackend: DotNet
- - first:
- iPhone: iOS
- second:
- enabled: 0
- settings:
- CompileFlags:
- FrameworkDependencies:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/JsonDotNet/Documentation.meta b/Assets/Plugins/JsonDotNet/Documentation.meta
deleted file mode 100644
index cda8075..0000000
--- a/Assets/Plugins/JsonDotNet/Documentation.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 76f828f47ce26cc43991113c6a39dbbf
-folderAsset: yes
-timeCreated: 1466010535
-licenseType: Store
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/JsonDotNet/Documentation/Json Net for Unity 2.0.1.pdf b/Assets/Plugins/JsonDotNet/Documentation/Json Net for Unity 2.0.1.pdf
deleted file mode 100644
index 4f7651d..0000000
Binary files a/Assets/Plugins/JsonDotNet/Documentation/Json Net for Unity 2.0.1.pdf and /dev/null differ
diff --git a/Assets/Plugins/JsonDotNet/JsonDotNet201Source.zip b/Assets/Plugins/JsonDotNet/JsonDotNet201Source.zip
deleted file mode 100644
index 23b699a..0000000
Binary files a/Assets/Plugins/JsonDotNet/JsonDotNet201Source.zip and /dev/null differ
diff --git a/Assets/Plugins/JsonDotNet/link.xml b/Assets/Plugins/JsonDotNet/link.xml
deleted file mode 100644
index cf188f8..0000000
--- a/Assets/Plugins/JsonDotNet/link.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Assets/Plugins/JsonDotNet.meta b/Assets/Plugins/UnityGLTF.meta
similarity index 77%
rename from Assets/Plugins/JsonDotNet.meta
rename to Assets/Plugins/UnityGLTF.meta
index 93bb641..95daa42 100644
--- a/Assets/Plugins/JsonDotNet.meta
+++ b/Assets/Plugins/UnityGLTF.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 1fdd4de1668fa554d87e5651110ab090
+guid: cca4e724a4f1a794f94359c549baa672
folderAsset: yes
DefaultImporter:
externalObjects: {}
diff --git a/Assets/Plugins/UnityGLTF/CHANGELOG.md b/Assets/Plugins/UnityGLTF/CHANGELOG.md
new file mode 100644
index 0000000..cebb14a
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/CHANGELOG.md
@@ -0,0 +1,554 @@
+# Changelog
+All notable changes to this package will be documented in this file.
+
+The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
+and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
+
+
+## [1.24.0-pre.2] - 2023-03-28
+- fix: nullref when importing files without animation in the editor
+
+## [1.24.0-pre] - 2023-03-27
+- feat: allow Mecanim Humanoid import in Editor with Avatar creation
+- feat: better structure for glTF importer with tabs
+- fix: don't try to generate UV coordinates for non-triangle meshes
+- fix: don't attempt to recalculate normals/tangents for non-triangle meshes
+- fix: wrap material extraction in StartEditing/StopEditing calls (fixes #81)
+- fix: imports that failed on first try (e.g. missing textures, other errors) would keep using the old asset identifier instead of defaulting to the new one
+- fix: runtime recording of SkinnedMeshRenderers without blend shapes was failing in some cases (fixes #80)
+- fix: disabling Volume from PBRGraph would still use volume values
+- fix: imported animation blendshape frame weights were not roundtripping well
+- fix: some animations not imported in Mecanim mode
+- fix: compilation issues with ShaderGraph package not present
+
+## [1.23.1-pre] - 2023-03-15
+- fix: ExportMesh not exporting submeshes in some cases
+- fix: missing export mesh marker
+
+## [1.23.0-pre] - 2023-03-03
+- fix: revert other possible modifications when recording animations
+- fix: exporting animation curves failed for blendshape animations on missing targets
+- fix: better info for which object has missing curves on animation export
+- feat: transparent/double-sided materials can now be upgraded from 2020.x to 2021.x+
+
+## [1.22.4-pre] - 2023-02-25
+- fix: revert prefab modifications when recording humanoid animation from prefab assets to work around AnimationMode limitations
+- fix: creation of duplicated keyframe when there is only one keyframe
+- change: clarify log for rotation animation export with wrong number of curves
+
+## [1.22.3-pre] - 2023-02-09
+- fix: specular extension factor roundtrip was incorrect
+- fix: MSFT_lods import created the wrong hierarchy and the culling option wasn't working
+- fix: edge case in node/mesh imports in extensions that could lead to a stack overflow
+- fix: calling `GLTFImporterInspector.FixTextureImportSettings` could result in an infite loop when called from an AssetPostprocessor
+
+## [1.22.2-pre] - 2023-02-04
+- fix: set morph target names from mesh extras on import (#70, thanks @emperorofmars)
+
+## [1.22.1-pre] - 2023-02-04
+- fix: broken texture references prevented files from loading entirely
+- fix: .bin file was not properly registered as dependency for the imported .gltf asset
+- fix: shader issue with instance ID transfer on 2021.x (#71, thanks @Jerem-35)
+- fix: normal map colorspace was wrong on Mac in some cases (#74, thanks @robertlong)
+- fix: ORM maps were exported with empty/unneeded alpha channel (#77, thanks @robertlong)
+
+## [1.22.0-pre] - 2023-02-01
+- feat: expose ExportNode API
+- feat: optionally calculate and place bounds markers in GltfRecorder for viewers that don't caclulate bounds from animated skinned meshes properly (experimental)
+
+## [1.21.1-pre] - 2023-01-20
+- fix: animator being disabled after exporting humanoid animationclip
+- fix: ignore MotionT and MotionQ on animator, can't be resolved for KHR_animation, seems to be a magic unity name
+- fix: build error by accessing imageContentHash
+- change: export HDR textures with zip compression by default
+
+## [1.21.0-pre] - 2023-01-14
+- feat: allow aborting export when not in Play Mode and meshes are not readable - seems to be a random Unity synchronization context issue
+- fix: don't export unsupported light types (e.g. area light has type "rectangle" which is not supported in glTF)
+- fix: Export human motion translation
+- fix: prevent exporting the same baked humanoid clip for different avatars, needs individual clips since we're baking them (not retargeting at runtime)
+- fix: reusing animation clips between objects with different hierarchies caused some targets to be missing, depending on export order
+- change: remove warning for KHR_animation_pointer resolving when the unresolved object is a transform, that's part of core
+
+## [1.20.3-pre] - 2023-01-13
+- fix: wrong texture name in Texture Transform check
+- fix: better check if a texture is a normal map and needs the right import settings
+- fix: uris with escaped characters didn't correctly import in the editor
+
+## [1.20.2-pre] - 2023-01-12
+- fix: export of color animations where only one channel is animated
+- fix: order of animationcurve properties when exporing animated colors in component where e.g. a user started by animating a single channel first (e.g. alpha) and later added keyframes for other channels
+
+## [1.20.1-pre] - 2023-01-10
+- fix: issue with exporting shared texture samplers in some cases
+- fix: weights on skinned meshes shouldn't be resolved by custom KHR_animation_pointer resolvers as they're part of the core spec
+- change: remove logs when caching data
+- change: move cache clear button into settings
+- add: KHR_materials_clearcoat roundtrip support (no in-editor visualization yet)
+
+## [1.20.0-pre] - 2023-01-04
+- add: caching of texture bytes on disc for faster export (can be disabled in UnityGLTFSettings)
+
+## [1.19.1-pre] - 2023-01-03
+- add: AfterPrimitiveExport event
+
+## [1.19.0-pre] - 2022-12-14
+- add: spritesheet keyframe animation export
+- change: print warning when animation pointer cant be resolved and add filtering of objects that cant be resolved before building animation data
+- fix: index discrepancy between _exportedMaterials and _root.Materials lead to wrong texture indices being returned in some cases
+- fix: don't write and declare IOR when it's at the default value
+- fix: importing textures with names resulted in those names not being used (only image names were used)
+- fix: importing files without baseMap but using texture transforms for normal or emissive would result in texture transforms not being used
+
+## [1.18.5-pre] - 2022-12-02
+- fix: default material was missing in build
+
+## [1.18.4-pre] - 2022-12-02
+- fix: GLTFRecorder didn't properly record with animation pointer off anymore
+- fix: unified access to SkinnedMeshRenderer weights on export
+- fix: nullrefs in ExportPlan with missing SkinnedMeshRenderer
+- feat: allow passing custom settings into GLTFRecorder
+
+## [1.18.3-pre] - 2022-11-14
+- fix: disabled MeshRenderers and SkinnedMeshRenderers were not exported despite ExportDisabledGameObjects being on
+- fix: sample root transform as well in Humanoid export to prevent shifting it around when recording
+
+## [1.18.2-pre] - 2022-11-10
+- fix: exception thrown when trying to add a material instance id twice
+
+## [1.18.1-pre] - 2022-11-09
+- fix: ExportMeshes was not exporting new meshes since the internal material check didn't let it through
+
+## [1.18.0-pre] - 2022-11-07
+- fix: blend shape weight animation wasn't properly exported in some cases
+- fix: IOR extension may end up as null when IOR was animated
+- fix: rough refracton LOD access is now affected by alpha blending
+- feat: HDR render textures can be exported now
+- feat: add ExportMesh(Mesh) API as convenience helper
+- feat: add material remapping to glTF/GLB importer
+- chore: code cleanup for rough refraction and material inspector
+- change: animation export code paths have been consolidated, less differences between KHR_animation_pointer and regular export
+- change: bumped min Unity version to 2019.4
+
+## [1.17.2-pre] - 2022-10-21
+- fix: set linear export setting before accessing texture exporter settings for unknown textures
+
+## [1.17.1-pre] - 2022-10-19
+- fix: glb export now using utf8 (no BOM)
+- fix: simplify and fix normals export
+
+## [1.17.0-pre] - 2022-10-12
+- add: import options for animation loop and re-enable by default for Mecanim
+- fix: reimport assets when colorspace changes
+- fix: texture map type needs to be passed into UniqueTexture, otherwise textures used for different things don't get exported correctly
+- fix: bake smoothness values into roughness map if there's no good conversion
+- fix: alpha cutout export on BiRP
+- fix: base color warning should only be shown for transparent objects
+- fix: improve alpha cutout inspector for 2020.3
+- fix: smoothness was inverted / removed even if no smoothness map existed
+- change: refactor TextureMapType to contain options for conversion to clean up export and introduce ability to convert smoothness
+- change: refactor textureSlots, usage of textureSlot names and how they should be called
+
+## [1.16.3-pre] - 2022-10-06
+- fix: KHR_animation_pointer bug with re-used animations targeting properties on nodes
+
+## [1.16.2-pre] - 2022-09-30
+- fix: blend shapes and blend shape animations were not imported (note: sparse accessor import not working yet)
+- fix: allow doublesided and transparent import on 2020.3 URP with PBRGraph
+- fix: make RegisterPrimitivesWithNode API public, belongs to ExportMesh
+- fix: UnlitGraph used wrong texture transform in some cases
+- fix: BiRP texture import on legacy shaders in < 2020.3 had flipped texture transforms
+- fix: ExporterMaterials compilation issue on 2018.x
+- fix: some TMPro materials were exported incorrectly
+
+## [1.16.1-pre] - 2022-09-25
+- fix: first-time import was failing to find shaders on 2020.x in some cases
+- fix: TMPro texture conversion one export was blurry at the bottom of the texture
+- fix: transmission/volume mat was incorrectly imported
+- fix: transparency was incorrectly imported on 2020.x
+- fix: material validation on 2021.x wasn't properly turning transparency on for some imports
+- fix: no compilation errors on 2018.4 + 2019.4
+
+## [1.16.0-pre] - 2022-09-21
+- fix: checking materials for _ST shader properties was failing on specific Unity versions
+- fix: AnimationPointerResolver was warning in cases that are allowed / no warning needed
+- fix: build compilation issues on 2022+
+- fix: default scene name differed from glTFast, which broke switching importers. Both use "Scene" now
+- fix: import warnings for metallicRoughness texture swizzling only print when a metallicRoughness texture is actually used
+- feat: tangents are recalculated on import now
+- feat: TMPro meshes export with baked texture now instead of SDF texture
+- feat: added AfterTextureExportDelegate/BeforeTextureExportDelegate and UniqueTexture hash for modifying textures on export
+- change: explicit bool option to turn KHR_materials_volume export on and off
+- change: removed outdated samples from package
+- change: if a mesh in the glTF doesn't specify a name it will import without name now instead of using a default name
+
+## [1.15.0-pre] - 2022-09-13
+- fix: workaround for ShaderGraph bug on 2021.2+ that breaks defining baseColorTexture_ST manually
+- fix: workaround for Unity regression in 2022.1+ where checking material properties returns wrong results in some cases
+- feat: allow exporting of Humanoid animation clips (get baked to generic)
+- change: texture aniso values >= 1 now result in LinearMipmapLinear filtering to match visual result in Unity better
+
+## [1.14-0-pre] - 2022-09-11
+- fix: log error instead of exception for missing textures on export
+- feat: allow referencing GameObjects for `KHR_animation_pointer`
+- change: animated fields with `KHR_animation_pointer` now try to find their correct Unity properties instead of the serialized field (m_ prefix disappears)
+
+## [1.13.0-pre] - 2022-09-05
+- add: preliminary HDR texture export in EXT_texture_exr extension
+- fix: Unity Editor module related issues
+- fix: wrongly exporting two keyframes for animations with only one keyframe
+- fix: children of lights and cameras were inverted
+
+## [1.12.2-pre] - 2022-08-29
+- fix: KHR_animation_pointer export where member is declared on base type
+
+## [1.12.1-pre] - 2022-08-23
+- fix: nullref in export of missing mesh
+
+## [1.12.0-pre] - 2022-08-23
+- fix: emissive color alpha was set to 1 in some roundtrip cases when it should have been 0
+- fix: nullref in import when glTF had null textures (against the spec, but other viewers tolerate it)
+- fix: unlit double sided was incorrectly imported in BiRP
+- fix: PBRGraphUI didn't properly draw infos for SkinnedMeshRenderer
+- fix: added safeguards against Shader.Find not working in first imports (fixes #51)
+- fix: textures without mipmaps should export closer to intended now
+- fix: missing pbrMetallicRoughness property was treated incorrectly
+- fix: BeforeSceneExport was missing from gltf+bin exports
+- feat: warn in PBRGraphGUI when UV0 isn't present (fixes #52)
+- feat: texture channel swizzling on URP/Lit > PBRGraph material conversion in 2022.1+
+- feat: expose ExportMesh API using UniquePrimitive array to export arbitrary meshes from extensions (#55, thanks @robertlong)
+- feat: GLTFSettings can now be passed into GLTFSceneExporter directly, falls back to project settings if none are provided
+- remove: public settings API on GLTFSceneExporter is now gone. Pass in custom settings via ExportOptions if needed.
+
+## [1.11.0-pre] - 2022-07-27
+- fix: converting PBRGraph and UnlitGraph to each other shouldn't warn
+- fix: multiple animators referencing the same clip exported animations incorrectly with KHR_animation_pointer on
+- fix: implemented partial animation target removal when some bindings animate missing objects
+- change: asset identifier for imported assets is now an explicit option
+- change: removed compilation flag to use new asset identifier, use the explicit option instead
+
+## [1.10.1-pre] - 2022-07-18
+- fix: accessor submesh primtives were incorrectly assigned after internal duplication
+- fix: don't add import dependency on shaders, load them by GUID instead
+- fix: URI-escaped file names weren't always resolved correctly
+- fix: some KHR_animation_pointer export type fixes (vec3 colors vs. vec4 colors)
+- feat: add color helpers to PBRGraphGUI
+- feat: add UnlitGraph for 2021.2+
+- feat: new API, GetPrimitivesForMesh to add extensions to exported meshes (e.g. KHR_materials_variants)
+
+## [1.10.0-pre] - 2022-07-06
+- fix: PBRGraph assignable again from shader dropdown
+- fix: various KHR_animation_pointer fixes to extension usage and property names
+- fix: compilation fixes for Unity 2018/2019
+- feat: add helper, callbacks and script generator for shader conversion
+- change: Importer/Exporter are now multiple partials
+- change: change GetAnimationTargetIdFrom[..] to Get[..]Index to clarify what it does
+
+## [1.9.0-pre] - 2022-06-22
+- fix: properly set BiRP ShaderGraph transparency keywords
+- feat: PBRGraph property names now match glTF names directly (breaking change from 1.7.0+)
+- feat: PBRGraph now has a custom shader GUI that also validates keywords
+
+## [1.8.1-pre] - 2022-06-22
+- fixed: same animation used on different objects should result in different pointer values with KHR_animation_pointer used
+- fixed: nullref when adding animation data for null object (e.g. unused property clip)
+- fixed: too many nodes get overwritten by duplicate animations with animation pointer
+- changed: GetAnimationId now takes root transform parameter
+- fixed: previously seen KHR_animation_pointer is now added to resolve list (e.g. when using animations on multiple objects and animating component values)
+
+## [1.8.0-pre.2] - 2022-06-14
+- fixed: OcclusionTexture tiling now defaults to (1,1)
+- fixed: build errors on certain platforms
+
+## [1.8.0-pre] - 2022-06-10
+- fixed: fixed package version, color space changes require minor version bump, not just patch
+- fixed: C# version error on 2020.3
+
+## [1.7.1-pre.3] - 2022-06-10
+- feat: show extensions and textures in importer inspector
+- feat: export texture coord (UV0 / UV1) separately for "occlusionTexture" and "everything else", same as three.js
+- fixed: editor import of .gltf files with textures now uses those textures directly instead of creating new ones
+- fixed: exporting only includes extensions that are actually used or explicitly enabled
+- fixed: no more differences in color space between exporting glTF + textures or glb with embedded textures
+- fixed: importer properly declares shaders as dependencies, fixes library reimport errors
+
+## [1.7.1-pre.2] - 2022-06-08
+- fixed: animation clip import in Editor working again
+
+## [1.7.1-pre] - 2022-06-07
+- feat: sparse accessors import (partial)
+- feat: UV rotation import/export (for baseColorTexture only right now)
+- fixed: GLTFRecorderComponent error in play mode when only new input system is present
+- fixed: animation export with KHR_animation_pointer and reused nodes
+- fixed: passing invalid file names to Export could result in wrong buffer paths in JSON
+
+## [1.7.0-pre] - 2022-06-01
+- feat: experimental support for KHR_animation_pointer
+- feat: experimental URP (2020.3+) & BiRP (2021.2+) Shader Graph for export and import, `UnityGLTF/PBRGraph`
+- feat: approximated support for exporting and importing KHR_materials_transmission, KHR_materials_volume, KHR_materials_ior, KHR_materials_iridescence, best used with `UnityGLTF/PBRGraph`
+- feat: renderer features and post effect for rough refraction / transmission (for URP and BiRP)
+- fixed: light and camera directions were flipped when animated
+- fixed: normal textures were exported with wrong color space in .gltf
+- fixed: WebRequestLoader edge case with relative paths
+- improved: better heuristic for PBR material export and generally better glTF-related material property export
+
+## [1.6.1-pre.3] - 2022-05-10
+- feat: allow replacing logger for GLTFSceneExporter with a custom one, allows to reduce number of logs
+- feat: added more ProfilerMarkers
+- removed: removed submodules from repository to make usage as submodule in other projects easier
+- fixed: bad performance in GLTFRecorder when recording lots of animation and/or Blendshape weights
+- fixed: some mismatched ProfilerMarker.Begin/End calls
+- fixed: less allocations when writing accessors
+
+## [1.6.1-pre.2] - 2022-05-06
+- feat: allow recording root object in worldspace in GLTFRecorder
+
+## [1.6.1-pre] - 2022-05-06
+- feat: added experimental support for KHR_animation_pointer in-editor animation export (for select properties), can be turned on in `ProjectSettings/UnityGltf`
+- feat: added scene export as GLB (fixes #22)
+- fixed: roundtrip issues with glTFast when alpha testing is used
+- fixed: no build errors in Samples anymore
+- fixed: allow exporting skinned mesh animations even when the mesh isn't readable (bone animation is then still exported)
+
+## [1.6.0-pre] - 2022-04-28
+- feat: added WebGL import support (export was already supported)
+- feat: added WebGL animation export support
+- feat: added onLoadComplete action to GLTFComponent
+- feat: added ProfilerMarkers for export
+- feat: import support for KHR_materials_emissive_strength
+- changed: replaced FileLoader/WebRequestLoader with simpler UnityWebRequestLoader for better platform support. Use the previous ones if you need streaming.
+- removed: removed unused shader variants from BiRP shaders
+- fixed: sparse accessor JSON is properly parsed (no sparse accessor import support yet though)
+- fixed: no more validation errors regarding minMag filters, bufferView.byteStride for animation samplers, bufferView.target for index/vertex data
+- fixed: only export KHR_materials_emissive_strength if emissive intensity > 1
+- fixed: URP roundtrip now works with glTFast imports (#42)
+- fixed: better handling of filenames for glTF + bin + textures export (#41, #40)
+- fixed: add vertex color alpha support, add _EmissionMap_ST support to BiRP shader
+- fixed: exporting Prefab assets directly from Project Window wasn't working properly when ExportDisabled was off
+- fixed: regression with serialization and roundtrip behaviour of spotlights
+
+## [1.5.0-pre.2] - 2022-04-20
+- fixed: incorrect UV offset for tiled textures on export in some cases
+- feat: show exported glTF/GLB in explorer after exporting via Menu Item
+- feat: expose API for `GetAnimationId` for custom export logic
+
+## [1.5.0-pre] - 2022-04-08
+
+- added: dialogue window will ask when meshes are not readable at runtime in the editor
+- added: more samples regarding custom material extension export
+- changed: more GltfSceneExporter methods are now public to allow for custom extension exporting
+- changed: moving back to proper versioning; big jump from 1.0 to 1.5 to show that lots of changes have happened
+- fixed: no more ScriptedImporter collisions between UnityGltf, glTFast and Siccity glTF
+- fixed: corrected some export callback orders
+- fixed: random hangs when importing .gltf files via ScriptedImporter
+- fixed: correctly importing wrapModeS and wrapModeT now
+- fixed: correctly importing Mask mode and cutoff now
+
+## [1.0.4-preview.35] - 2022-03-11
+- added better logs for unsupported animation tracks on export
+- added public methods in GLTFSceneExporter to allow for custom animation export
+- added first batch of samples for custom extensions export
+- fixed: Auto Referenced is back on on AsmDefs to keep legacy behaviour
+- fixed: first timeline keyframe was exported incorrectly in some cases
+- fixed: skins should be exported even when animation export is off
+- fixed: animation clips shouldn't be exported when exporting from Timeline recorder
+- fixed: MetallicGlossMap scale was incorrectly exported in some cases
+
+## [1.0.4-preview.34] - 2022-02-23
+- added Accessor reuse between exported animations when they come from the same AnimationClip/speed pair
+- added optional project setting to export animation clips with unique names (lots of viewers don't support that)
+- fixed animation clips being merged when the same clip was used in multiple Animators
+
+## [1.0.4-preview.33] - 2022-02-21
+- added export option to merge animator states with identical names into one animation
+- fixed export of multiple animations when they had the same name (was implicitly merged before, now explicit)
+- fixed export of multiple animations when they had the same animator state name but different speeds
+
+## [1.0.4-preview.32] - 2022-02-10
+- fixed compilation issues on older Unity versions
+- fixed exporting in memory to GLB byte array
+- fixed dependency to Timeline and some modules not being clear / not guarded
+- fixed Readme containing outdated install instructions
+- fixed compiler errors when building to some platforms
+
+## [1.0.4-preview.31] - 2022-02-08
+- added ability to record and export blend shapes at runtime
+- fixed settings not being loaded from Resources correctly at runtime
+- fixed another case of duplicate recorded keyframes
+
+## [1.0.4-preview.30] - 2022-02-08
+- added start events to recorder, made key methods virtual
+- fixed GLTF recorder component global shortcuts; now uses regular keycode during play mode
+
+## [1.0.4-preview.29] - 2022-02-07
+- added GLTFRecorderComponent to record at runtime
+- renamed recorder files to follow existing filenames
+- fixed compilation warning in GLTFSceneImporter
+- fixed: create export directory if it doesn't exist
+- fixed: blendshape export was missing flag to export no blendshapes at all
+- fixed: in some cases would attempt to record duplicate timestamps which is not allowed
+- fixed build error from GLTFSceneExporter
+
+## [1.0.4-preview.28] - 2022-02-07
+- added glTF Timeline exporter track that allows for both editor and runtime animation export
+- added ability to export RenderTextures instead of erroring out, these can be exported for a while now
+- added export callbacks and made an initial set of export methods public to enable custom export extensions (similar to three.js export callbacks)
+- added export generator name
+- fixed URP/Unlit color not being exported
+- fixed light intensity values being incorrect depending on Unity settings
+- fixed removeEmptyRootObjects on import not actually removing empty root objects
+- fixed warning when exporting texture transforms if _MainTex_ST is present but _MainTex isn't
+- fixed non-specific textures using the wrong export type in some cases, asking the AssetImporter now if one exists
+- changed menu items, export options are now in "Assets/UnityGltf/" instead of a toplevel "GLTF" menu
+
+## [1.0.4-preview.27] - 2021-12-02
+- fixed `_scaleFactor` not being applied to child transform positions for editor import
+- fixed roundtrip issues when exporting models that have been imported by UnityGLTF or glTFast
+- fixed metallicGlossMap being in the wrong color space on export if emission texture was also used
+- fixed light/occlusion map being in the wrong color space during roundtrip
+
+## [1.0.4-preview.26] - 2021-11-16
+- fixed objects with EditorOnly tag being exported, are skipped now
+
+## [1.0.4-preview.25] - 2021-11-12
+- fixed imported object names potentially not being unique
+- fixed normal map export format when build target is Android
+- fixed export of animations when multiple exported objects share the same animation name (gets merged on export now)
+- moved GLTF serialization from DLL to package to improve platform support (Unity will compile this for all platforms, no need for special DLLs)
+- added sparse accessor export for blendshape positions/normals
+- added ability to generate secondary UVs in UnityGLTF importer
+- added warning when trying to use KTX2 textures which is currently not supported
+
+## [1.0.4-preview.24] - 2021-06-14
+- fix: don't attempt to export blendshape normals/tangents when mesh doesn't have them
+- fix: warn and skip null bones in SkinnedMeshRenderer export
+- added: settings for determining texture export type (png/jpeg depending on alpha channel) and JPEG quality
+- added: setting to determine if vertex colors should be exported
+
+## [1.0.4-preview.23] - 2021-05-28
+- fixed animation export from legacy Animation component
+- fixed exporting blendshapes for meshes that don't have bones
+- fixed empty textures being generated on import
+- fixed emission keyword missing on material import when only color but no texture was set
+- fixed metallic and fade export not being correct in some cases
+- added option to select which properties (normals/tangents) to export with blendshapes
+
+## [1.0.4-preview.22] - 2021-05-04
+- fixed ScriptedImporter not importing meshes from SkinnedMeshRenderers
+- fixed ScriptedImporter not importing AnimationClips
+- fixed ScriptedImporter changing material names on import
+- fixed blend shape data being exported multiple times when meshes have multiple submeshes
+- added blendshape animation export
+
+## [1.0.4-preview.21] - 2021-04-26
+- fixed settings file directory not being created on settings file creation
+
+## [1.0.4-preview.20] - 2021-04-24
+- added settings provider to change GLTF settings from `Project Settings/UnityGLTF`
+- added settings for control over object export based on visibility (`Camera.cullingMask`) and active state (`GameObject.activeInHierarchy`)
+- changed: experimental texture-from-disk export is now disabled by default
+- fixed exporting GameObjects with names that contain invalid filename characters
+- fixed normal sampling in built-in pipeline which most likely was never correct with scaled normals
+- fixed texture sampling for export/import that resulted in incorrect Point sampling in some cases
+- fixed some issues with exporting skinned mesh renderers
+- fixed regression with multi material/submesh export
+
+## [1.0.4-preview.18] - 2021-04-16
+- CHANGED: package name is now back to org.khronos.unitygltf
+- fixed missing mesh logging an error, is now a warning
+- fixed property export order for URP shaders that also have built-in property fallbacks
+- fixed export path omitting extensions for cases such as 15-1.0.3.glb
+- fixed issue with shared meshes that have different materials not being properly exported (https://github.com/prefrontalcortex/UnityGLTF/issues/15)
+- added MenuItem validation methods to disable them if no valid object for export is selected
+- added ability to export selected Prefabs from the Project window directly
+- changed the GLTFImporter to overrideExt for 2020.1+ so that importer for .glb files can be chosen when multiple are present
+
+## [1.0.4-preview.17] - 2021-03-23
+- fixed ACCESSOR_INDEX_PRIMITIVE_RESTART for meshes that have exactly 256 or 65536 vertices and used the wrong buffer type
+- fixed vertex color import color space and alpha usage
+- fixed incorrect keyframe values causing import abort, just warns now
+- fixed GLB/GLTF export paths sometimes being incorrect (double or no extension)
+- changed: GLB importer now embeds all meshes and textures as sub assets instead of putting them in the project; needs better importer inspector to allow for asset remapping.
+
+## [1.0.4-preview.16] - 2021-03-15
+- fixed color space issues with vertex colors and emissive
+- fixed export of UV offset/tiling for non-main textures
+- fixed exporting materials as PBR when they have _Metallic and _Glossiness (required only _MetallicGlossMap before)
+
+## [1.0.4-preview.15] - 2021-02-23
+- fixed issues with material export in URP where PBR wasn't properly detected and exported
+
+## [1.0.4-preview.14] - 2021-02-10
+- fixed issues with KHR_materials_pbrSpecularGlossinessExtension and materials that don't have textures
+
+## [1.0.4-preview.13] - 2021-01-30
+- fixed missing references in materials and prefabs
+- fixed issue preventing build with UnityGLTF in project
+- moved samples into subfolder
+- added support for animation clip speed being set inside Animator States
+
+## [1.0.4-preview.12] - 2020-12-15
+- fix compilation errors in GLTFSerialization.dll on recompiling
+- fix Newtonsoft.Json being copied to output directory
+- fix a number of animation export issues
+- add KHR_materials_unlit extension import and export
+
+## [1.0.4-preview.11] - 2020-11-27
+- fix KHR_lights_punctual extension always being set, even if no lights were exported
+- fix invalid primitives being exported for meshes with 0 vertices
+- removed export rotation offset that caused incorrect rotation in other softwares
+
+## [1.0.4-preview.10] - 2020-11-16
+- fix error thrown when vertex arrays have 0 elements (this is valid in FBX)
+- add light export/import extensions
+- merged a number of PRs that fix nullrefs on export/import
+
+## [1.0.4-preview.9] - 2020-10-03
+- merged in a number of material fix and null ref PRs
+- add namespaces to scripts that didn't have them
+
+## [1.0.4-preview.8] - 2020-09-10
+- built GLTFSerialization.dll against Newtonsoft.JSON 12.0.3
+- removed Newtonsoft.JSON.dll from package
+- added dependency on com.unity.nuget.newtonsoft-json@2.0.0
+- added 2020.2 compatibility
+
+## [1.0.4-preview.7] - 2020-07-24
+- fix sRGB/linear conversion for normal maps depending on Unity color space
+
+## [1.0.4-preview.6] - 2020-07-15
+- fix sRGB/linear conversion for colors exported from Unity
+- fix rotation order for 180° hack
+- note: please use Linear color space, normal maps break in Gamma color space right now
+
+## [1.0.4-preview.5] - 2020-07-13
+- hack: added 180° rotation on export (experimental), needs to be tested with animations, only works with a single root transform on export
+- changed back to "preview" instead of "pfc" tag because stupid PackMan
+
+## [1.0.4-pfc.4] - 2020-07-12
+- fix meta files for Tests folder
+
+## [1.0.4-pfc.2] - 2020-07-07
+- fix build errors preventing builds
+- fix PBR texture roundtrip with incorrect red channel
+
+## [1.0.4-pfc] - 2020-04-24
+- lots of improvements to animation export
+- automatic keyframe reduction
+- BREAKING: disabled UV2 and vertex color export for web
+- fixed texture export from memory instead of from disk
+- fix breaking animations in SceneViewer due to omitted LINEAR sampler specification
+
+## [1.0.0-pfc.4] - 2020-01-16
+- rebased all pfc feature branches on latest master
+- back to org.khronos scope for easier switching between versions
+- added animation export
+- added PNG/JPG texture export from disk where available
+
+## [1.0.1] - 2019-04-03
+- Upgraded to 2017.4
+- Included various fixes (will update)
+- Includes UPM package
+
+## [1.0.0] - 2018-09-21
+- first built unity package release of UnityGLTF
diff --git a/Assets/Plugins/JsonDotNet/link.xml.meta b/Assets/Plugins/UnityGLTF/CHANGELOG.md.meta
similarity index 61%
rename from Assets/Plugins/JsonDotNet/link.xml.meta
rename to Assets/Plugins/UnityGLTF/CHANGELOG.md.meta
index 1e0e273..4352b47 100644
--- a/Assets/Plugins/JsonDotNet/link.xml.meta
+++ b/Assets/Plugins/UnityGLTF/CHANGELOG.md.meta
@@ -1,6 +1,7 @@
fileFormatVersion: 2
-guid: 06314f49bdda26043963578d60a0a7ee
+guid: 2ac567cb9b76e6a4490f2f54aa52c067
TextScriptImporter:
+ externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
diff --git a/Assets/Plugins/JsonDotNet/Assemblies.meta b/Assets/Plugins/UnityGLTF/Editor.meta
similarity index 57%
rename from Assets/Plugins/JsonDotNet/Assemblies.meta
rename to Assets/Plugins/UnityGLTF/Editor.meta
index 59ac16b..23639d3 100644
--- a/Assets/Plugins/JsonDotNet/Assemblies.meta
+++ b/Assets/Plugins/UnityGLTF/Editor.meta
@@ -1,9 +1,8 @@
fileFormatVersion: 2
-guid: 577d9725f58264943855b8ac185531fe
+guid: f5f45ddfa210e204f88be87c65820b64
folderAsset: yes
-timeCreated: 1466788344
-licenseType: Store
DefaultImporter:
+ externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
diff --git a/Assets/Plugins/JsonDotNet/Assemblies/AOT.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts.meta
similarity index 57%
rename from Assets/Plugins/JsonDotNet/Assemblies/AOT.meta
rename to Assets/Plugins/UnityGLTF/Editor/Scripts.meta
index f9dba64..5b70430 100644
--- a/Assets/Plugins/JsonDotNet/Assemblies/AOT.meta
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts.meta
@@ -1,9 +1,8 @@
fileFormatVersion: 2
-guid: 14f21d7a1e53a8c4e87b25526a7eb63c
+guid: 3d3936188a676ff4a9194add4e985b7c
folderAsset: yes
-timeCreated: 1466788345
-licenseType: Store
DefaultImporter:
+ externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFComponentInspector.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFComponentInspector.cs
new file mode 100644
index 0000000..33ac18a
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFComponentInspector.cs
@@ -0,0 +1,82 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEditor;
+using UnityEngine;
+
+namespace UnityGLTF
+{
+ [CustomEditor(typeof(GLTFComponent))]
+ public class GLTFComponentInspector : Editor
+ {
+ private Vector2 scrollPosition = Vector2.zero;
+
+ public override void OnInspectorGUI()
+ {
+ DrawDefaultInspector();
+ serializedObject.ApplyModifiedProperties();
+
+#if UNITY_ANIMATION
+ var gltfComponent = serializedObject.targetObject as GLTFComponent;
+ if (gltfComponent != null && gltfComponent.Animations != null)
+ {
+ EditorGUILayout.LabelField("Animations:");
+ using (var scrollView = new EditorGUILayout.ScrollViewScope(scrollPosition))
+ {
+ scrollPosition = scrollView.scrollPosition;
+ foreach (var animation in gltfComponent.Animations)
+ {
+ DrawAnimation(animation);
+ }
+ }
+ }
+#endif
+ }
+
+ private void DrawAnimation(Animation animation)
+ {
+ GUILayout.Label(animation.name);
+
+ foreach (AnimationState animationState in animation)
+ {
+ using (new EditorGUILayout.HorizontalScope())
+ {
+ var clip = animationState.clip;
+ var clipName = clip.name;
+ GUILayout.Label(clipName);
+
+ var isPlaying = animation.IsPlaying(clipName);
+ string playPause = isPlaying ? "pause" : "play";
+
+ var buttonPressed = GUILayout.Button(playPause);
+
+ if (buttonPressed)
+ {
+ if (isPlaying)
+ {
+ animation.Stop(clipName);
+ }
+ else
+ {
+ animation.Play(clipName);
+ }
+ }
+ }
+ }
+ }
+
+ private void SetClipsPlaying(Animation animation, bool play)
+ {
+ foreach (AnimationState animationState in animation)
+ {
+ if (play)
+ {
+ animation.Play(animationState.clip.name);
+ }
+ else
+ {
+ animation.Stop(animationState.clip.name);
+ }
+ }
+ }
+ }
+}
diff --git a/Assets/Scripts/umamusume/Gallop/DereScript/RuntimeInitializer.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFComponentInspector.cs.meta
similarity index 71%
rename from Assets/Scripts/umamusume/Gallop/DereScript/RuntimeInitializer.cs.meta
rename to Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFComponentInspector.cs.meta
index 7046213..1568359 100644
--- a/Assets/Scripts/umamusume/Gallop/DereScript/RuntimeInitializer.cs.meta
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFComponentInspector.cs.meta
@@ -1,7 +1,5 @@
fileFormatVersion: 2
-guid: ab30c2ca30e1a144c97b8e0cc5c3d316
-timeCreated: 1535288250
-licenseType: Free
+guid: 843e1771f80e49643aed2baa52c2394d
MonoImporter:
externalObjects: {}
serializedVersion: 2
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFExportMenu.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFExportMenu.cs
new file mode 100644
index 0000000..9103b51
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFExportMenu.cs
@@ -0,0 +1,134 @@
+using System;
+using System.IO;
+using System.Linq;
+using UnityEditor;
+using UnityEngine;
+using UnityEngine.SceneManagement;
+
+namespace UnityGLTF
+{
+ public static class GLTFExportMenu
+ {
+ private const string MenuPrefix = "Assets/UnityGLTF/";
+
+ public static string RetrieveTexturePath(UnityEngine.Texture texture)
+ {
+ var path = AssetDatabase.GetAssetPath(texture);
+ // texture is a subasset
+ if (AssetDatabase.GetMainAssetTypeAtPath(path) != typeof(Texture2D))
+ {
+ var ext = System.IO.Path.GetExtension(path);
+ if (string.IsNullOrWhiteSpace(ext)) return texture.name + ".png";
+ path = path.Replace(ext, "-" + texture.name + ext);
+ }
+ return path;
+ }
+
+ private static bool TryGetExportNameAndRootTransformsFromSelection(out string sceneName, out Transform[] rootTransforms)
+ {
+ if (Selection.transforms.Length > 1)
+ {
+ sceneName = SceneManager.GetActiveScene().name;
+ rootTransforms = Selection.transforms;
+ return true;
+ }
+ if (Selection.transforms.Length == 1)
+ {
+ sceneName = Selection.activeGameObject.name;
+ rootTransforms = Selection.transforms;
+ return true;
+ }
+ if (Selection.objects.Any() && Selection.objects.All(x => x is GameObject))
+ {
+ sceneName = Selection.objects.First().name;
+ rootTransforms = Selection.objects.Select(x => (x as GameObject).transform).ToArray();
+ return true;
+ }
+
+ sceneName = null;
+ rootTransforms = null;
+ return false;
+ }
+
+ [MenuItem(MenuPrefix + "Export selected as glTF", true)]
+ private static bool ExportSelectedValidate()
+ {
+ return TryGetExportNameAndRootTransformsFromSelection(out _, out _);
+ }
+
+ [MenuItem(MenuPrefix + "Export selected as glTF")]
+ private static void ExportSelected()
+ {
+ if (!TryGetExportNameAndRootTransformsFromSelection(out var sceneName, out var rootTransforms))
+ {
+ Debug.LogError("Can't export: selection is empty");
+ return;
+ }
+
+ Export(rootTransforms, false, sceneName);
+ }
+
+ [MenuItem(MenuPrefix + "Export selected as GLB", true)]
+ private static bool ExportGLBSelectedValidate()
+ {
+ return TryGetExportNameAndRootTransformsFromSelection(out _, out _);
+ }
+
+ [MenuItem(MenuPrefix + "Export selected as GLB")]
+ private static void ExportGLBSelected()
+ {
+ if (!TryGetExportNameAndRootTransformsFromSelection(out var sceneName, out var rootTransforms))
+ {
+ Debug.LogError("Can't export: selection is empty");
+ return;
+ }
+ Export(rootTransforms, true, sceneName);
+ }
+
+ [MenuItem(MenuPrefix + "Export active scene as glTF")]
+ private static void ExportScene()
+ {
+ var scene = SceneManager.GetActiveScene();
+ var gameObjects = scene.GetRootGameObjects();
+ var transforms = Array.ConvertAll(gameObjects, gameObject => gameObject.transform);
+
+ Export(transforms, false, scene.name);
+ }
+
+ [MenuItem(MenuPrefix + "Export active scene as GLB")]
+ private static void ExportSceneGLB()
+ {
+ var scene = SceneManager.GetActiveScene();
+ var gameObjects = scene.GetRootGameObjects();
+ var transforms = Array.ConvertAll(gameObjects, gameObject => gameObject.transform);
+
+ Export(transforms, true, scene.name);
+ }
+
+ private static void Export(Transform[] transforms, bool binary, string sceneName)
+ {
+ var settings = GLTFSettings.GetOrCreateSettings();
+ var exportOptions = new ExportOptions { TexturePathRetriever = RetrieveTexturePath };
+ var exporter = new GLTFSceneExporter(transforms, exportOptions);
+
+ var invokedByShortcut = Event.current?.type == EventType.KeyDown;
+ var path = settings.SaveFolderPath;
+ if (!invokedByShortcut || !Directory.Exists(path))
+ path = EditorUtility.SaveFolderPanel("glTF Export Path", settings.SaveFolderPath, "");
+
+ if (!string.IsNullOrEmpty(path))
+ {
+ var ext = binary ? ".glb" : ".gltf";
+ var resultFile = GLTFSceneExporter.GetFileName(path, sceneName, ext);
+ settings.SaveFolderPath = path;
+ if(binary)
+ exporter.SaveGLB(path, sceneName);
+ else
+ exporter.SaveGLTFandBin(path, sceneName);
+
+ Debug.Log("Exported to " + resultFile);
+ EditorUtility.RevealInFinder(resultFile);
+ }
+ }
+ }
+}
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFExportMenu.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFExportMenu.cs.meta
new file mode 100644
index 0000000..ba88ff8
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFExportMenu.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: fd3d2ca14e7c1084888c77f15c69ae56
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporter.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporter.cs
new file mode 100644
index 0000000..e6f559f
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporter.cs
@@ -0,0 +1,619 @@
+#if UNITY_2017_1_OR_NEWER
+
+// glTFast is on the path to being official, so it should have highest priority as importer by default
+// This ifdef is included for completeness.
+// Other glTF importers should specify this via AsmDef dependency, for example
+// `com.atteneder.gltfast@3.0.0: HAVE_GLTFAST` and then checking here `#if HAVE_GLTFAST`
+#if HAVE_GLTFAST
+#define ANOTHER_IMPORTER_HAS_HIGHER_PRIORITY
+#endif
+
+#if !ANOTHER_IMPORTER_HAS_HIGHER_PRIORITY && !UNITYGLTF_FORCE_DEFAULT_IMPORTER_OFF
+#define ENABLE_DEFAULT_GLB_IMPORTER
+#endif
+#if UNITYGLTF_FORCE_DEFAULT_IMPORTER_ON
+#define ENABLE_DEFAULT_GLB_IMPORTER
+#endif
+
+using UnityEditor;
+using System.IO;
+using UnityEngine;
+using System.Collections.Generic;
+using System.Linq;
+using System;
+using Object = UnityEngine.Object;
+using UnityGLTF.Loader;
+using GLTF.Schema;
+using GLTF;
+using Unity.Collections;
+#if UNITY_2020_2_OR_NEWER
+using UnityEditor.AssetImporters;
+#else
+using UnityEditor.Experimental.AssetImporters;
+#endif
+
+namespace UnityGLTF
+{
+#if UNITY_2020_2_OR_NEWER
+#if ENABLE_DEFAULT_GLB_IMPORTER
+ [ScriptedImporter(ImporterVersion, new[] { "glb", "gltf" })]
+#else
+ [ScriptedImporter(ImporterVersion, null, overrideExts: new[] { "glb", "gltf" })]
+#endif
+#else
+ [ScriptedImporter(ImporterVersion, new[] { "glb" })]
+#endif
+ public class GLTFImporter : ScriptedImporter
+ {
+ private const int ImporterVersion = 7;
+
+ private static void EnsureShadersAreLoaded()
+ {
+ const string PackagePrefix = "Packages/org.khronos.unitygltf/";
+ var shaders = new string[] {
+ PackagePrefix + "Runtime/Shaders/ShaderGraph/PBRGraph.shadergraph",
+ PackagePrefix + "Runtime/Shaders/ShaderGraph/UnlitGraph.shadergraph",
+ PackagePrefix + "Runtime/Shaders/PbrMetallicRoughness.shader",
+ PackagePrefix + "Runtime/Shaders/PbrSpecularGlossiness.shader",
+ PackagePrefix + "Runtime/Shaders/Unlit.shader",
+ };
+
+ foreach (var shaderPath in shaders)
+ {
+ AssetDatabase.LoadAssetAtPath(shaderPath);
+ }
+ }
+
+ [Tooltip("Turn this off to create an explicit GameObject for the glTF scene. A scene root will always be created if there's more than one root node.")]
+ [SerializeField] internal bool _removeEmptyRootObjects = true;
+ [SerializeField] internal float _scaleFactor = 1.0f;
+ [SerializeField] internal int _maximumLod = 300;
+ [SerializeField] internal bool _readWriteEnabled = true;
+ [SerializeField] internal bool _generateColliders = false;
+ [SerializeField] internal bool _swapUvs = false;
+ [SerializeField] internal bool _generateLightmapUVs = false;
+ [SerializeField] internal GLTFImporterNormals _importNormals = GLTFImporterNormals.Import;
+ [SerializeField] internal GLTFImporterNormals _importTangents = GLTFImporterNormals.Import;
+ [SerializeField] internal AnimationMethod _importAnimations = AnimationMethod.Mecanim;
+ [SerializeField] internal bool _addAnimatorComponent = false;
+ [SerializeField] internal bool _animationLoopTime = true;
+ [SerializeField] internal bool _animationLoopPose = false;
+ [SerializeField] internal bool _importMaterials = true;
+ [Tooltip("Enable this to get the same main asset identifiers as glTFast uses. This is recommended for new asset imports. Note that changing this for already imported assets will break their scene references and require manually re-adding the affected assets.")]
+ [SerializeField] internal bool _useSceneNameIdentifier = false;
+
+ // for humanoid importer
+ [SerializeField] internal bool m_OptimizeGameObjects = false;
+ [SerializeField] internal HumanDescription m_HumanDescription = new HumanDescription();
+
+ // material remapping
+ [SerializeField] private Material[] m_Materials = new Material[0];
+
+ [Serializable]
+ internal class ExtensionInfo
+ {
+ public string name;
+ public bool supported;
+ public bool used;
+ public bool required;
+ }
+
+ [Serializable]
+ public class TextureInfo
+ {
+ public Texture2D texture;
+ public bool shouldBeLinear;
+ }
+
+#if !UNIYT_2020_2_OR_NEWER
+ private class NonReorderableAttribute : Attribute {}
+#endif
+
+ // Import messages (extensions, warnings, errors, ...)
+ [NonReorderable] [SerializeField] internal List _extensions;
+ [NonReorderable] [SerializeField] private List _textures;
+ [SerializeField] internal string _mainAssetIdentifier;
+
+ internal List Textures => _textures;
+
+ private static string[] GatherDependenciesFromSourceFile(string path)
+ {
+ // only supported glTF for now - would be harder to check for external references in glb assets.
+ if (!path.ToLowerInvariant().EndsWith(".gltf")) return Array.Empty();
+
+ var dependencies = new List();
+
+ // read minimal JSON, check if there's a bin buffer, and load that.
+ // all other assets should be "proper assets" and be found by the asset database, but we're not importing .bin
+ // since it's too common as a file type.
+ var gltf = GLTFRoot.Deserialize(new StreamReader(path));
+ var externalBuffers = gltf?.Buffers?.Where(b => b?.Uri != null && b.Uri.ToLowerInvariant().EndsWith(".bin"));
+ if (externalBuffers != null)
+ {
+ var dir = Path.GetDirectoryName(path);
+ foreach (var buffer in externalBuffers)
+ {
+ var uri = buffer.Uri;
+ if (!File.Exists(Path.Combine(dir, uri)))
+ uri = Uri.UnescapeDataString(uri);
+ if (File.Exists(Path.Combine(dir, uri)))
+ dependencies.Add(Path.Combine(dir, uri));
+ // TODO check if inside the project/any package, could be an absolute path
+ else if (File.Exists(uri))
+ dependencies.Add(uri);
+ }
+ }
+
+ return dependencies.ToArray();
+ }
+
+ public override void OnImportAsset(AssetImportContext ctx)
+ {
+ string sceneName = null;
+ GameObject gltfScene = null;
+ AnimationClip[] animations = null;
+ Mesh[] meshes = null;
+
+ var uniqueNames = new List() { "main asset" };
+ EnsureShadersAreLoaded();
+
+ string GetUniqueName(string desiredName)
+ {
+ var uniqueName = ObjectNames.GetUniqueName(uniqueNames.ToArray(), desiredName);
+ if (!uniqueNames.Contains(uniqueName)) uniqueNames.Add(uniqueName);
+ return uniqueName;
+ }
+
+#if UNITY_2017_3_OR_NEWER
+ // We explicitly turn the new identifier on for new imports, that is, when no meta file existed before this import.
+ // We do this early, so that when imports fail, we still get the new identifier. Unity already sets import settings on failed imports.
+ if (!_useSceneNameIdentifier)
+ {
+ var importer = GetAtPath(ctx.assetPath);
+ if (importer.importSettingsMissing)
+ {
+ _useSceneNameIdentifier = true;
+ }
+ }
+#endif
+
+ try
+ {
+ sceneName = Path.GetFileNameWithoutExtension(ctx.assetPath);
+ CreateGLTFScene(ctx.assetPath, out gltfScene, out animations);
+ var rootGltfComponent = gltfScene.GetComponent();
+ if (rootGltfComponent) DestroyImmediate(rootGltfComponent);
+
+ // Remove empty roots
+ if (_removeEmptyRootObjects)
+ {
+ var t = gltfScene.transform;
+ var existingAnimator = t.GetComponent();
+ var hadAnimator = (bool)existingAnimator;
+ var existingAvatar = existingAnimator ? existingAnimator.avatar : default;
+ if (existingAnimator)
+ DestroyImmediate(existingAnimator);
+
+ while (
+ gltfScene.transform.childCount == 1 &&
+ gltfScene.GetComponents().Length == 1)
+ {
+ var parent = gltfScene;
+ var importName = parent.name;
+ gltfScene = gltfScene.transform.GetChild(0).gameObject;
+ gltfScene.name = importName; // root name is always name of the file anyways
+ t = gltfScene.transform;
+ t.parent = null; // To keep transform information in the new parent
+ DestroyImmediate(parent); // Get rid of the parent
+ }
+
+ // Re-add animator if it was removed
+ if (hadAnimator)
+ {
+ var newAnimator = gltfScene.AddComponent();
+ newAnimator.avatar = existingAvatar;
+ }
+ }
+
+ // Ensure there are no hide flags present (will cause problems when saving)
+ gltfScene.hideFlags &= ~(HideFlags.HideAndDontSave);
+ foreach (Transform child in gltfScene.transform)
+ {
+ child.gameObject.hideFlags &= ~(HideFlags.HideAndDontSave);
+ }
+
+ // scale all localPosition values if necessary
+ if (!Mathf.Approximately(_scaleFactor, 1))
+ {
+ var transforms = gltfScene.GetComponentsInChildren();
+ foreach (var tr in transforms)
+ {
+ tr.localPosition *= _scaleFactor;
+ }
+ }
+
+ // Get meshes
+ var meshHash = new HashSet();
+ var meshFilters = gltfScene.GetComponentsInChildren().Select(x => (x.gameObject, x.sharedMesh)).ToList();
+ meshFilters.AddRange(gltfScene.GetComponentsInChildren().Select(x => (x.gameObject, x.sharedMesh)));
+ var vertexBuffer = new List();
+ meshes = meshFilters.Select(mf =>
+ {
+ var mesh = mf.sharedMesh;
+
+ if (meshHash.Contains(mesh))
+ return null;
+ meshHash.Add(mesh);
+
+ if (!Mathf.Approximately(_scaleFactor, 1.0f))
+ {
+ vertexBuffer.Clear();
+ mesh.GetVertices(vertexBuffer);
+ for (var i = 0; i < vertexBuffer.Count; ++i)
+ {
+ vertexBuffer[i] *= _scaleFactor;
+ }
+ mesh.SetVertices(vertexBuffer);
+ }
+ if (_generateLightmapUVs)
+ {
+ var uv2 = mesh.uv2;
+ if (uv2 == null || uv2.Length < 1)
+ {
+ var hasTriangleTopology = true;
+ for (var i = 0; i < mesh.subMeshCount; i++)
+ hasTriangleTopology &= mesh.GetTopology(i) == MeshTopology.Triangles;
+
+ // uv2 = Unwrapping.GeneratePerTriangleUV(mesh);
+ // mesh.SetUVs(1, uv2);
+
+ // There seems to be a bug in Unity's splitting code:
+ // for some meshes, the result is broken after splitting.
+ if (hasTriangleTopology)
+ Unwrapping.GenerateSecondaryUVSet(mesh);
+ }
+ }
+ if (_swapUvs)
+ {
+ var uv = mesh.uv;
+ var uv2 = mesh.uv2;
+ mesh.uv = uv2;
+ if(uv.Length > 0)
+ mesh.uv2 = uv;
+ }
+
+ if (_importNormals == GLTFImporterNormals.None)
+ mesh.normals = new Vector3[0];
+ else if (_importNormals == GLTFImporterNormals.Calculate && mesh.GetTopology(0) == MeshTopology.Triangles)
+ mesh.RecalculateNormals();
+ else if (_importNormals == GLTFImporterNormals.Import && mesh.normals.Length == 0 && mesh.GetTopology(0) == MeshTopology.Triangles)
+ mesh.RecalculateNormals();
+
+ if (_importTangents == GLTFImporterNormals.None)
+ mesh.tangents = new Vector4[0];
+ else if (_importTangents == GLTFImporterNormals.Calculate && mesh.GetTopology(0) == MeshTopology.Triangles)
+ mesh.RecalculateTangents();
+ else if (_importTangents == GLTFImporterNormals.Import && mesh.tangents.Length == 0 && mesh.GetTopology(0) == MeshTopology.Triangles)
+ mesh.RecalculateTangents();
+
+ mesh.UploadMeshData(!_readWriteEnabled);
+
+ if (_generateColliders)
+ {
+ var collider = mf.gameObject.AddComponent();
+ collider.sharedMesh = mesh;
+ }
+
+ return mesh;
+ }).Where(x => x).ToArray();
+
+ if (animations != null)
+ {
+ foreach (var clip in animations)
+ {
+ ctx.AddObjectToAsset(GetUniqueName(clip.name), clip);
+ }
+ }
+
+ // we can't add the Animators as subassets here, since they require their state machines to be direct subassets themselves.
+ // foreach (var anim in animators)
+ // {
+ // ctx.AddObjectToAsset(GetUniqueName(anim.runtimeAnimatorController.name), anim.runtimeAnimatorController as AnimatorController);
+ // foreach (var layer in (anim.runtimeAnimatorController as AnimatorController).layers)
+ // {
+ // ctx.AddObjectToAsset(GetUniqueName(layer.name + "-state"), layer.stateMachine);
+ // }
+ // }
+
+ if (_importAnimations == AnimationMethod.MecanimHumanoid)
+ {
+ var avatar = HumanoidSetup.AddAvatarToGameObject(gltfScene);
+ if (avatar && avatar.isValid)
+ ctx.AddObjectToAsset("avatar", avatar);
+ }
+
+ var renderers = gltfScene.GetComponentsInChildren();
+
+ if (_importMaterials)
+ {
+ // Get materials
+ var map = GetExternalObjectMap();
+ var materialHash = new HashSet();
+ var materials = renderers.SelectMany(r =>
+ {
+ return r.sharedMaterials.Select(mat =>
+ {
+ if (materialHash.Add(mat))
+ {
+ var matName = string.IsNullOrEmpty(mat.name) ? mat.shader.name : mat.name;
+ if (matName == mat.shader.name)
+ {
+ matName = matName.Substring(Mathf.Min(matName.LastIndexOf("/", StringComparison.Ordinal) + 1, matName.Length - 1));
+ }
+ mat.name = matName;
+ }
+
+ return mat;
+ });
+ }).Distinct().ToArray();
+
+ // apply material remap
+ foreach(var r in renderers)
+ {
+ // remap materials to external objects
+ var m = r.sharedMaterials;
+ for (var i = 0; i < m.Length; i++)
+ {
+ var si = new SourceAssetIdentifier(m[i]);
+ if (map.ContainsKey(si))
+ m[i] = map[si] as Material;
+ }
+ r.sharedMaterials = m;
+ };
+
+ // Get textures
+ var textureHash = new HashSet();
+ var texMaterialMap = new Dictionary>();
+ var textures = materials.SelectMany(mat =>
+ {
+ var shader = mat.shader;
+ if (!shader) return Enumerable.Empty();
+
+ var matTextures = new List();
+ for (var i = 0; i < ShaderUtil.GetPropertyCount(shader); ++i)
+ {
+ if (ShaderUtil.GetPropertyType(shader, i) == ShaderUtil.ShaderPropertyType.TexEnv)
+ {
+ var propertyName = ShaderUtil.GetPropertyName(shader, i);
+ var tex = mat.GetTexture(propertyName) as Texture2D;
+ if (tex)
+ {
+ if (textureHash.Add(tex))
+ {
+ var texName = tex.name;
+ if (string.IsNullOrEmpty(texName))
+ {
+ if (propertyName.StartsWith("_")) texName = propertyName.Substring(Mathf.Min(1, propertyName.Length - 1));
+ tex.name = texName;
+ }
+ matTextures.Add(tex);
+ }
+
+ List materialMaps;
+ if (!texMaterialMap.TryGetValue(tex, out materialMaps))
+ {
+ materialMaps = new List();
+ texMaterialMap.Add(tex, materialMaps);
+ }
+
+ materialMaps.Add(new TexMaterialMap(mat, propertyName, propertyName == "_BumpMap" || propertyName == "normalTexture" || propertyName.EndsWith("NormalTexture")));
+ }
+ }
+ }
+ return matTextures;
+ }).Distinct().ToArray();
+
+ // Save textures as separate assets and rewrite refs
+ // TODO: Support for other texture types
+ if (textures.Length > 0)
+ {
+ foreach (var tex in textures)
+ {
+ if (AssetDatabase.Contains(tex) && AssetDatabase.GetAssetPath(tex) != ctx.assetPath)
+ {
+#if UNITY_2020_2_OR_NEWER
+ ctx.DependsOnArtifact(
+#else
+ ctx.DependsOnSourceAsset(
+#endif
+ AssetDatabase.GetAssetPath(tex));
+ }
+ else
+ {
+ ctx.AddObjectToAsset(GetUniqueName(tex.name), tex);
+ }
+ }
+ }
+
+#if !UNITY_2022_1_OR_NEWER
+ AssetDatabase.Refresh();
+#endif
+
+ // Save materials as separate assets and rewrite refs
+ if (materials.Length > 0)
+ {
+ foreach (var mat in materials)
+ {
+ // ensure materials that are overriden aren't shown in the hierarchy.
+ var si = new SourceAssetIdentifier(mat);
+ if (map.ContainsKey(si))
+ mat.hideFlags = HideFlags.HideInHierarchy | HideFlags.HideInInspector;
+
+ ctx.AddObjectToAsset(GetUniqueName(mat.name), mat);
+ }
+ }
+
+ m_Materials = materials;
+
+#if !UNITY_2022_1_OR_NEWER
+ AssetDatabase.SaveAssets();
+ AssetDatabase.Refresh();
+#endif
+ }
+ else
+ {
+ var temp = GameObject.CreatePrimitive(PrimitiveType.Plane);
+ temp.SetActive(false);
+ var defaultMat = new[] { temp.GetComponent().sharedMaterial };
+ DestroyImmediate(temp);
+
+ foreach (var rend in renderers)
+ {
+ rend.sharedMaterials = defaultMat;
+ }
+ }
+ }
+ catch
+ {
+ if (gltfScene) DestroyImmediate(gltfScene);
+ throw;
+ }
+
+#if UNITY_2017_3_OR_NEWER
+ if (!_useSceneNameIdentifier)
+ {
+ // Set main asset
+ _mainAssetIdentifier = "main asset";
+ ctx.AddObjectToAsset(_mainAssetIdentifier, gltfScene);
+ }
+ else
+ {
+ // This will be a breaking change, but would be aligned to the import naming from glTFast - allows switching back and forth between importers.
+ _mainAssetIdentifier = $"scenes/{gltfScene.name}";
+ ctx.AddObjectToAsset(_mainAssetIdentifier, gltfScene);
+ }
+
+ // Add meshes
+ foreach (var mesh in meshes)
+ {
+ try
+ {
+ ctx.AddObjectToAsset(GetUniqueName("mesh-" + mesh.name), mesh);
+ } catch(System.InvalidOperationException e) {
+ Debug.LogWarning(e.ToString(), mesh);
+ }
+ }
+
+#if UNITY_2020_2_OR_NEWER
+ ctx.DependsOnCustomDependency(ColorSpaceDependency);
+#endif
+ ctx.SetMainObject(gltfScene);
+#else
+ // Set main asset
+ ctx.SetMainAsset("main asset", gltfScene);
+
+ // Add meshes
+ foreach (var mesh in meshes)
+ {
+ try {
+ ctx.AddSubAsset("mesh " + mesh.name, mesh);
+ } catch (System.InvalidOperationException e) {
+ Debug.LogWarning(e.ToString(), mesh);
+ }
+ }
+#endif
+ }
+
+ private const string ColorSpaceDependency = nameof(GLTFImporter) + "_" + nameof(PlayerSettings.colorSpace);
+
+#if UNITY_2020_2_OR_NEWER
+ [InitializeOnLoadMethod]
+ private static void UpdateColorSpace()
+ {
+ AssetDatabase.RegisterCustomDependency(ColorSpaceDependency, Hash128.Compute((int) PlayerSettings.colorSpace));
+ }
+#endif
+
+ private void CreateGLTFScene(string projectFilePath, out GameObject scene, out AnimationClip[] animationClips)
+ {
+ var importOptions = new ImportOptions
+ {
+ DataLoader = new FileLoader(Path.GetDirectoryName(projectFilePath)),
+ AnimationMethod = _importAnimations,
+ AnimationLoopTime = _animationLoopTime,
+ AnimationLoopPose = _animationLoopPose,
+ };
+ using (var stream = File.OpenRead(projectFilePath))
+ {
+ GLTFRoot gLTFRoot;
+ GLTFParser.ParseJson(stream, out gLTFRoot);
+ stream.Position = 0; // Make sure the read position is changed back to the beginning of the file
+ var loader = new GLTFSceneImporter(gLTFRoot, stream, importOptions);
+ loader.MaximumLod = _maximumLod;
+ loader.IsMultithreaded = true;
+
+ loader.LoadSceneAsync().Wait();
+
+ if (gLTFRoot.ExtensionsUsed != null)
+ {
+ _extensions = gLTFRoot.ExtensionsUsed
+ .Select(x => new ExtensionInfo()
+ {
+ name = x,
+ supported = true,
+ used = true,
+ required = gLTFRoot.ExtensionsRequired?.Contains(x) ?? false,
+ })
+ .ToList();
+ }
+ else
+ {
+ _extensions = new List();
+ }
+
+ _textures = loader.TextureCache
+ .Where(x => x != null)
+ .Select(x => new TextureInfo() { texture = x.Texture, shouldBeLinear = x.IsLinear })
+ .ToList();
+
+ scene = loader.LastLoadedScene;
+ animationClips = loader.CreatedAnimationClips;
+ }
+ }
+
+ private void CopyOrNew(T asset, string assetPath, Action replaceReferences) where T : Object
+ {
+ var existingAsset = AssetDatabase.LoadAssetAtPath(assetPath);
+ if (existingAsset)
+ {
+ EditorUtility.CopySerialized(asset, existingAsset);
+ replaceReferences(existingAsset);
+ return;
+ }
+
+ AssetDatabase.CreateAsset(asset, assetPath);
+ }
+
+ private class TexMaterialMap
+ {
+ public UnityEngine.Material Material { get; set; }
+ public string Property { get; set; }
+ public bool IsNormalMap { get; set; }
+
+ public TexMaterialMap(UnityEngine.Material material, string property, bool isNormalMap)
+ {
+ Material = material;
+ Property = property;
+ IsNormalMap = isNormalMap;
+ }
+ }
+
+ public override bool SupportsRemappedAssetType(Type type)
+ {
+ if (type == typeof(Material))
+ return true;
+ return base.SupportsRemappedAssetType(type);
+ }
+ }
+}
+#endif
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporter.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporter.cs.meta
new file mode 100644
index 0000000..11233c0
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporter.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 804e1ce4c496647cfa3f1a1134187c71
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporterInspector.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporterInspector.cs
new file mode 100644
index 0000000..30e92c5
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporterInspector.cs
@@ -0,0 +1,334 @@
+#if UNITY_2017_1_OR_NEWER
+using System;
+using System.IO;
+using System.Linq;
+using System.Text;
+using UnityEditor;
+
+using UnityEngine;
+#if UNITY_2020_2_OR_NEWER
+using UnityEditor.AssetImporters;
+#else
+using UnityEditor.Experimental.AssetImporters;
+#endif
+
+namespace UnityGLTF
+{
+ [CustomEditor(typeof(GLTFImporter))]
+ [CanEditMultipleObjects]
+ internal class GLTFImporterInspector : UnityGLTFTabbedEditor
+ {
+ private string[] _importNormalsNames;
+
+ public override void OnEnable()
+ {
+ AddTab(new GltfAssetImporterTab(this, "Model", ModelInspectorGUI));
+ AddTab(new GltfAssetImporterTab(this, "Animation", AnimationInspectorGUI));
+ AddTab(new GltfAssetImporterTab(this, "Materials", MaterialInspectorGUI));
+ AddTab(new GltfAssetImporterTab(this, "Extensions", ExtensionInspectorGUI));
+
+ base.OnEnable();
+ }
+
+ private void TextureWarningsGUI(GLTFImporter t)
+ {
+ if (!t) return;
+ if (!TextureImportSettingsAreCorrect(t))
+ {
+ EditorGUILayout.HelpBox("Some Textures have incorrect linear/sRGB settings. Results might be incorrect.", MessageType.Warning);
+ if (GUILayout.Button("Fix All"))
+ {
+ FixTextureImportSettings(t);
+ }
+ }
+ }
+
+ private void ModelInspectorGUI()
+ {
+ var t = target as GLTFImporter;
+ if (!t) EditorGUILayout.LabelField("NOOOO");
+
+ if (!t) return;
+
+ // serializedObject.Update();
+ if (_importNormalsNames == null)
+ {
+ _importNormalsNames = Enum.GetNames(typeof(GLTFImporterNormals))
+ .Select(n => ObjectNames.NicifyVariableName(n))
+ .ToArray();
+ }
+ EditorGUILayout.LabelField("Scene", EditorStyles.boldLabel);
+ EditorGUILayout.PropertyField(serializedObject.FindProperty(nameof(GLTFImporter._removeEmptyRootObjects)));
+ EditorGUILayout.PropertyField(serializedObject.FindProperty(nameof(GLTFImporter._scaleFactor)));
+ // EditorGUILayout.PropertyField(serializedObject.FindProperty(nameof(GLTFImporter._maximumLod)), new GUIContent("Maximum Shader LOD"));
+ EditorGUILayout.Separator();
+ EditorGUILayout.LabelField("Meshes", EditorStyles.boldLabel);
+ EditorGUILayout.PropertyField(serializedObject.FindProperty(nameof(GLTFImporter._readWriteEnabled)), new GUIContent("Read/Write"));
+ EditorGUILayout.PropertyField(serializedObject.FindProperty(nameof(GLTFImporter._generateColliders)));
+ EditorGUILayout.Separator();
+ EditorGUILayout.LabelField("Geometry", EditorStyles.boldLabel);
+ EditorGUI.BeginChangeCheck();
+ var importNormalsProp = serializedObject.FindProperty(nameof(GLTFImporter._importNormals));
+ var importNormals = EditorGUILayout.Popup("Normals", importNormalsProp.intValue, _importNormalsNames);
+ if (EditorGUI.EndChangeCheck())
+ {
+ importNormalsProp.intValue = importNormals;
+ }
+ EditorGUI.BeginChangeCheck();
+ var importTangentsProp = serializedObject.FindProperty(nameof(GLTFImporter._importTangents));
+ var importTangents = EditorGUILayout.Popup("Tangents", importTangentsProp.intValue, _importNormalsNames);
+ if (EditorGUI.EndChangeCheck())
+ {
+ importTangentsProp.intValue = importTangents;
+ }
+ EditorGUILayout.PropertyField(serializedObject.FindProperty(nameof(GLTFImporter._swapUvs)), new GUIContent("Swap UVs"));
+ EditorGUILayout.PropertyField(serializedObject.FindProperty(nameof(GLTFImporter._generateLightmapUVs)), new GUIContent("Generate Lightmap UVs"));
+ EditorGUILayout.Separator();
+
+ TextureWarningsGUI(t);
+ }
+
+ private void AnimationInspectorGUI()
+ {
+ var t = target as GLTFImporter;
+ if (!t) return;
+
+ var anim = serializedObject.FindProperty(nameof(GLTFImporter._importAnimations));
+ EditorGUILayout.PropertyField(anim, new GUIContent("Animation Type"));
+ if (anim.enumValueIndex > 0)
+ {
+ var loopTime = serializedObject.FindProperty(nameof(GLTFImporter._animationLoopTime));
+ EditorGUILayout.PropertyField(loopTime, new GUIContent("Loop Time"));
+ if (loopTime.boolValue)
+ {
+ EditorGUI.indentLevel++;
+ EditorGUILayout.PropertyField(serializedObject.FindProperty(nameof(GLTFImporter._animationLoopPose)), new GUIContent("Loop Pose"));
+ EditorGUI.indentLevel--;
+ }
+ }
+
+ // warn if Humanoid rig import has failed
+ if (!HasModified() && anim.enumValueIndex == (int) AnimationMethod.MecanimHumanoid && !AssetDatabase.LoadAssetAtPath(t.assetPath))
+ {
+ EditorGUILayout.Separator();
+ EditorGUILayout.HelpBox("The model doesn't contain a valid Humanoid rig. See the console for more information.", MessageType.Error);
+ }
+ }
+
+ private void MaterialInspectorGUI()
+ {
+ var t = target as GLTFImporter;
+ if (!t) return;
+
+ var mats = serializedObject.FindProperty("m_Materials");
+ EditorGUILayout.PropertyField(serializedObject.FindProperty(nameof(GLTFImporter._importMaterials)));
+ EditorGUILayout.Separator();
+
+ // extract and remap materials
+ if (mats != null && mats.serializedObject != null)
+ {
+ EditorGUI.indentLevel++;
+ var externalObjectMap = t.GetExternalObjectMap();
+
+ void ExtractMaterial(Material subAsset, bool importImmediately)
+ {
+ if (!subAsset) return;
+ var filename = SanitizePath(subAsset.name);
+ var dirName = Path.GetDirectoryName(t.assetPath) + "/Materials";
+ if (!Directory.Exists(dirName))
+ Directory.CreateDirectory(dirName);
+ var destinationPath = dirName + "/" + filename + ".mat";
+ var assetPath = AssetDatabase.GetAssetPath(subAsset);
+
+ var clone = Instantiate(subAsset);
+ AssetDatabase.CreateAsset(clone, destinationPath);
+
+ var assetImporter = AssetImporter.GetAtPath(assetPath);
+ assetImporter.AddRemap(new AssetImporter.SourceAssetIdentifier(subAsset), clone);
+
+ if (importImmediately)
+ {
+ AssetDatabase.WriteImportSettingsIfDirty(assetPath);
+ AssetDatabase.ImportAsset(assetPath, ImportAssetOptions.ForceUpdate);
+ }
+ }
+
+ const string key2 = nameof(GLTFImporterInspector) + "_RemapMaterials_List";
+ var newVal2 = EditorGUILayout.BeginFoldoutHeaderGroup(SessionState.GetBool(key2, false), "Remap Materials (" + mats.arraySize + ")");
+ SessionState.SetBool(key2, newVal2);
+ if (newVal2)
+ {
+ for (var i = 0; i < mats.arraySize; i++)
+ {
+ var mat = mats.GetArrayElementAtIndex(i).objectReferenceValue as Material;
+ if (!mat) continue;
+ var id = new AssetImporter.SourceAssetIdentifier(mat);
+ externalObjectMap.TryGetValue(id, out var remap);
+ EditorGUILayout.BeginHorizontal();
+ // EditorGUILayout.ObjectField(/*mat.name,*/ mat, typeof(Material), false);
+ EditorGUI.BeginChangeCheck();
+ var newObj = EditorGUILayout.ObjectField(mat.name, remap, typeof(Material), false);
+ if (EditorGUI.EndChangeCheck())
+ {
+ if (newObj && newObj != mat)
+ t.AddRemap(id, newObj);
+ else
+ t.RemoveRemap(id);
+ }
+
+ if (!remap)
+ {
+ if (GUILayout.Button("Extract", GUILayout.Width(60)))
+ {
+ ExtractMaterial(mat, true);
+ GUIUtility.ExitGUI();
+ }
+ }
+ else
+ {
+ if (GUILayout.Button("Restore", GUILayout.Width(60)))
+ {
+ t.RemoveRemap(id);
+#if UNITY_2022_2_OR_NEWER
+ SaveChanges();
+#else
+ ApplyAndImport();
+#endif
+ GUIUtility.ExitGUI();
+ }
+ }
+
+ EditorGUILayout.EndHorizontal();
+ }
+ }
+
+ EditorGUILayout.BeginHorizontal();
+ EditorGUILayout.PrefixLabel(" ");
+ if (GUILayout.Button("Restore Materials"))
+ {
+ for (var i = 0; i < mats.arraySize; i++)
+ {
+ var mat = mats.GetArrayElementAtIndex(i).objectReferenceValue as Material;
+ if (!mat) continue;
+ t.RemoveRemap(new AssetImporter.SourceAssetIdentifier(mat));
+ }
+ }
+
+ if (GUILayout.Button("Extract Materials"))
+ {
+ for (var i = 0; i < mats.arraySize; i++)
+ {
+ AssetDatabase.StartAssetEditing();
+ ExtractMaterial(mats.GetArrayElementAtIndex(i).objectReferenceValue as Material, false);
+ AssetDatabase.StopAssetEditing();
+ var assetPath = AssetDatabase.GetAssetPath(target);
+ AssetDatabase.WriteImportSettingsIfDirty(assetPath);
+ AssetDatabase.Refresh();
+ }
+ }
+
+ EditorGUILayout.EndHorizontal();
+ EditorGUI.indentLevel--;
+ }
+
+ EditorGUILayout.EndFoldoutHeaderGroup();
+
+ EditorGUILayout.Separator();
+
+ var identifierProp = serializedObject.FindProperty(nameof(GLTFImporter._useSceneNameIdentifier));
+ if (!identifierProp.boolValue)
+ {
+ EditorGUILayout.HelpBox("This asset uses the old main asset identifier. Upgrade to the new one if you want to seamlessly switch between glTFast and UnityGLTF on import.\nNOTE: This will break existing scene references.", MessageType.Info);
+ if (GUILayout.Button("Update Asset Identifier"))
+ {
+ identifierProp.boolValue = true;
+ serializedObject.ApplyModifiedProperties();
+ try
+ {
+#if UNITY_2022_2_OR_NEWER
+ SaveChanges();
+#else
+ ApplyAndImport();
+#endif
+ GUIUtility.ExitGUI();
+ }
+ catch
+ {
+ // ignore - seems in some cases the GameObjectInspector will throw
+ }
+ }
+ }
+ // EditorGUILayout.PropertyField(serializedObject.FindProperty("_useJpgTextures"), new GUIContent("Use JPG Textures"));
+
+ EditorGUILayout.Separator();
+
+ TextureWarningsGUI(t);
+ }
+
+ private void ExtensionInspectorGUI()
+ {
+ var t = target as GLTFImporter;
+ if (!t) return;
+
+ EditorGUI.BeginDisabledGroup(true);
+ var mainAssetIdentifierProp = serializedObject.FindProperty(nameof(GLTFImporter._mainAssetIdentifier));
+ EditorGUILayout.PropertyField(mainAssetIdentifierProp);
+
+ EditorGUILayout.PropertyField(serializedObject.FindProperty(nameof(GLTFImporter._extensions)), new GUIContent("Extensions"));
+ EditorGUI.EndDisabledGroup();
+ }
+
+ public static bool TextureImportSettingsAreCorrect(GLTFImporter importer)
+ {
+ return importer.Textures.All(x =>
+ {
+ if (AssetDatabase.Contains(x.texture) && AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(x.texture)) is TextureImporter textureImporter)
+ {
+ return textureImporter.sRGBTexture == !x.shouldBeLinear;
+ }
+ return true;
+ });
+ }
+
+ public static void FixTextureImportSettings(GLTFImporter importer)
+ {
+ var haveStartedAssetEditing = false;
+ foreach (var x in importer.Textures)
+ {
+ if (!AssetDatabase.Contains(x.texture) || !(AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(x.texture)) is TextureImporter textureImporter)) continue;
+
+ // skip if already correct
+ if (textureImporter.sRGBTexture == !x.shouldBeLinear)
+ continue;
+
+ if (!haveStartedAssetEditing)
+ {
+ haveStartedAssetEditing = true;
+ AssetDatabase.StartAssetEditing();
+ }
+
+ textureImporter.sRGBTexture = !x.shouldBeLinear;
+ textureImporter.SaveAndReimport();
+ }
+
+ if (haveStartedAssetEditing)
+ AssetDatabase.StopAssetEditing();
+ }
+
+ private static string SanitizePath(string subAssetName)
+ {
+ // make filename safe without using Regex
+ var invalidChars = Path.GetInvalidFileNameChars();
+ var sb = new StringBuilder(subAssetName);
+ for (int i = 0; i < sb.Length; i++)
+ {
+ if (invalidChars.Contains(sb[i]))
+ {
+ sb[i] = '_';
+ }
+ }
+ return sb.ToString();
+ }
+ }
+}
+#endif
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporterInspector.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporterInspector.cs.meta
new file mode 100644
index 0000000..26605d4
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporterInspector.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 20d4d64afd8e74d39a8d8fad13d909fc
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporterNormals.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporterNormals.cs
new file mode 100644
index 0000000..31f4b9a
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporterNormals.cs
@@ -0,0 +1,11 @@
+#if UNITY_2017_1_OR_NEWER
+namespace UnityGLTF
+{
+ public enum GLTFImporterNormals
+ {
+ Import,
+ Calculate,
+ None
+ }
+}
+#endif
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporterNormals.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporterNormals.cs.meta
new file mode 100644
index 0000000..1468a68
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/GLTFImporterNormals.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: f3961a7b54dd64330a1228d3aa9993c0
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/JsonDotNet/Assemblies/Standalone.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal.meta
similarity index 57%
rename from Assets/Plugins/JsonDotNet/Assemblies/Standalone.meta
rename to Assets/Plugins/UnityGLTF/Editor/Scripts/Internal.meta
index 242f110..b1b0477 100644
--- a/Assets/Plugins/JsonDotNet/Assemblies/Standalone.meta
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal.meta
@@ -1,9 +1,8 @@
fileFormatVersion: 2
-guid: 01ef782d02bb1994dbe418b69432552b
+guid: 043bcd2f8cd689d4298a4ff9f11d1056
folderAsset: yes
-timeCreated: 1466788344
-licenseType: Store
DefaultImporter:
+ externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/AvatarUtils.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/AvatarUtils.cs
new file mode 100644
index 0000000..d147a52
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/AvatarUtils.cs
@@ -0,0 +1,219 @@
+using System.Collections.Generic;
+using UnityEngine;
+
+namespace UnityGLTF
+{
+ internal class AvatarUtils
+ {
+ // A static dictionary containing the mapping from joint/bones names in the model
+ // to the names Unity uses for them internally.
+ // In this case they match the naming from the included Mixamo model on the left
+ // and the Unity equivalent name on the right.
+ // This does not need to be hard-coded.
+ public static Dictionary HumanSkeletonNames = new Dictionary()
+ {
+ {"mixamorig:Spine1", "Chest"},
+ {"mixamorig:Head", "Head" },
+ {"mixamorig:Hips", "Hips" },
+ {"mixamorig:LeftHandIndex3", "Left Index Distal" },
+ {"mixamorig:LeftHandIndex2", "Left Index Intermediate" },
+ {"mixamorig:LeftHandIndex1", "Left Index Proximal" },
+ {"mixamorig:LeftHandPinky3", "Left Little Distal" },
+ {"mixamorig:LeftHandPinky2", "Left Little Intermediate" },
+ {"mixamorig:LeftHandPinky1", "Left Little Proximal" },
+ {"mixamorig:LeftHandMiddle3", "Left Middle Distal" },
+ {"mixamorig:LeftHandMiddle2", "Left Middle Intermediate" },
+ {"mixamorig:LeftHandMiddle1", "Left Middle Proximal" },
+ {"mixamorig:LeftHandRing3", "Left Ring Distal" },
+ {"mixamorig:LeftHandRing2", "Left Ring Intermediate" },
+ {"mixamorig:LeftHandRing1", "Left Ring Proximal" },
+ {"mixamorig:LeftHandThumb3", "Left Thumb Distal" },
+ {"mixamorig:LeftHandThumb2", "Left Thumb Intermediate" },
+ {"mixamorig:LeftHandThumb1", "Left Thumb Proximal" },
+ {"mixamorig:LeftFoot", "LeftFoot" },
+ {"mixamorig:LeftHand", "LeftHand" },
+ {"mixamorig:LeftForeArm", "LeftLowerArm" },
+ {"mixamorig:LeftLeg", "LeftLowerLeg" },
+ {"mixamorig:LeftShoulder", "LeftShoulder" },
+ {"mixamorig:LeftToeBase", "LeftToes" },
+ {"mixamorig:LeftArm", "LeftUpperArm" },
+ {"mixamorig:LeftUpLeg", "LeftUpperLeg" },
+ {"mixamorig:Neck", "Neck" },
+ {"mixamorig:RightHandIndex3", "Right Index Distal" },
+ {"mixamorig:RightHandIndex2", "Right Index Intermediate" },
+ {"mixamorig:RightHandIndex1", "Right Index Proximal" },
+ {"mixamorig:RightHandPinky3", "Right Little Distal" },
+ {"mixamorig:RightHandPinky2", "Right Little Intermediate" },
+ {"mixamorig:RightHandPinky1", "Right Little Proximal" },
+ {"mixamorig:RightHandMiddle3", "Right Middle Distal" },
+ {"mixamorig:RightHandMiddle2", "Right Middle Intermediate" },
+ {"mixamorig:RightHandMiddle1", "Right Middle Proximal" },
+ {"mixamorig:RightHandRing3", "Right Ring Distal" },
+ {"mixamorig:RightHandRing2", "Right Ring Intermediate" },
+ {"mixamorig:RightHandRing1", "Right Ring Proximal" },
+ {"mixamorig:RightHandThumb3", "Right Thumb Distal" },
+ {"mixamorig:RightHandThumb2", "Right Thumb Intermediate" },
+ {"mixamorig:RightHandThumb1", "Right Thumb Proximal" },
+ {"mixamorig:RightFoot", "RightFoot" },
+ {"mixamorig:RightHand", "RightHand" },
+ {"mixamorig:RightForeArm", "RightLowerArm" },
+ {"mixamorig:RightLeg", "RightLowerLeg" },
+ {"mixamorig:RightShoulder", "RightShoulder" },
+ {"mixamorig:RightToeBase", "RightToes" },
+ {"mixamorig:RightArm", "RightUpperArm" },
+ {"mixamorig:RightUpLeg", "RightUpperLeg" },
+ {"mixamorig:Spine", "Spine" },
+ {"mixamorig:Spine2", "UpperChest" },
+
+ // Other common Avatar formats can also be added here
+ // { "root", "" },
+ { "hips", "Hips" },
+ { "spine", "Spine" },
+ { "chest", "Chest" },
+ { "upperChest", "UpperChest" },
+ { "neck", "Neck" },
+ { "head", "Head" },
+ { "leftEye", "LeftEye" },
+ // { "eyeL_end", "" },
+ { "rightEye", "RightEye" },
+ // { "eyeR_end", "" },
+ { "leftShoulder", "LeftShoulder" },
+ { "leftUpperArm", "LeftUpperArm" },
+ { "leftLowerArm", "LeftLowerArm" },
+ { "leftHand", "LeftHand" },
+ // { "leftThumbMetacarpal", "" },
+ // { "leftThumbProximal", "" },
+ // { "leftThumbDistal", "" },
+ // { "thumbdistalL_end", "" },
+ // { "leftIndexProximal", "" },
+ // { "leftIndexIntermediate", "" },
+ // { "leftIndexDistal", "" },
+ // { "indexdistalL_end", "" },
+ // { "leftMiddleProximal", "" },
+ // { "leftMiddleIntermediate", "" },
+ // { "leftMiddleDistal", "" },
+ // { "middledistalL_end", "" },
+ // { "leftRingProximal", "" },
+ // { "leftRingIntermediate", "" },
+ // { "leftRingDistal", "" },
+ // { "ringdistalL_end", "" },
+ // { "leftLittleProximal", "" },
+ // { "leftLittleIntermediate", "" },
+ // { "leftLittleDistal", "" },
+ // { "littledistalL_end", "" },
+ { "rightShoulder", "RightShoulder" },
+ { "rightUpperArm", "RightUpperArm" },
+ { "rightLowerArm", "RightLowerArm" },
+ { "rightHand", "RightHand" },
+ // { "rightThumbMetacarpal", "" },
+ // { "rightThumbProximal", "" },
+ // { "rightThumbDistal", "" },
+ // { "thumbdistalR_end", "" },
+ // { "rightIndexProximal", "" },
+ // { "rightIndexIntermediate", "" },
+ // { "rightIndexDistal", "" },
+ // { "indexdistalR_end", "" },
+ // { "rightMiddleProximal", "" },
+ // { "rightMiddleIntermediate", "" },
+ // { "rightMiddleDistal", "" },
+ // { "middledistalR_end", "" },
+ // { "rightRingProximal", "" },
+ // { "rightRingIntermediate", "" },
+ // { "rightRingDistal", "" },
+ // { "ringdistalR_end", "" },
+ // { "rightLittleProximal", "" },
+ // { "rightLittleIntermediate", "" },
+ // { "rightLittleDistal", "" },
+ // { "littledistalR_end", "" },
+ { "leftUpperLeg", "LeftUpperLeg" },
+ { "leftLowerLeg", "LeftLowerLeg" },
+ { "leftFoot", "LeftFoot" },
+ { "leftToes", "LeftToes" },
+ // { "toesL_end", "" },
+ { "rightUpperLeg", "RightUpperLeg" },
+ { "rightLowerLeg", "RightLowerLeg" },
+ { "rightFoot", "RightFoot" },
+ { "rightToes", "RightToes" },
+ // { "toesR_end", "" },
+
+ };
+
+ ///
+ /// Create a HumanDescription out of an avatar GameObject.
+ /// The HumanDescription is what is needed to create an Avatar object
+ /// using the AvatarBuilder API. This function takes care of
+ /// creating the HumanDescription by going through the avatar's
+ /// hierarchy, defining its T-Pose in the skeleton, and defining
+ /// the transform/bone mapping in the HumanBone array.
+ ///
+ /// Root of your avatar object
+ /// A HumanDescription which can be fed to the AvatarBuilder API
+ public static HumanDescription CreateHumanDescription(GameObject avatarRoot)
+ {
+ HumanDescription description = new HumanDescription()
+ {
+ armStretch = 0.05f,
+ feetSpacing = 0f,
+ hasTranslationDoF = false,
+ legStretch = 0.05f,
+ lowerArmTwist = 0.5f,
+ lowerLegTwist = 0.5f,
+ upperArmTwist = 0.5f,
+ upperLegTwist = 0.5f,
+ skeleton = CreateSkeleton(avatarRoot),
+ human = CreateHuman(avatarRoot),
+ };
+ return description;
+ }
+
+ //Create a SkeletonBone array out of an Avatar GameObject
+ //This assumes that the Avatar as supplied is in a T-Pose
+ //The local positions of its bones/joints are used to define this T-Pose
+ private static SkeletonBone[] CreateSkeleton(GameObject avatarRoot)
+ {
+ List skeleton = new List();
+
+ Transform[] avatarTransforms = avatarRoot.GetComponentsInChildren();
+ foreach (Transform avatarTransform in avatarTransforms)
+ {
+ SkeletonBone bone = new SkeletonBone()
+ {
+ name = avatarTransform.name,
+ position = avatarTransform.localPosition,
+ rotation = avatarTransform.localRotation,
+ scale = avatarTransform.localScale
+ };
+
+ skeleton.Add(bone);
+ }
+ return skeleton.ToArray();
+ }
+
+ //Create a HumanBone array out of an Avatar GameObject
+ //This is where the various bones/joints get associated with the
+ //joint names that Unity understands. This is done using the
+ //static dictionary defined at the top.
+ private static HumanBone[] CreateHuman(GameObject avatarRoot)
+ {
+ List human = new List();
+
+ Transform[] avatarTransforms = avatarRoot.GetComponentsInChildren();
+ foreach (Transform avatarTransform in avatarTransforms)
+ {
+ if (HumanSkeletonNames.TryGetValue(avatarTransform.name, out string humanName))
+ {
+ HumanBone bone = new HumanBone
+ {
+ boneName = avatarTransform.name,
+ humanName = humanName,
+ limit = new HumanLimit()
+ };
+ bone.limit.useDefaultValues = true;
+
+ human.Add(bone);
+ }
+ }
+ return human.ToArray();
+ }
+ }
+}
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/AvatarUtils.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/AvatarUtils.cs.meta
new file mode 100644
index 0000000..fcaf104
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/AvatarUtils.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 15daddec8a84e584db94b127e7bd05b7
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/GLTFMaterialHelper.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/GLTFMaterialHelper.cs
new file mode 100644
index 0000000..cfd6e9a
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/GLTFMaterialHelper.cs
@@ -0,0 +1,271 @@
+#if !NO_INTERNALS_ACCESS
+
+using System.Linq;
+using System.Text;
+using UnityEngine;
+
+#if UNITY_EDITOR
+using System.Collections.Generic;
+using System.IO;
+using UnityEditor;
+using UnityEditorInternal;
+#endif
+
+namespace UnityGLTF
+{
+ public static class GLTFMaterialHelper
+ {
+ ///
+ /// Return false if other delegates should take over. Only return true if you did work and assigned material.shader = newShader.
+ ///
+ public delegate bool ConvertMaterialToGLTFDelegate(Material material, Shader oldShader, Shader newShader);
+ private static event ConvertMaterialToGLTFDelegate ConvertMaterialDelegates;
+
+ public static void RegisterMaterialConversionToGLTF(ConvertMaterialToGLTFDelegate converter) => ConvertMaterialDelegates += converter;
+ public static void UnregisterMaterialConversionToGLTF(ConvertMaterialToGLTFDelegate converter) => ConvertMaterialDelegates -= converter;
+
+ public static void ConvertMaterialToGLTF(Material material, Shader oldShader, Shader newShader)
+ {
+ if (ConvertMaterialDelegates != null)
+ {
+ var list = ConvertMaterialDelegates.GetInvocationList();
+ foreach (var entry in list)
+ {
+ var cb = (ConvertMaterialToGLTFDelegate) entry;
+ if (cb != null && cb.Invoke(material, oldShader, newShader))
+ {
+ return;
+ }
+ }
+ }
+
+ // IDEA ideally this would use the same code path as material export/import - would reduce the amount of code duplication considerably.
+ // E.g. calling something like
+ // var glTFMaterial = ExportMaterial(material);
+ // ImportAndOverrideMaterial(material, glTFMaterial);
+ // that uses all the same heuristics, texture conversions, ...
+
+ var msg = "No automatic conversion\nfrom " + oldShader.name + "\nto " + newShader.name + "\nfound.\n\nYou can create a conversion script, adjust which old properties map to which new properties, and switch the shader again.";
+
+#if UNITY_EDITOR
+ var choice = EditorUtility.DisplayDialogComplex("Shader Conversion", msg, "Just set shader", "Cancel", "Create and open conversion script");
+ switch (choice)
+ {
+ case 0: // OK
+ material.shader = newShader;
+ break;
+ case 1: // Cancel
+ break;
+ case 2: // Alt
+ var path = ShaderConversion.CreateConversionScript(oldShader, newShader);
+ InternalEditorUtility.OpenFileAtLineExternal(path, 0);
+ break;
+ }
+#else
+ Debug.Log(msg + " Make sure your material properties match the new shader. You can add your own conversion callbacks via `RegisterMaterialConversionToGLTF`. If you think this should have been converted automatically: please open a feature request!");
+ material.shader = newShader;
+#endif
+ }
+
+ public static void ValidateMaterialKeywords(Material material)
+ {
+ // TODO ensure we're setting correct keywords for
+ // - existence of a normal map
+ // - existence of emission color values or texture
+ // -
+
+ // var needsVolumeTransmission = false;
+ // needsVolumeTransmission |= material.HasProperty(thicknessFactor) && material.GetFloat(thicknessFactor) > 0;
+ // needsVolumeTransmission |= material.HasProperty(transmissionFactor) && material.GetFloat(transmissionFactor) > 0;
+ // material.SetKeyword("_VOLUME_TRANSMISSION", needsVolumeTransmission);
+ //
+ // var needsIridescence = material.HasProperty(iridescenceFactor) && material.GetFloat(iridescenceFactor) > 0;
+ // material.SetKeyword("_IRIDESCENCE", needsIridescence);
+ //
+ // var needsSpecular = material.HasProperty(specularFactor) && material.GetFloat(specularFactor) > 0;
+ // material.SetKeyword("_SPECULAR", needsSpecular);
+
+ if (material.IsKeywordEnabled("_VOLUME_TRANSMISSION_ON"))
+ {
+ // // approximation when transmission is on but roughness == 0
+ // // (no opaque pass required)
+ // TODO does weird things with transparency but still rendering into the Opaque Texture for some reason
+ // if (material.HasProperty("roughnessFactor") && material.GetFloat("roughnessFactor") == 0)
+ // {
+ // // enforce transparent
+ // if (material.HasProperty("_QueueControl")) material.SetFloat("_QueueControl", 0);
+ // if (material.HasProperty("_BUILTIN_QueueControl")) material.SetFloat("_BUILTIN_QueueControl", 0);
+ // if (material.HasProperty("_BUILTIN_Surface")) material.SetFloat("_BUILTIN_Surface", 1);
+ // if (material.HasProperty("_Surface")) material.SetFloat("_Surface", 1);
+ // material.EnableKeyword("_SURFACE_TYPE_TRANSPARENT");
+ // material.EnableKeyword("_BUILTIN_SURFACE_TYPE_TRANSPARENT");
+ // material.renderQueue = -1;
+ // }
+ // else
+ {
+ // enforce Opaque
+ if (material.HasProperty("_BUILTIN_Surface")) material.SetFloat("_BUILTIN_Surface", 0);
+ if (material.HasProperty("_Surface")) material.SetFloat("_Surface", 0);
+ material.DisableKeyword("_SURFACE_TYPE_TRANSPARENT");
+ material.DisableKeyword("_BUILTIN_SURFACE_TYPE_TRANSPARENT");
+
+ // enforce queue control and render queue 3000
+ if (material.HasProperty("_QueueControl")) material.SetFloat("_QueueControl", 1);
+ if (material.HasProperty("_BUILTIN_QueueControl")) material.SetFloat("_BUILTIN_QueueControl", 1);
+
+ // not a great choice: using 2999 as magic value for "we automatically set the queue for you"
+ // so the change can be reverted if someone toggles transmission on and then off again.
+ material.renderQueue = 2999;
+ }
+ }
+ else
+ {
+ if (material.renderQueue == 2999)
+ {
+ if (material.HasProperty("_QueueControl")) material.SetFloat("_QueueControl", 0);
+ if (material.HasProperty("_BUILTIN_QueueControl")) material.SetFloat("_BUILTIN_QueueControl", 0);
+ material.renderQueue = -1;
+ }
+ }
+
+ if (material.HasProperty("emissiveFactor"))
+ material.globalIlluminationFlags = MaterialEditor.FixupEmissiveFlag(material.GetColor("emissiveFactor"), material.globalIlluminationFlags);
+
+ if (!material.IsKeywordEnabled("_TEXTURE_TRANSFORM_ON"))
+ {
+ if (material.GetTextureScale("baseColorTexture") != Vector2.one || material.GetTextureOffset("baseColorTexture") != Vector2.zero)
+ {
+ SetKeyword(material, "_TEXTURE_TRANSFORM", true);
+ }
+ }
+ }
+
+ public static void SetKeyword(Material material, string keyword, bool state)
+ {
+ if (state)
+ material.EnableKeyword(keyword + "_ON");
+ else
+ material.DisableKeyword(keyword + "_ON");
+
+ if (material.HasProperty(keyword))
+ material.SetFloat(keyword, state ? 1 : 0);
+ }
+ }
+
+#if UNITY_EDITOR
+ internal static class ShaderConversion
+ {
+ public static string CreateConversionScript(Shader oldShader, Shader newShader)
+ {
+ var classShaderName = oldShader.name
+ .Replace("/", "_")
+ .Replace(" ", "_")
+ .Replace("\\", "_");
+
+ var scriptFile = ShaderConversionScriptTemplate;
+ scriptFile = scriptFile.Replace("", classShaderName);
+ scriptFile = scriptFile.Replace("", oldShader.name);
+
+ var sb = new StringBuilder();
+ foreach(var (propName, propDisplayName, type) in GetShaderProperties(oldShader))
+ {
+ sb.AppendLine($"\t\tvar {propName} = material.{MethodFromType("Get", type)}(\"{propName}\"); // {propDisplayName}");
+ }
+
+ var sb2 = new StringBuilder();
+ foreach(var (propName, propDisplayName, type) in GetShaderProperties(newShader))
+ {
+ sb2.AppendLine($"\t\t// material.{MethodFromType("Set", type)}(\"{propName}\", insert_value_here); // {propDisplayName}");
+ }
+
+ scriptFile = scriptFile.Replace("\t\t", sb.ToString());
+ scriptFile = scriptFile.Replace("\t\t", sb2.ToString());
+
+ const string dir = "Assets/Editor/ShaderConversions";
+ Directory.CreateDirectory(dir);
+ var fileName = dir + "/" + classShaderName + ".cs";
+ if (!File.Exists(fileName) || EditorUtility.DisplayDialog("File already exists", $"The file \"{fileName}\" already exists. Replace?", "Replace", "Cancel"))
+ File.WriteAllText(fileName, scriptFile);
+
+ AssetDatabase.Refresh();
+
+ return fileName;
+ }
+
+ private static IEnumerable<(string propName, string propDisplayName, ShaderUtil.ShaderPropertyType type)> GetShaderProperties(Shader shader)
+ {
+ var c = ShaderUtil.GetPropertyCount(shader);
+ for (var i = 0; i < c; i++)
+ {
+ if (ShaderUtil.IsShaderPropertyHidden(shader, i)) continue;
+ if (ShaderUtil.IsShaderPropertyNonModifiableTexureProperty(shader, i)) continue;
+
+ var propName = ShaderUtil.GetPropertyName(shader, i);
+ if(propName.StartsWith("unity_")) continue;
+
+ var propDisplayName = ShaderUtil.GetPropertyDescription(shader, i);
+ var type = ShaderUtil.GetPropertyType(shader, i);
+ yield return (propName, propDisplayName, type);
+ }
+ }
+
+ private static string MethodFromType(string prefix, ShaderUtil.ShaderPropertyType propertyType)
+ {
+ switch (propertyType)
+ {
+ case ShaderUtil.ShaderPropertyType.Color: return prefix + "Color";
+ case ShaderUtil.ShaderPropertyType.Float: return prefix + "Float";
+#if UNITY_2021_1_OR_NEWER
+ case ShaderUtil.ShaderPropertyType.Int: return prefix + "Int";
+#endif
+ case ShaderUtil.ShaderPropertyType.Range: return prefix + "Float";
+ case ShaderUtil.ShaderPropertyType.Vector: return prefix + "Vector";
+ case ShaderUtil.ShaderPropertyType.TexEnv: return prefix + "Texture";
+ }
+
+ return prefix + "UnknownPropertyType"; // compiler error
+ }
+
+ private const string ShaderConversionScriptTemplate =
+@"using UnityEditor;
+using UnityEngine;
+using UnityGLTF;
+
+class Convert__to_GLTF
+{
+ const string shaderName = """";
+
+ [InitializeOnLoadMethod]
+ private static void Register()
+ {
+ GLTFMaterialHelper.RegisterMaterialConversionToGLTF(ConvertMaterialProperties);
+ }
+
+ private static bool ConvertMaterialProperties(Material material, Shader oldShader, Shader newShader)
+ {
+ if (oldShader.name != shaderName) return false;
+
+ // Reading old shader properties.
+
+
+ material.shader = newShader;
+
+ // Assigning new shader properties.
+ // Uncomment lines you need, and set properties from values from the section above.
+
+
+
+ // Ensure keywords are correctly set after conversion.
+ // Example:
+ // if (material.GetFloat(""_VERTEX_COLORS"") > 0.5f) material.EnableKeyword(""_VERTEX_COLORS_ON"");
+
+ ShaderGraphHelpers.ValidateMaterialKeywords(material);
+ return true;
+ }
+}
+";
+ }
+#endif
+}
+
+#endif
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/GLTFMaterialHelper.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/GLTFMaterialHelper.cs.meta
new file mode 100644
index 0000000..38df10a
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/GLTFMaterialHelper.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: ad1a4409c80a9004781468cca77d6224
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/HumanoidSetup.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/HumanoidSetup.cs
new file mode 100644
index 0000000..5219881
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/HumanoidSetup.cs
@@ -0,0 +1,102 @@
+using System;
+using System.Reflection;
+using UnityEditor;
+using UnityEngine;
+using Object = UnityEngine.Object;
+
+namespace UnityGLTF
+{
+ internal static class HumanoidSetup
+ {
+ private static MethodInfo _SetupHumanSkeleton;
+
+ internal static Avatar AddAvatarToGameObject(GameObject gameObject)
+ {
+ HumanDescription description = AvatarUtils.CreateHumanDescription(gameObject);
+ var bones = description.human;
+ SetupHumanSkeleton(gameObject, ref bones, out var skeletonBones, out var hasTranslationDoF);
+ description.human = bones;
+ description.skeleton = skeletonBones;
+ description.hasTranslationDoF = hasTranslationDoF;
+
+ Avatar avatar = AvatarBuilder.BuildHumanAvatar(gameObject, description);
+ avatar.name = "Avatar";
+
+ if (!avatar.isValid)
+ {
+ Object.DestroyImmediate(avatar);
+ return null;
+ }
+
+ var animator = gameObject.GetComponent();
+ if (animator) animator.avatar = avatar;
+ return avatar;
+ }
+
+ private static void SetupHumanSkeleton(
+ GameObject modelPrefab,
+ ref HumanBone[] humanBoneMappingArray,
+ out SkeletonBone[] skeletonBones,
+ out bool hasTranslationDoF)
+ {
+ _SetupHumanSkeleton = typeof(AvatarSetupTool).GetMethod(nameof(SetupHumanSkeleton), (BindingFlags)(-1));
+ skeletonBones = Array.Empty();
+ hasTranslationDoF = false;
+
+ _SetupHumanSkeleton?.Invoke(null, new object[]
+ {
+ modelPrefab,
+ humanBoneMappingArray,
+ skeletonBones,
+ hasTranslationDoF
+ });
+ }
+
+
+ // AvatarSetupTools
+ // AvatarBuilder.BuildHumanAvatar
+ // AvatarConfigurationStage.CreateStage
+ // AssetImporterTabbedEditor
+ // ModelImporterRigEditor
+
+#if TESTING
+ [MenuItem("Tools/Copy Hierarchy Array")]
+ static void _Copy(MenuCommand command)
+ {
+ var gameObject = Selection.activeGameObject;
+ var sb = new System.Text.StringBuilder();
+
+ void Traverse(Transform tr)
+ {
+ sb.AppendLine(tr.name);
+ foreach (Transform child in tr)
+ {
+ Traverse(child);
+ }
+ }
+
+ Traverse(gameObject.transform);
+ EditorGUIUtility.systemCopyBuffer = sb.ToString();
+ }
+
+ [MenuItem("Tools/Setup Humanoid")]
+ static void _Do(MenuCommand command)
+ {
+ var gameObject = Selection.activeGameObject;
+ // SetupHumanSkeleton(go, ref humanBoneMappingArray, out var skeletonBones, out var hasTranslationDoF);
+ AddAvatarToGameObject(gameObject);
+ }
+
+ [MenuItem("Tools/Open Avatar Editor")]
+ static void _OpenEditor(MenuCommand command)
+ {
+ var gameObject = Selection.activeGameObject;
+ var avatar = gameObject.GetComponent().avatar;
+ var e = (AvatarEditor) Editor.CreateEditor(avatar, typeof(AvatarEditor));
+ e.m_CameFromImportSettings = true;
+ Selection.activeObject = e;
+ e.SwitchToEditMode();
+ }
+#endif
+ }
+}
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/HumanoidSetup.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/HumanoidSetup.cs.meta
new file mode 100644
index 0000000..e97453b
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/HumanoidSetup.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 977986ddaa6e7594c81ccb48155a39a1
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGLTF.Internal.asmref b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGLTF.Internal.asmref
new file mode 100644
index 0000000..34419fe
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGLTF.Internal.asmref
@@ -0,0 +1,3 @@
+{
+ "reference": "GUID:343deaaf83e0cee4ca978e7df0b80d21"
+}
\ No newline at end of file
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGLTF.Internal.asmref.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGLTF.Internal.asmref.meta
new file mode 100644
index 0000000..c52f022
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGLTF.Internal.asmref.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 9c9262dcd4069cd4aafbfe7eabf0bf41
+AssemblyDefinitionReferenceImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGLTFTabbedEditor.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGLTFTabbedEditor.cs
new file mode 100644
index 0000000..29548ec
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGLTFTabbedEditor.cs
@@ -0,0 +1,49 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Runtime.CompilerServices;
+using UnityEditor;
+using UnityEditor.AssetImporters;
+using UnityEngine;
+
+[assembly: InternalsVisibleTo("UnityGLTFEditor")]
+
+namespace UnityGLTF
+{
+ internal class UnityGLTFTabbedEditor : AssetImporterTabbedEditor
+ {
+ private readonly List _tabs = new List();
+
+ protected void AddTab(GltfAssetImporterTab tab)
+ {
+ if (!_tabs.Contains(tab)) _tabs.Add(tab);
+ tabs = _tabs.Select(x => (BaseAssetImporterTabUI) x).ToArray();
+ m_TabNames = _tabs.Select(t => t.Label).ToArray();
+ }
+
+ public GltfAssetImporterTab GetTab(int index)
+ {
+ if (_tabs == null || _tabs.Count < 1) return null;
+ if (index < 0) index = 0;
+ if (index >= _tabs.Count) index = _tabs.Count - 1;
+ return _tabs[index];
+ }
+
+ public override void OnEnable() => base.OnEnable();
+ }
+
+ internal class GltfAssetImporterTab : BaseAssetImporterTabUI
+ {
+ internal readonly string Label;
+ private readonly Action _tabGui;
+
+ public GltfAssetImporterTab(AssetImporterEditor panelContainer, string label, Action tabGui) : base(panelContainer)
+ {
+ this.Label = label;
+ this._tabGui = tabGui;
+ }
+
+ internal override void OnEnable() { }
+ public override void OnInspectorGUI() => _tabGui?.Invoke();
+ }
+}
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGLTFTabbedEditor.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGLTFTabbedEditor.cs.meta
new file mode 100644
index 0000000..3e2d81d
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGLTFTabbedEditor.cs.meta
@@ -0,0 +1,3 @@
+fileFormatVersion: 2
+guid: 198f536c3cf84dfe9d5617d32d40d7b0
+timeCreated: 1678788492
\ No newline at end of file
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGltfShaderUpgradeMeta.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGltfShaderUpgradeMeta.cs
new file mode 100644
index 0000000..6b4d46c
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGltfShaderUpgradeMeta.cs
@@ -0,0 +1,25 @@
+using UnityEngine;
+
+namespace UnityGLTF
+{
+ public interface IUnityGltfShaderUpgradeMeta
+ {
+ Shader SourceShader { get; }
+ bool IsUnlit { get; }
+ bool IsTransparent { get; }
+ bool IsDoublesided { get; }
+ }
+
+ public class UnityGltfShaderUpgradeMeta : ScriptableObject
+ {
+ public Shader sourceShader;
+ public bool isTransparent = false;
+ public bool isDoublesided = false;
+
+ internal string GenerateNameString()
+ {
+ var isUnlit = sourceShader && sourceShader.name.Contains("Unlit");
+ return (isTransparent ? "_tr" : "") + (isDoublesided ? "_ds" : "") + (isUnlit ? "_unlit" : "");
+ }
+ }
+}
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGltfShaderUpgradeMeta.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGltfShaderUpgradeMeta.cs.meta
new file mode 100644
index 0000000..d986ced
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/Internal/UnityGltfShaderUpgradeMeta.cs.meta
@@ -0,0 +1,3 @@
+fileFormatVersion: 2
+guid: 26fa35d7d798408bb796a50daa5a8a6f
+timeCreated: 1677690411
\ No newline at end of file
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/InternalUI.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/InternalUI.meta
new file mode 100644
index 0000000..6509002
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/InternalUI.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: fa6ac3fcfd75d5c469e07cedac8f2f57
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/PbrShaderGUI.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/PbrShaderGUI.cs
new file mode 100644
index 0000000..117109f
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/PbrShaderGUI.cs
@@ -0,0 +1,278 @@
+// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt)
+
+using System;
+using UnityEngine;
+
+namespace UnityEditor
+{
+ internal class PbrShaderGUI : ShaderGUI
+ {
+ private enum WorkflowMode
+ {
+ SpecularGlossiness,
+ MetallicRoughness,
+ Unlit
+ }
+
+ public enum BlendMode
+ {
+ Opaque,
+ Mask,
+ Blend
+ }
+
+ private static class Styles
+ {
+ public static GUIContent albedoText = new GUIContent("Base Color", "Albedo (RGB) and Transparency (A)");
+ public static GUIContent vertexColorText = new GUIContent("Apply Vertex Colors", "Process vertex colors");
+ public static GUIContent alphaCutoffText = new GUIContent("Alpha Cutoff", "Threshold for alpha cutoff");
+ public static GUIContent specularMapText = new GUIContent("Spec Gloss", "Specular (RGB) and Glossiness (A)");
+ public static GUIContent metallicMapText = new GUIContent("Metal Rough", "Metallic (B) and Roughness (G)");
+ public static GUIContent metallicText = new GUIContent("Metallic", "Metallic value");
+ public static GUIContent metallicScaleText = new GUIContent("Metallic", "Metallic scale factor");
+ public static GUIContent roughnessText = new GUIContent("Roughness", "Roughness value");
+
+ public static GUIContent roughnessScaleText = new GUIContent("Roughness", "Roughness scale factor");
+ public static GUIContent glossinessText = new GUIContent("Glossiness", "Glossiness value");
+ public static GUIContent glossinessScaleText = new GUIContent("Glossiness", "Glossiness scale factor");
+ public static GUIContent normalMapText = new GUIContent("Normal Map", "Normal Map");
+ public static GUIContent occlusionText = new GUIContent("Occlusion", "Occlusion (R)");
+ public static GUIContent emissionText = new GUIContent("Emissive", "Emissive (RGB)");
+
+ public static string primaryMapsText = "Main Maps";
+ public static string renderingMode = "Rendering Mode";
+ public static GUIContent emissiveWarning = new GUIContent("Emissive value is animated but the material has not been configured to support emissive. Please make sure the material itself has some amount of emissive.");
+ public static readonly string[] blendNames = Enum.GetNames(typeof(BlendMode));
+ }
+
+ MaterialProperty blendMode = null;
+ MaterialProperty albedoMap = null;
+ MaterialProperty albedoColor = null;
+ MaterialProperty vertexColors = null;
+ MaterialProperty alphaCutoff = null;
+ MaterialProperty specularMap = null;
+ MaterialProperty specularColor = null;
+ MaterialProperty metallicMap = null;
+ MaterialProperty metallic = null;
+ MaterialProperty smoothness = null;
+ MaterialProperty bumpScale = null;
+ MaterialProperty bumpMap = null;
+ MaterialProperty occlusionStrength = null;
+ MaterialProperty occlusionMap = null;
+ MaterialProperty emissionColor = null;
+ MaterialProperty emissionMap = null;
+
+ MaterialEditor m_MaterialEditor;
+ WorkflowMode m_WorkflowMode = WorkflowMode.MetallicRoughness;
+
+ bool m_FirstTimeApply = true;
+
+ public void FindProperties(MaterialProperty[] props)
+ {
+ blendMode = FindProperty("_Mode", props);
+ albedoMap = FindProperty("_MainTex", props);
+ albedoColor = FindProperty("_Color", props);
+ vertexColors = FindProperty("_VertexColors", props);
+ alphaCutoff = FindProperty("_Cutoff", props);
+ specularMap = FindProperty("_SpecGlossMap", props, false);
+ specularColor = FindProperty("_SpecColor", props, false);
+ metallicMap = FindProperty("_MetallicGlossMap", props, false);
+ metallic = FindProperty("_Metallic", props, false);
+ if (specularMap != null && specularColor != null)
+ m_WorkflowMode = WorkflowMode.SpecularGlossiness;
+ else if (metallicMap != null && metallic != null)
+ m_WorkflowMode = WorkflowMode.MetallicRoughness;
+ else
+ m_WorkflowMode = WorkflowMode.Unlit;
+ smoothness = FindProperty("_Glossiness", props);
+ bumpScale = FindProperty("_BumpScale", props);
+ bumpMap = FindProperty("_BumpMap", props);
+ occlusionStrength = FindProperty("_OcclusionStrength", props);
+ occlusionMap = FindProperty("_OcclusionMap", props);
+ emissionColor = FindProperty("_EmissionColor", props);
+ emissionMap = FindProperty("_EmissionMap", props);
+ }
+
+ public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] props)
+ {
+ FindProperties(props); // MaterialProperties can be animated so we do not cache them but fetch them every event to ensure animated values are updated correctly
+ m_MaterialEditor = materialEditor;
+ Material material = materialEditor.target as Material;
+
+ // Make sure that needed setup (ie keywords/renderqueue) are set up if we're switching some existing
+ // material to a standard shader.
+ // Do this before any GUI code has been issued to prevent layout issues in subsequent GUILayout statements (case 780071)
+ if (m_FirstTimeApply)
+ {
+ MaterialChanged(material, m_WorkflowMode);
+ m_FirstTimeApply = false;
+ }
+
+ ShaderPropertiesGUI(material);
+ }
+
+ public void ShaderPropertiesGUI(Material material)
+ {
+ // Use default labelWidth
+ EditorGUIUtility.labelWidth = 0f;
+
+ // Detect any changes to the material
+ EditorGUI.BeginChangeCheck();
+ {
+ BlendModePopup();
+
+ // Primary properties
+ GUILayout.Label(Styles.primaryMapsText, EditorStyles.boldLabel);
+ DoAlbedoArea(material);
+ DoSpecularMetallicArea();
+ m_MaterialEditor.TexturePropertySingleLine(Styles.normalMapText, bumpMap, bumpMap.textureValue != null ? bumpScale : null);
+ m_MaterialEditor.TexturePropertySingleLine(Styles.occlusionText, occlusionMap, occlusionMap.textureValue != null ? occlusionStrength : null);
+ DoEmissionArea(material);
+
+ EditorGUILayout.Space();
+ }
+ if (EditorGUI.EndChangeCheck())
+ {
+ foreach (var obj in blendMode.targets)
+ MaterialChanged((Material)obj, m_WorkflowMode);
+ }
+ }
+
+ internal void DetermineWorkflow(MaterialProperty[] props)
+ {
+ if (FindProperty("_SpecGlossMap", props, false) != null && FindProperty("_SpecColor", props, false) != null)
+ m_WorkflowMode = WorkflowMode.SpecularGlossiness;
+ else if (FindProperty("_MetallicGlossMap", props, false) != null && FindProperty("_Metallic", props, false) != null)
+ m_WorkflowMode = WorkflowMode.MetallicRoughness;
+ else
+ m_WorkflowMode = WorkflowMode.Unlit;
+ }
+
+ void BlendModePopup()
+ {
+ EditorGUI.showMixedValue = blendMode.hasMixedValue;
+ var mode = (BlendMode)blendMode.floatValue;
+
+ EditorGUI.BeginChangeCheck();
+ mode = (BlendMode)EditorGUILayout.Popup(Styles.renderingMode, (int)mode, Styles.blendNames);
+ if (EditorGUI.EndChangeCheck())
+ {
+ m_MaterialEditor.RegisterPropertyChangeUndo("Rendering Mode");
+ blendMode.floatValue = (float)mode;
+ }
+
+ EditorGUI.showMixedValue = false;
+ }
+
+ void DoAlbedoArea(Material material)
+ {
+ m_MaterialEditor.TexturePropertySingleLine(Styles.albedoText, albedoMap, albedoColor);
+ m_MaterialEditor.ShaderProperty(vertexColors, Styles.vertexColorText, MaterialEditor.kMiniTextureFieldLabelIndentLevel + 1);
+
+ if (((BlendMode)material.GetFloat("_Mode") == BlendMode.Mask))
+ {
+ m_MaterialEditor.ShaderProperty(alphaCutoff, Styles.alphaCutoffText.text, MaterialEditor.kMiniTextureFieldLabelIndentLevel + 1);
+ }
+ }
+
+ void DoEmissionArea(Material material)
+ {
+ bool hadEmissionTexture = emissionMap.textureValue != null;
+
+ // Texture and HDR color controls
+ m_MaterialEditor.TexturePropertySingleLine(Styles.emissionText, emissionMap, emissionColor);
+
+ // If texture was assigned and color was black set color to white
+ float brightness = emissionColor.colorValue.maxColorComponent;
+ if (emissionMap.textureValue != null && !hadEmissionTexture && brightness <= 0f)
+ emissionColor.colorValue = Color.white;
+ }
+
+ void DoSpecularMetallicArea()
+ {
+ bool hasGlossMap = false;
+ if (m_WorkflowMode == WorkflowMode.SpecularGlossiness)
+ {
+ hasGlossMap = specularMap.textureValue != null;
+ m_MaterialEditor.TexturePropertySingleLine(Styles.specularMapText, specularMap, hasGlossMap ? null : specularColor);
+ m_MaterialEditor.ShaderProperty(smoothness, hasGlossMap ? Styles.glossinessScaleText : Styles.glossinessText, 2);
+ }
+ else if (m_WorkflowMode == WorkflowMode.MetallicRoughness)
+ {
+ hasGlossMap = metallicMap.textureValue != null;
+ m_MaterialEditor.TexturePropertySingleLine(Styles.metallicMapText, metallicMap);
+ m_MaterialEditor.ShaderProperty(metallic, hasGlossMap ? Styles.metallicScaleText : Styles.metallicText, 2);
+ m_MaterialEditor.ShaderProperty(smoothness, hasGlossMap ? Styles.roughnessScaleText : Styles.roughnessText, 2);
+ }
+ }
+
+ public static void SetupMaterialWithBlendMode(Material material, BlendMode blendMode, float alphaCutoff)
+ {
+ switch (blendMode)
+ {
+ case BlendMode.Opaque:
+ material.SetOverrideTag("RenderType", "Opaque");
+ material.SetInt("_SrcBlend", (int)UnityEngine.Rendering.BlendMode.One);
+ material.SetInt("_DstBlend", (int)UnityEngine.Rendering.BlendMode.Zero);
+ material.SetInt("_ZWrite", 1);
+ material.DisableKeyword("_ALPHATEST_ON");
+ material.DisableKeyword("_ALPHABLEND_ON");
+ material.DisableKeyword("_ALPHAPREMULTIPLY_ON");
+ material.renderQueue = (int)UnityEngine.Rendering.RenderQueue.Geometry;
+ break;
+ case BlendMode.Mask:
+ material.SetOverrideTag("RenderType", "TransparentCutout");
+ material.SetInt("_SrcBlend", (int)UnityEngine.Rendering.BlendMode.One);
+ material.SetInt("_DstBlend", (int)UnityEngine.Rendering.BlendMode.Zero);
+ material.SetInt("_ZWrite", 1);
+ material.EnableKeyword("_ALPHATEST_ON");
+ material.DisableKeyword("_ALPHABLEND_ON");
+ material.DisableKeyword("_ALPHAPREMULTIPLY_ON");
+ material.renderQueue = (int)UnityEngine.Rendering.RenderQueue.AlphaTest;
+ material.SetFloat("_Cutoff", alphaCutoff);
+ break;
+ case BlendMode.Blend:
+ material.SetOverrideTag("RenderType", "Transparent");
+ material.SetInt("_SrcBlend", (int)UnityEngine.Rendering.BlendMode.SrcAlpha);
+ material.SetInt("_DstBlend", (int)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
+ material.SetInt("_ZWrite", 0);
+ material.DisableKeyword("_ALPHATEST_ON");
+ material.EnableKeyword("_ALPHABLEND_ON");
+ material.DisableKeyword("_ALPHAPREMULTIPLY_ON");
+ material.renderQueue = (int)UnityEngine.Rendering.RenderQueue.Transparent;
+ break;
+ }
+
+ material.SetFloat("_Mode", (float)blendMode);
+ }
+
+ static void SetMaterialKeywords(Material material, WorkflowMode workflowMode)
+ {
+ // Note: keywords must be based on Material value not on MaterialProperty due to multi-edit & material animation
+ // (MaterialProperty value might come from renderer material property block)
+ SetKeyword(material, "_NORMALMAP", material.GetTexture("_BumpMap"));
+ if (workflowMode == WorkflowMode.SpecularGlossiness)
+ SetKeyword(material, "_SPECGLOSSMAP", material.GetTexture("_SpecGlossMap"));
+ else if (workflowMode == WorkflowMode.MetallicRoughness)
+ SetKeyword(material, "_METALLICGLOSSMAP", material.GetTexture("_MetallicGlossMap"));
+
+ bool shouldEmissionBeEnabled = material.GetColor("_EmissionColor") != Color.black;
+ SetKeyword(material, "_EMISSION", shouldEmissionBeEnabled);
+ }
+
+ static void MaterialChanged(Material material, WorkflowMode workflowMode)
+ {
+ SetupMaterialWithBlendMode(material, (BlendMode)material.GetFloat("_Mode"), material.GetFloat("_Cutoff"));
+
+ SetMaterialKeywords(material, workflowMode);
+ }
+
+ static void SetKeyword(Material m, string keyword, bool state)
+ {
+ if (state)
+ m.EnableKeyword(keyword);
+ else
+ m.DisableKeyword(keyword);
+ }
+ }
+} // namespace UnityEditor
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/PbrShaderGUI.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/PbrShaderGUI.cs.meta
new file mode 100644
index 0000000..33c4d9a
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/PbrShaderGUI.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: bc50aae8534b8c442a9e309b546db682
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph.meta
new file mode 100644
index 0000000..337c70c
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 4f9d8791ed9e9674d871b47bf1c186ea
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph.meta
new file mode 100644
index 0000000..1bf69ad
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 8f708e30d7503fc42998ad4dc358d3d5
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/PBRGraphGUI.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/PBRGraphGUI.cs
new file mode 100644
index 0000000..b77650e
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/PBRGraphGUI.cs
@@ -0,0 +1,496 @@
+#if !NO_INTERNALS_ACCESS
+#if UNITY_2021_3_OR_NEWER
+#define HAVE_BUILTIN_SHADERGRAPH
+#define HAVE_CATEGORIES
+#endif
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Reflection;
+using UnityEditor;
+#if HAVE_BUILTIN_SHADERGRAPH
+using UnityEditor.Rendering;
+using UnityEditor.Rendering.BuiltIn.ShaderGraph;
+#endif
+using UnityEngine;
+using UnityEngine.Rendering;
+
+namespace UnityGLTF
+{
+ public class PBRGraphGUI :
+#if HAVE_BUILTIN_SHADERGRAPH
+ BuiltInBaseShaderGUI
+#else
+ ShaderGUI
+#endif
+ {
+#if UNITY_2021_1_OR_NEWER
+ public override void ValidateMaterial(Material material)
+ {
+ base.ValidateMaterial(material);
+ GLTFMaterialHelper.ValidateMaterialKeywords(material);
+ }
+#endif
+
+ protected MaterialEditor materialEditor;
+ protected MaterialProperty[] properties;
+ private MaterialInfo currentMaterialInfo;
+
+#if HAVE_CATEGORIES
+ private readonly MaterialHeaderScopeList m_MaterialScopeList = new MaterialHeaderScopeList(uint.MaxValue & ~(uint)Expandable.Advanced);
+ private const int ExpandableMeshProperties = 1 << 8;
+ private static readonly GUIContent MeshProperties = new GUIContent("Mesh Properties");
+
+ public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
+ {
+ this.materialEditor = materialEditor;
+ this.properties = properties;
+
+ Material targetMat = materialEditor.target as Material;
+ if (!targetMat || !targetMat.shader) return;
+
+ if (m_FirstTimeApply)
+ {
+ OnOpenGUI(targetMat, materialEditor, properties);
+ m_FirstTimeApply = false;
+ }
+
+ // need to set these via reflection...
+ // m_MaterialEditor = materialEditor;
+ // m_Properties = properties;
+ if (m_MaterialEditor == null) m_MaterialEditor = typeof(BuiltInBaseShaderGUI).GetField(nameof(m_MaterialEditor), BindingFlags.Instance | BindingFlags.NonPublic);
+ if (m_Properties == null) m_Properties = typeof(BuiltInBaseShaderGUI).GetField(nameof(m_Properties), BindingFlags.Instance | BindingFlags.NonPublic);
+ m_MaterialEditor.SetValue(this, materialEditor);
+ m_Properties.SetValue(this, properties);
+
+ var fullPath = System.IO.Path.GetFullPath(AssetDatabase.GetAssetPath(targetMat));
+ var isMutable = !fullPath.Contains("Library/PackageCache") && !fullPath.Contains("Library\\PackageCache");
+ if (targetMat && targetMat.shader.name.StartsWith("Hidden/UnityGLTF"))
+ {
+ if (isMutable)
+ {
+ DrawFixMeBox("This is a legacy shader. Please click \"Fix\" to upgrade to PBRGraph/UnlitGraph.", MessageType.Warning, () =>
+ {
+ var isUnlit = targetMat.shader.name.Contains("Unlit");
+ var newShaderGuid = isUnlit ? "59541e6caf586ca4f96ccf48a4813a51" : "478ce3626be7a5f4ea58d6b13f05a2e4";
+ var newShader = AssetDatabase.LoadAssetAtPath(AssetDatabase.GUIDToAssetPath(newShaderGuid));
+ Undo.RegisterCompleteObjectUndo(targetMat, "Convert to UnityGltf shader");
+ GLTFMaterialHelper.ConvertMaterialToGLTF(targetMat, targetMat.shader, newShader);
+ });
+ }
+ else
+ {
+ DrawFixMeBox("This is a legacy shader. Upgrade to PBRGraph/UnlitGraph for more options.", MessageType.Warning, null);
+ }
+ }
+
+ m_MaterialScopeList.DrawHeaders(materialEditor, targetMat);
+ }
+
+ private FieldInfo m_MaterialEditor;
+ private FieldInfo m_Properties;
+
+ public override void OnOpenGUI(Material material, MaterialEditor materialEditor, MaterialProperty[] properties)
+ {
+ m_MaterialScopeList.RegisterHeaderScope(Styles.SurfaceOptions, (uint)Expandable.SurfaceOptions, DrawSurfaceOptions);
+ m_MaterialScopeList.RegisterHeaderScope(MeshProperties, (uint)ExpandableMeshProperties, DrawGameObjectInfo);
+ m_MaterialScopeList.RegisterHeaderScope(Styles.SurfaceInputs, (uint)Expandable.SurfaceInputs, DrawSurfaceInputs);
+ m_MaterialScopeList.RegisterHeaderScope(Styles.AdvancedLabel, (uint)Expandable.Advanced, DrawAdvancedOptions);
+ }
+#else
+ public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
+ {
+ this.materialEditor = materialEditor;
+ this.properties = properties;
+
+ Material targetMat = materialEditor.target as Material;
+
+ DrawGameObjectInfo(targetMat);
+#if !UNITY_2021_1_OR_NEWER
+ DrawSurfaceOptions(targetMat);
+#endif
+ _DrawSurfaceInputs(targetMat);
+ }
+#endif
+
+ private struct MaterialInfo
+ {
+ public bool hasColor;
+ public bool hasUV0;
+ public bool hasUV1;
+ public int occlusionTextureTexCoord;
+ public int baseColorTextureTexCoord;
+ }
+
+ private static bool HasAnyTextureAssigned(Material targetMaterial)
+ {
+ var s = targetMaterial.shader;
+ var propertyCount = ShaderUtil.GetPropertyCount(s);
+ for (var i = 0; i < propertyCount; i++)
+ {
+ if (ShaderUtil.GetPropertyType(s, i) != ShaderUtil.ShaderPropertyType.TexEnv) continue;
+ if (ShaderUtil.IsShaderPropertyHidden(s, i)) continue;
+ var tex = targetMaterial.GetTexture(ShaderUtil.GetPropertyName(s, i));
+ if (tex) return true;
+ }
+ return false;
+ }
+
+#if !UNITY_2021_1_OR_NEWER
+ private static readonly Dictionary ShaderNameToGuid = new Dictionary()
+ {
+ { "UnityGLTF/PBRGraph", "478ce3626be7a5f4ea58d6b13f05a2e4" },
+ { "UnityGLTF/PBRGraph-Transparent", "0a931320a74ca574b91d2d7d4557dcf1" },
+ { "UnityGLTF/PBRGraph-Transparent-Double", "54352a53405971b41a6587615f947085" },
+ { "UnityGLTF/PBRGraph-Double", "8bc739b14fe811644abb82057b363ba8" },
+
+ { "UnityGLTF/UnlitGraph", "59541e6caf586ca4f96ccf48a4813a51" },
+ { "UnityGLTF/UnlitGraph-Transparent", "83f2caca07949794fb997734c4b0520f" },
+ { "UnityGLTF/UnlitGraph-Transparent-Double", "8a8841b4fb2f63644896f4e2b36bc06d" },
+ { "UnityGLTF/UnlitGraph-Double", "33ee70a7f505ddb4e80d235c3d70766d" },
+ };
+
+ private void DrawSurfaceOptions(Material targetMaterial)
+ {
+ EditorGUILayout.Space();
+
+ var shaderName = targetMaterial.shader.name.Replace("Hidden/", "");
+ var isTransparent = shaderName.Contains("-Transparent");
+ var isDoubleSided = shaderName.Contains("-Double");
+ var isCutout = targetMaterial.GetFloat("alphaCutoff") >= 0;
+ var indexOfDash = shaderName.IndexOf("-", StringComparison.Ordinal);
+ var baseShaderName = indexOfDash < 0 ? shaderName : shaderName.Substring(0, indexOfDash);
+ // EditorGUILayout.LabelField("Shader Name", baseShaderName);
+
+ void SetShader()
+ {
+ var newName = baseShaderName + (isTransparent ? "-Transparent" : "") + (isDoubleSided ? "-Double" : "");
+ Undo.RegisterCompleteObjectUndo(targetMaterial, "Set Material Options");
+ targetMaterial.shader = AssetDatabase.LoadAssetAtPath(AssetDatabase.GUIDToAssetPath(ShaderNameToGuid[newName]));
+ var currentCutoff = targetMaterial.GetFloat("alphaCutoff");
+ if (!isCutout && currentCutoff == 0) currentCutoff = -0.0001f; // Hack to ensure we can actually switch states here
+ targetMaterial.SetFloat("alphaCutoff", Mathf.Abs(currentCutoff) * (isCutout ? 1 : -1));
+ }
+
+ var newT = EditorGUILayout.Toggle("Transparent", isTransparent);
+ if (newT != isTransparent)
+ {
+ isTransparent = newT;
+ SetShader();
+ }
+ var newD = EditorGUILayout.Toggle("Double Sided", isDoubleSided);
+ if (newD != isDoubleSided)
+ {
+ isDoubleSided = newD;
+ SetShader();
+ }
+ var newA = EditorGUILayout.Toggle("Cutout", isCutout);
+ if (newA != isCutout)
+ {
+ isCutout = newA;
+ SetShader();
+ }
+
+ EditorGUILayout.Space();
+ }
+#endif
+
+ private void DrawGameObjectInfo(Material targetMaterial)
+ {
+ var singleSelection = Selection.objects != null && Selection.objects.Length < 2;
+
+ // Strict Mode
+ // - texture transforms only for baseColorTexture, is used for all others as well
+ // - occlusion MUST use UV2 if present
+ var renderer = ShaderGraphHelpers.GetRendererForMaterialEditor(materialEditor);
+ var haveDrawnSomething = false;
+
+ if (renderer && !singleSelection)
+ {
+ EditorGUI.BeginDisabledGroup(true);
+ EditorGUI.showMixedValue = true;
+ EditorGUILayout.ObjectField("Target Mesh", null, typeof(Mesh), true);
+ EditorGUI.showMixedValue = false;
+ EditorGUI.EndDisabledGroup();
+ EditorGUILayout.HelpBox("Multiple objects selected. Can't show mesh properties.", MessageType.Info);
+ haveDrawnSomething = true;
+ }
+
+ currentMaterialInfo.hasColor = true;
+ currentMaterialInfo.hasUV0 = true;
+ currentMaterialInfo.hasUV1 = true;
+ currentMaterialInfo.occlusionTextureTexCoord = targetMaterial.HasProperty("occlusionTextureTexCoord") ? Mathf.RoundToInt(targetMaterial.GetFloat("occlusionTextureTexCoord")) : 0;
+ currentMaterialInfo.baseColorTextureTexCoord = targetMaterial.HasProperty("baseColorTextureTexCoord") ? Mathf.RoundToInt(targetMaterial.GetFloat("baseColorTextureTexCoord")) : 0;
+
+ if (renderer && singleSelection)
+ {
+ var mesh = default(Mesh);
+ if (renderer is SkinnedMeshRenderer smr)
+ mesh = smr.sharedMesh;
+ else if (renderer is MeshRenderer mr && mr.GetComponent())
+ mesh = mr.GetComponent()?.sharedMesh;
+
+ if (mesh)
+ {
+ currentMaterialInfo.hasColor = mesh.HasVertexAttribute(VertexAttribute.Color);
+ currentMaterialInfo.hasUV0 = mesh.HasVertexAttribute(VertexAttribute.TexCoord0);
+ currentMaterialInfo.hasUV1 = mesh.HasVertexAttribute(VertexAttribute.TexCoord1);
+
+ EditorGUI.BeginDisabledGroup(true);
+ EditorGUILayout.ObjectField("Target Mesh", mesh, typeof(Mesh), true);
+ EditorGUILayout.Toggle("Has Vertex Colors", currentMaterialInfo.hasColor);
+ EditorGUI.EndDisabledGroup();
+
+ if (currentMaterialInfo.hasColor != targetMaterial.IsKeywordEnabled("_VERTEX_COLORS_ON"))
+ {
+ EditorGUI.indentLevel++;
+ var msg = "";
+ var msgType = MessageType.Info;
+ if (currentMaterialInfo.hasColor)
+ {
+ msg = "Mesh has vertex colors but \"Enable Vertex Colors\" is off. Exported glTF files will look different since vertex color is stored per-mesh, not per-material.";
+ msgType = MessageType.Warning;
+ }
+ // else
+ // {
+ // // doesn't really make sense to encourage turning vertex colors OFF - export will have them anyways.
+ // EditorGUILayout.HelpBox("Mesh has no vertex colors but \"Enable Vertex Colors\" is on.", MessageType.Info);
+ // }
+
+ if (!string.IsNullOrEmpty(msg))
+ {
+ DrawFixMeBox(msg, msgType, () =>
+ {
+ if (currentMaterialInfo.hasColor)
+ {
+ targetMaterial.EnableKeyword("_VERTEX_COLORS_ON");
+ targetMaterial.SetFloat("_VERTEX_COLORS", 1);
+ }
+ else
+ {
+ targetMaterial.DisableKeyword("_VERTEX_COLORS_ON");
+ targetMaterial.SetFloat("_VERTEX_COLORS", 0);
+ }
+ });
+ }
+ EditorGUI.indentLevel--;
+ }
+
+ EditorGUI.BeginDisabledGroup(true);
+ EditorGUILayout.Toggle("Has UV0", currentMaterialInfo.hasUV0);
+ EditorGUILayout.Toggle("Has UV1", currentMaterialInfo.hasUV1);
+ EditorGUI.EndDisabledGroup();
+
+ if (!currentMaterialInfo.hasUV0 && HasAnyTextureAssigned(targetMaterial))
+ {
+ EditorGUI.indentLevel++;
+ EditorGUILayout.HelpBox("This mesh has no UV coordinates but has textures assigned.", MessageType.Warning);
+ EditorGUI.indentLevel--;
+ }
+
+ if (currentMaterialInfo.hasUV1 && targetMaterial.HasProperty("occlusionTexture") && targetMaterial.GetTexture("occlusionTexture"))
+ {
+ EditorGUI.indentLevel++;
+ var texCoord = Mathf.RoundToInt(targetMaterial.GetFloat("occlusionTextureTexCoord"));
+ if (texCoord != 1)
+ {
+ DrawFixMeBox("This mesh has an Occlusion Texture and UV1 vertex data.\nWhen exporting to three.js, UV1 will be used independent of TexCoord setting.", MessageType.Warning, () =>
+ {
+ Undo.RegisterCompleteObjectUndo(targetMaterial, "Set occlusionTextureTexCoord to 1");
+ targetMaterial.SetFloat("occlusionTextureTexCoord", 1);
+ });
+ }
+ EditorGUI.indentLevel--;
+ }
+
+ if (!currentMaterialInfo.hasUV1)
+ {
+ if (currentMaterialInfo.baseColorTextureTexCoord > 0)
+ {
+ DrawFixMeBox("This mesh does not have UV1 vertex data but Base Texture is set to use UV1. This will lead to unexpected results.", MessageType.Warning, () =>
+ {
+ Undo.RegisterCompleteObjectUndo(targetMaterial, "Set baseColorTextureTexCoord to 0");
+ targetMaterial.SetFloat("baseColorTextureTexCoord", 0);
+ });
+ }
+ if (currentMaterialInfo.occlusionTextureTexCoord > 0)
+ {
+ DrawFixMeBox("This mesh does not have UV1 vertex data but Occlusion Texture is set to use UV1. This will lead to unexpected results.", MessageType.Warning, () =>
+ {
+ Undo.RegisterCompleteObjectUndo(targetMaterial, "Set occlusionTextureTexCoord to 0");
+ targetMaterial.SetFloat("occlusionTextureTexCoord", 0);
+ });
+ }
+ }
+
+ // check if this uses transmission
+ // TODO we need to expose some kind of interface so that other scripts (e.g. the rough refraction components)
+ // can attach to this inspector here.
+ /*
+ if (targetMaterial.IsKeywordEnabled("_VOLUME_TRANSMISSION_ON"))
+ {
+ // requires extra setup for BiRP / URP to render properly
+ if (!GraphicsSettings.currentRenderPipeline && !Camera.main.gameObject.GetComponent())
+ {
+ // warn
+ }
+ else
+ {
+ // check if assigned renderer has the rough refraction feature, offer to add it otherwise
+ Camera.main.gameObject.GetComponent()
+ }
+ }
+ */
+ }
+ haveDrawnSomething = true;
+ }
+
+ if (targetMaterial.HasProperty("_Surface") && targetMaterial.GetFloat("_Surface") == 0 &&
+ targetMaterial.renderQueue <= (int) RenderQueue.AlphaTest + 50 &&
+ !Mathf.Approximately(targetMaterial.GetColor("baseColorFactor").a, 1))
+ {
+ DrawFixMeBox("Material is opaque but baseColorFactor has an alpha value != 1. This object might render unexpectedly in some viewers that blend results (e.g. AR, Babylon, Stager).", MessageType.Warning, () =>
+ {
+ Undo.RegisterCompleteObjectUndo(materialEditor.targets, "Set baseColorFactor.a to 1");
+ foreach (var t in materialEditor.targets)
+ {
+ var mat = (Material)t;
+ var color = mat.GetColor("baseColorFactor");
+ color.a = 1;
+ mat.SetColor("baseColorFactor", color);
+ EditorUtility.SetDirty(mat);
+ }
+ });
+ haveDrawnSomething = true;
+ }
+
+ if (!renderer && !haveDrawnSomething)
+ {
+ EditorGUILayout.HelpBox("Select a Renderer to see additional info", MessageType.None);
+ }
+ }
+
+ private static void DrawFixMeBox(string msg, MessageType msgType, Action action)
+ {
+#if HAVE_BUILTIN_SHADERGRAPH && false
+ CoreEditorUtils.DrawFixMeBox(msg, msgType, action);
+#else
+ EditorGUILayout.HelpBox(msg, msgType);
+ if (action != null && GUILayout.Button("Fix")) action();
+#endif
+ }
+
+#if HAVE_CATEGORIES
+ protected override void DrawSurfaceInputs(Material mat) => _DrawSurfaceInputs(mat);
+#endif
+ protected void _DrawSurfaceInputs(Material mat)
+ {
+ var targetMaterial = materialEditor.target as Material;
+ if (!targetMaterial) return;
+
+
+ materialEditor.SetDefaultGUIWidths();
+
+ EditorGUI.BeginChangeCheck();
+
+ DrawProperties(targetMaterial, properties);
+
+ if (EditorGUI.EndChangeCheck())
+ {
+ foreach (var t in materialEditor.targets)
+ {
+ if (t is Material material)
+ GLTFMaterialHelper.ValidateMaterialKeywords(material);
+ }
+ }
+ }
+
+ private static bool HasPropertyButNoTex(Material targetMaterial, string name)
+ {
+ return targetMaterial.HasProperty(name) &&
+ #if UNITY_2021_2_OR_NEWER
+ targetMaterial.HasTexture(name) &&
+ #endif
+ !targetMaterial.GetTexture(name);
+ }
+
+ private void DrawProperties(Material targetMaterial, MaterialProperty[] properties)
+ {
+ // filter properties based on keywords
+ var propertyList = properties.ToList();
+ if (!targetMaterial.IsKeywordEnabled("_TEXTURE_TRANSFORM_ON"))
+ {
+ propertyList.RemoveAll(x => x.name.EndsWith("_ST", StringComparison.Ordinal) || x.name.EndsWith("Rotation", StringComparison.Ordinal));
+ }
+ // want to remove the _ST properties since they are drawn inline already on 2021.2+
+ #if UNITY_2021_2_OR_NEWER
+ {
+ propertyList.RemoveAll(x => x.name.EndsWith("_ST", StringComparison.Ordinal));
+ }
+ #endif
+ if (!targetMaterial.IsKeywordEnabled("_VOLUME_TRANSMISSION_ON"))
+ {
+ propertyList.RemoveAll(x => x.name.StartsWith("transmission", StringComparison.Ordinal));
+ }
+ if (!targetMaterial.HasProperty("_VOLUME_ON") || !(targetMaterial.GetFloat("_VOLUME_ON") > 0.5f))
+ {
+ propertyList.RemoveAll(x => x.name.StartsWith("thickness", StringComparison.Ordinal) || x.name.StartsWith("attenuation", StringComparison.Ordinal));
+ }
+ if (!targetMaterial.IsKeywordEnabled("_IRIDESCENCE_ON"))
+ {
+ propertyList.RemoveAll(x => x.name.StartsWith("iridescence", StringComparison.Ordinal));
+ }
+ if (!targetMaterial.IsKeywordEnabled("_SPECULAR_ON"))
+ {
+ propertyList.RemoveAll(x => x.name.StartsWith("specular", StringComparison.Ordinal));
+ }
+ if (!targetMaterial.IsKeywordEnabled("_CLEARCOAT_ON"))
+ {
+ propertyList.RemoveAll(x => x.name.StartsWith("clearcoat", StringComparison.Ordinal));
+ }
+ if (HasPropertyButNoTex(targetMaterial, "occlusionTexture"))
+ {
+ propertyList.RemoveAll(x => x.name == "occlusionStrength" || (x.name.StartsWith("occlusionTexture", StringComparison.Ordinal) && x.name != "occlusionTexture"));
+ }
+ // remove UV-related properties
+ if (HasPropertyButNoTex(targetMaterial, "baseColorTexture") && HasPropertyButNoTex(targetMaterial,"metallicRoughnessTexture") && HasPropertyButNoTex(targetMaterial,"normalTexture") && HasPropertyButNoTex(targetMaterial,"emissiveTexture"))
+ {
+ propertyList.RemoveAll(x => x.name.StartsWith("baseColorTexture", StringComparison.Ordinal) && x.name != "baseColorTexture");
+ }
+ if (HasPropertyButNoTex(targetMaterial,"normalTexture"))
+ {
+ propertyList.RemoveAll(x => x.name == "normalScale");
+ }
+ if (!currentMaterialInfo.hasUV0 && !currentMaterialInfo.hasUV1)
+ {
+ // hide all texture properties if no UVs
+ propertyList.RemoveAll(x => x.name.Contains("texture"));
+ }
+ if (!currentMaterialInfo.hasUV1 && currentMaterialInfo.occlusionTextureTexCoord == 0 && currentMaterialInfo.baseColorTextureTexCoord == 0)
+ {
+ propertyList.RemoveAll(x => x.name.EndsWith("TextureTexCoord", StringComparison.Ordinal));
+ }
+#if UNITY_2021_1_OR_NEWER
+ var isBirp = !GraphicsSettings.currentRenderPipeline;
+ if ((isBirp && !targetMaterial.IsKeywordEnabled("_BUILTIN_ALPHATEST_ON")) ||
+ (!isBirp && !targetMaterial.IsKeywordEnabled("_ALPHATEST_ON")))
+#else
+ if (targetMaterial.GetFloat("alphaCutoff") < 0)
+#endif
+ {
+ propertyList.RemoveAll(x => x.name == "alphaCutoff");
+ }
+ // TODO we probably want full manual control, all this internal access is horrible...
+ // E.g. impossible to render inline texture properties...
+ ShaderGraphHelpers.DrawShaderGraphGUI(materialEditor, propertyList);
+ }
+
+ public override void AssignNewShaderToMaterial(Material material, Shader oldShader, Shader newShader)
+ {
+ GLTFMaterialHelper.ConvertMaterialToGLTF(material, oldShader, newShader);
+ }
+ }
+}
+
+#endif
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/PBRGraphGUI.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/PBRGraphGUI.cs.meta
new file mode 100644
index 0000000..a96df2a
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/PBRGraphGUI.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 7fd38ac84daf5a14180dde4bc5949e25
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphHelpers.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphHelpers.cs
new file mode 100644
index 0000000..2c476b8
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphHelpers.cs
@@ -0,0 +1,56 @@
+#if !NO_INTERNALS_ACCESS
+#if UNITY_2021_3_OR_NEWER
+#define HAVE_CATEGORIES
+#endif
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Reflection;
+using UnityEditor;
+#if HAVE_CATEGORIES
+using UnityEditor.ShaderGraph.Drawing;
+#endif
+using UnityEngine;
+using Object = UnityEngine.Object;
+
+namespace UnityGLTF
+{
+ public static class ShaderGraphHelpers
+ {
+ public static void DrawShaderGraphGUI(MaterialEditor materialEditor, IEnumerable properties)
+ {
+#if HAVE_CATEGORIES
+ ShaderGraphPropertyDrawers.DrawShaderGraphGUI(materialEditor, properties);
+#else
+ materialEditor.PropertiesDefaultGUI(properties.ToArray());
+#endif
+ }
+
+ private static Type propertyView;
+ private static PropertyInfo propertyViewer;
+ private static PropertyInfo tracker;
+
+ // matches logic in MaterialEditor.ShouldEditorBeHidden to find the right renderer this material is inspected on.
+ public static Renderer GetRendererForMaterialEditor(MaterialEditor materialEditor)
+ {
+ if (propertyViewer == null) propertyViewer = typeof(Editor).GetProperty(nameof(propertyViewer), BindingFlags.Instance | BindingFlags.NonPublic);
+ if (propertyView == null) propertyView = typeof(Editor).Assembly.GetType("UnityEditor.IPropertyView");
+ if (tracker == null) tracker = propertyView?.GetProperty("tracker", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);
+
+ var iPropertyViewer = propertyViewer?.GetValue(materialEditor) as Object;
+ if (!iPropertyViewer) return null;
+
+ var editorTracker = tracker?.GetValue(iPropertyViewer) as ActiveEditorTracker;
+ if (editorTracker == null) return null;
+
+ GameObject target = editorTracker.activeEditors[0].target as GameObject;
+ if (!target) return null;
+ Renderer c = target.GetComponent();
+ if (!c) c = target.GetComponent();
+ return c;
+ }
+ }
+}
+
+#endif
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphHelpers.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphHelpers.cs.meta
new file mode 100644
index 0000000..27c4a3a
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphHelpers.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 0a60cd145bbb31542ab7932da93de3f3
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporter.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporter.cs
new file mode 100644
index 0000000..20b8e94
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporter.cs
@@ -0,0 +1,105 @@
+#if !NO_INTERNALS_ACCESS && UNITY_2020_1_OR_NEWER
+
+using System.IO;
+using UnityEditor;
+using UnityEditor.ShaderGraph;
+using UnityEngine;
+#if UNITY_2020_2_OR_NEWER
+using UnityEditor.AssetImporters;
+#else
+using UnityEditor.Experimental.AssetImporters;
+#endif
+
+namespace UnityGLTF
+{
+ [ScriptedImporter(0, ".override-graph", -500)]
+ internal class ShaderGraphOverrideImporter : ShaderGraphImporter, IUnityGltfShaderUpgradeMeta
+ {
+ [HideInInspector]
+ public Shader sourceShader;
+
+ [HideInInspector]
+ public Shader upgradeShader;
+
+ public bool forceTransparent = true;
+ public bool forceDoublesided = false;
+ public bool hideShader = true;
+
+ public Shader SourceShader => sourceShader;
+ public bool IsTransparent => forceTransparent;
+ public bool IsDoublesided => forceDoublesided;
+ public bool IsUnlit => sourceShader.name.Contains("Unlit");
+
+ public override void OnImportAsset(AssetImportContext ctx)
+ {
+ if (!sourceShader)
+ return;
+
+#if UNITY_2021_1_OR_NEWER && false
+ // we don't need extra shaders on 2021.1+,
+ // as Shader Graph allows overriding the material properties there.
+ // but we do want to allow upgrading the materials, so we need to import something and allow upgrading through ShaderGraphUpdater
+
+ var meta = ScriptableObject.CreateInstance();
+ meta.name = "Shader Upgrade Meta";
+ meta.hideFlags = HideFlags.HideInInspector;
+ meta.sourceShader = sourceShader;
+ meta.isTransparent = forceTransparent;
+ meta.isDoublesided = forceDoublesided;
+
+ const string shaderName = "Hidden/UnityGltf/UpgradeShader";
+ var shaderText = File.ReadAllText(AssetDatabase.GetAssetPath(upgradeShader))
+ .Replace(shaderName, shaderName + meta.GenerateNameString());
+ var shader = ShaderUtil.CreateShaderAsset(ctx, shaderText, true);
+ ctx.AddObjectToAsset("MainAsset", shader);
+ ctx.AddObjectToAsset("UpgradeMeta", meta);
+ ctx.SetMainObject(shader);
+#else
+ // cache write time, we want to reset the file again afterwards
+ var lastWriteTimeUtc = File.GetLastWriteTimeUtc(ctx.assetPath);
+
+ var path = AssetDatabase.GetAssetPath(sourceShader);
+ ctx.DependsOnArtifact(AssetDatabase.GUIDFromAssetPath(path));
+ var graphData = File.ReadAllText(path);
+
+#if UNITY_2021_1_OR_NEWER
+ // disable material overrides on 2021.1+ - we want people to use the proper shader for that
+ graphData = graphData.Replace("\"m_AllowMaterialOverride\": true", "\"m_AllowMaterialOverride\": false");
+#endif
+
+ // modify:
+ // switch to transparent
+ if (forceTransparent)
+ graphData = graphData.Replace("\"m_SurfaceType\": 0", "\"m_SurfaceType\": 1");
+
+ // for 2021+
+ // if (forceDoublesided)
+ // graphData = graphData
+ // .Replace("\"m_RenderFace\": 2", "\"m_RenderFace\": 0")
+ // .Replace("\"m_RenderFace\": 1", "\"m_RenderFace\": 0");
+
+ // for 2020+
+ if (forceDoublesided && !graphData.Contains("m_TwoSided"))
+ graphData = graphData
+ .Replace("\"m_SurfaceType\": 0", "\"m_SurfaceType\": 0" + ",\n" + "\"m_TwoSided\": true")
+ .Replace("\"m_SurfaceType\": 1", "\"m_SurfaceType\": 1" + ",\n" + "\"m_TwoSided\": true");
+
+ if (hideShader)
+ graphData = graphData.Replace("\"m_Path\": \"", "\"m_Path\": \"Hidden/");
+
+ File.WriteAllText(ctx.assetPath, graphData);
+
+ // run import on the modified shader
+ base.OnImportAsset(ctx);
+
+ // clean the file on disk again
+ File.WriteAllText(ctx.assetPath, "");
+
+ // reset write time to what it was before - avoids AssetDB reload
+ File.SetLastWriteTimeUtc(ctx.assetPath, lastWriteTimeUtc);
+#endif
+ }
+ }
+}
+
+#endif
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporter.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporter.cs.meta
new file mode 100644
index 0000000..0ea1814
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporter.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: fe431e399c52971408121c6c40cde979
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporterEditor.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporterEditor.cs
new file mode 100644
index 0000000..ef9410c
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporterEditor.cs
@@ -0,0 +1,26 @@
+#if !NO_INTERNALS_ACCESS && UNITY_2020_1_OR_NEWER
+
+using UnityEditor;
+#if UNITY_2020_2_OR_NEWER
+using UnityEditor.AssetImporters;
+#else
+using UnityEditor.Experimental.AssetImporters;
+#endif
+
+namespace UnityGLTF
+{
+ [CustomEditor(typeof(ShaderGraphOverrideImporter))]
+ class ShaderGraphOverrideImporterEditor : ScriptedImporterEditor
+ {
+ public override void OnInspectorGUI()
+ {
+#if UNITY_2021_1_OR_NEWER
+ EditorGUILayout.HelpBox("Deprecated. Use material overrides on UnityGLTF/PBRGraph and UnityGLTF/UnlitGraph instead of separate shaders.", MessageType.Warning);
+#endif
+ DrawDefaultInspector();
+ ApplyRevertGUI();
+ }
+ }
+}
+
+#endif
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporterEditor.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporterEditor.cs.meta
new file mode 100644
index 0000000..8215707
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporterEditor.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 511b21f4c3344c54689aed102b11724a
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/UnityGLTF.ShaderGraph.Internal.asmref b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/UnityGLTF.ShaderGraph.Internal.asmref
new file mode 100644
index 0000000..6f5b7c2
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/UnityGLTF.ShaderGraph.Internal.asmref
@@ -0,0 +1,3 @@
+{
+ "reference": "GUID:be0903cd8e1546f498710afdc59db5eb"
+}
\ No newline at end of file
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/UnityGLTF.ShaderGraph.Internal.asmref.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/UnityGLTF.ShaderGraph.Internal.asmref.meta
new file mode 100644
index 0000000..87c0b66
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalShaderGraph/UnityGLTF.ShaderGraph.Internal.asmref.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: d60ff41bbebf9024dac1e4f0dc004a57
+AssemblyDefinitionReferenceImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP.meta
new file mode 100644
index 0000000..6cc4398
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 9f369a0c649cfa54799cb62645da047f
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP/PBRGraphUniversalGUI.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP/PBRGraphUniversalGUI.cs
new file mode 100644
index 0000000..6415719
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP/PBRGraphUniversalGUI.cs
@@ -0,0 +1,57 @@
+#if !NO_INTERNALS_ACCESS
+#if UNITY_2021_3_OR_NEWER
+#define HAVE_CATEGORIES
+#endif
+
+using System;
+using System.Reflection;
+using UnityEditor;
+using UnityEngine;
+
+namespace UnityGLTF
+{
+ // matches ShaderGraphLitGUI.cs
+ public class PBRGraphUniversalGUI : PBRGraphGUI
+ {
+#if HAVE_CATEGORIES
+ private PropertyInfo materialEditorPropertyAccessor;
+ private ShaderGraphLitGUI litGuiForwarder;
+
+ public override void ValidateMaterial(Material material)
+ {
+ if (material == null) throw new ArgumentNullException(nameof(material));
+
+ base.ValidateMaterial(material);
+
+ var automaticRenderQueue = GetAutomaticQueueControlSetting(material);
+ BaseShaderGUI.UpdateMaterialSurfaceOptions(material, automaticRenderQueue);
+ }
+
+ protected override void DrawSurfaceOptions(Material material)
+ {
+ if (material == null) throw new ArgumentNullException(nameof(material));
+
+ // Use default labelWidth
+ EditorGUIUtility.labelWidth = 0f;
+
+ if (litGuiForwarder == null) litGuiForwarder = new ShaderGraphLitGUI();
+ if (materialEditorPropertyAccessor == null) materialEditorPropertyAccessor = typeof(BaseShaderGUI).GetProperty("materialEditor", (BindingFlags) (-1));
+ if (materialEditorPropertyAccessor != null) materialEditorPropertyAccessor.SetValue(litGuiForwarder, materialEditor); // forwarder.materialEditor = materialEditor;
+
+ litGuiForwarder.FindProperties(properties);
+ litGuiForwarder.workflowMode = null;
+ litGuiForwarder.DrawSurfaceOptions(material);
+ }
+
+ protected override void DrawAdvancedOptions(Material material)
+ {
+ base.DrawAdvancedOptions(material);
+
+ materialEditor.DoubleSidedGIField();
+ materialEditor.LightmapEmissionFlagsProperty(0, enabled: true, ignoreEmissionColor: true);
+ }
+#endif
+ }
+}
+
+#endif
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP/PBRGraphUniversalGUI.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP/PBRGraphUniversalGUI.cs.meta
new file mode 100644
index 0000000..6a8f990
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP/PBRGraphUniversalGUI.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 86a2b51891c425a468a0a4d61f8b2a6a
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP/UnityGLTF.URP.Internal.asmref b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP/UnityGLTF.URP.Internal.asmref
new file mode 100644
index 0000000..583b71c
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP/UnityGLTF.URP.Internal.asmref
@@ -0,0 +1,3 @@
+{
+ "reference": "GUID:c579267770062bf448e75eb160330b7f"
+}
\ No newline at end of file
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP/UnityGLTF.URP.Internal.asmref.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP/UnityGLTF.URP.Internal.asmref.meta
new file mode 100644
index 0000000..0c6e134
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/InternalURP/UnityGLTF.URP.Internal.asmref.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: cd3b604407efbd641a4d40520de58a76
+AssemblyDefinitionReferenceImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/NoCompilationWarning.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/NoCompilationWarning.cs
new file mode 100644
index 0000000..c3cf737
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/NoCompilationWarning.cs
@@ -0,0 +1 @@
+internal class NoCompilationWarning { }
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/NoCompilationWarning.cs.meta b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/NoCompilationWarning.cs.meta
new file mode 100644
index 0000000..fa3b0de
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/NoCompilationWarning.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 4ea8663e2a74bdc4cb6f6d53769532df
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/ShaderConverters.cs b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/ShaderConverters.cs
new file mode 100644
index 0000000..7599c88
--- /dev/null
+++ b/Assets/Plugins/UnityGLTF/Editor/Scripts/ShaderGraph/ShaderConverters.cs
@@ -0,0 +1,240 @@
+using System.Linq;
+using GLTF.Schema;
+using UnityEngine;
+
+#if UNITY_EDITOR
+using UnityEditor;
+#endif
+
+namespace UnityGLTF
+{
+ public static class ShaderConverters
+ {
+ [InitializeOnLoadMethod]
+ static void InitShaderConverters()
+ {
+ GLTFMaterialHelper.RegisterMaterialConversionToGLTF(ConvertStandardAndURPLit);
+ GLTFMaterialHelper.RegisterMaterialConversionToGLTF(ConvertUnityGLTFGraphs);
+ }
+
+ private static bool ConvertUnityGLTFGraphs(Material material, Shader oldShader, Shader newShader)
+ {
+ // update legacy shaders that didn't have material overrides available
+ if (oldShader.name.StartsWith("Hidden/UnityGLTF/PBRGraph") || oldShader.name.StartsWith("Hidden/UnityGLTF/UnlitGraph"))
+ {
+ material.shader = newShader;
+
+ var meta = AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(material.shader)) as IUnityGltfShaderUpgradeMeta;
+ if (meta != null)
+ {
+ // Debug.Log("Updating shader from " + material.shader + " to " + meta.SourceShader +
+ // " (transparent: " + meta.IsTransparent + ", double sided: " + meta.IsDoublesided + ")");
+
+ var isUnlit = meta.SourceShader.name.Contains("Unlit");
+ material.shader = meta.SourceShader;
+
+ var mapper = isUnlit ? (IUniformMap) new UnlitMap(material) : new PBRGraphMap(material);
+ if (meta.IsTransparent)
+ mapper.AlphaMode = AlphaMode.BLEND;
+ if (meta.IsDoublesided)
+ mapper.DoubleSided = true;
+
+ EditorUtility.SetDirty(material);
+ }
+
+ return true;
+ }
+
+ if (oldShader.name != "UnityGLTF/UnlitGraph" && oldShader.name != "UnityGLTF/PBRGraph") return false;
+
+ material.shader = newShader;
+ return true;
+ }
+
+ private static bool ConvertStandardAndURPLit(Material material, Shader oldShader, Shader newShader)
+ {
+ // Conversion time!
+ // convert from
+ // - "Standard"
+ // - "URP/Lit"
+
+ if (oldShader.name != StandardShader && oldShader.name != URPLitShader) return false;
+
+ var isStandard = oldShader.name == StandardShader;
+ var needsEmissiveColorSpaceConversion = isStandard && QualitySettings.activeColorSpace == ColorSpace.Linear;
+ var colorProp = oldShader.name == StandardShader ? _Color : _BaseColor;
+ var colorTexProp = oldShader.name == StandardShader ? _MainTex : _BaseMap;
+
+ var color = material.GetColor(colorProp);
+ var albedo = material.GetTexture(colorTexProp);
+ var albedoOffset = material.GetTextureOffset(colorTexProp);
+ var albedoTiling = material.GetTextureScale(colorTexProp);
+
+ var metallic = material.GetFloat(_Metallic);
+ var smoothness = material.HasProperty(_Smoothness) ? material.GetFloat(_Smoothness) : material.GetFloat(_Glossiness);
+ var metallicGloss = material.GetTexture(_MetallicGlossMap);
+ var normal = material.GetTexture(_BumpMap);
+ var normalStrength = material.GetFloat(_BumpScale);
+ var occlusion = material.GetTexture(_OcclusionMap);
+ var occlusionStrength = material.GetFloat(_Strength);
+ var emission = material.GetTexture(_EmissionMap);
+ var emissionColor = material.GetColor(_EmissionColor);
+ var cutoff = material.GetFloat(_Cutoff);
+
+ var isCutoff = material.IsKeywordEnabled("_ALPHATEST_ON") || material.IsKeywordEnabled("_BUILTIN_ALPHATEST_ON");
+
+ material.shader = newShader;
+
+ material.SetColor(baseColorFactor, color);
+ material.SetTexture(baseColorTexture, albedo);
+ material.SetTextureOffset(baseColorTexture, albedoOffset);
+ material.SetTextureScale(baseColorTexture, albedoTiling);
+ if (albedoOffset != Vector2.zero || albedoTiling != Vector2.one)
+ GLTFMaterialHelper.SetKeyword(material, "_TEXTURE_TRANSFORM", true);
+
+ material.SetFloat(metallicFactor, metallic);
+ material.SetFloat(roughnessFactor, 1 - smoothness);
+ const string ConversionWarning = "The Metallic (R) Smoothness (A) texture needs to be converted to Roughness (B) Metallic (G). ";
+#if UNITY_EDITOR && UNITY_2022_1_OR_NEWER
+ var importerPath = AssetDatabase.GetAssetPath(metallicGloss);
+ var importer = AssetImporter.GetAtPath(importerPath) as TextureImporter;
+ if (importer && importer.swizzleG != TextureImporterSwizzle.OneMinusR) // can't really detect if this has been done on the texture already, this is just a heuristic...
+ {
+ if (EditorUtility.DisplayDialog("Texture Conversion",
+ ConversionWarning + "This is done by swizzling texture channels in the importer. Do you want to proceed?",
+ "OK", DialogOptOutDecisionType.ForThisSession, nameof(GLTFMaterialHelper) + "_texture_conversion"))
+ {
+ importer.swizzleR = TextureImporterSwizzle.B;
+ importer.swizzleG = TextureImporterSwizzle.OneMinusR;
+ importer.swizzleB = TextureImporterSwizzle.G;
+ Undo.RegisterImporterUndo(importerPath, "Texture Swizzles (M__G > _RM_)");
+ importer.SaveAndReimport();
+ }
+ }
+ else
+ {
+ Debug.LogWarning(ConversionWarning + "This currently needs to be done manually. Please swap channels in an external software.", material);
+ }
+#else
+ if (metallicGloss)
+ Debug.LogWarning(ConversionWarning + "This currently needs to be done manually. Please swap channels in an external software.", material);
+#endif
+ // TODO: convert metallicGloss to metallicRoughnessTexture format: Metallic (R) + Smoothness (A) → Roughness (G) + Metallic (B)
+ // TODO: when smoothness is not 0 or 1 and there's a texture, need to convert to a texture and set roughness = 1, otherwise the math doesn't match
+ // TODO: figure out where to put the newly created texture, and how to avoid re-creating it several times when multiple materials may use it.
+ material.SetTexture(metallicRoughnessTexture, metallicGloss);
+ material.SetTexture(normalTexture, normal);
+ material.SetFloat(normalScale, normalStrength);
+ material.SetTexture(occlusionTexture, occlusion);
+ material.SetFloat(occlusionStrength1, occlusionStrength);
+ material.SetTexture(emissiveTexture, emission);
+ material.SetFloat(alphaCutoff, cutoff);
+ if (isCutoff)
+ {
+ GLTFMaterialHelper.SetKeyword(material, "_ALPHATEST", true);
+ GLTFMaterialHelper.SetKeyword(material, "_BUILTIN_ALPHATEST", true);
+ material.EnableKeyword("_BUILTIN_AlphaClip");
+ }
+
+ material.SetColor(emissiveFactor, needsEmissiveColorSpaceConversion ? emissionColor.linear : emissionColor);
+
+ // set the flags on conversion, otherwise it's confusing why they're not on - can't easily replicate the magic that Unity does in their inspectors when changing emissive on/off
+ if (material.globalIlluminationFlags == MaterialGlobalIlluminationFlags.None || material.globalIlluminationFlags == MaterialGlobalIlluminationFlags.EmissiveIsBlack)
+ material.globalIlluminationFlags = MaterialGlobalIlluminationFlags.BakedEmissive;
+
+ // ensure keywords are correctly set after conversion
+ GLTFMaterialHelper.ValidateMaterialKeywords(material);
+
+ return true;
+ }
+
+ // ReSharper disable InconsistentNaming
+ private const string StandardShader = "Standard";
+ private const string URPLitShader = "Universal Render Pipeline/Lit";
+
+ // Standard and URP-Lit property names
+ private static readonly int _Color = Shader.PropertyToID("_Color");
+ private static readonly int _BaseColor = Shader.PropertyToID("_BaseColor");
+ private static readonly int _MainTex = Shader.PropertyToID("_MainTex");
+ private static readonly int _BaseMap = Shader.PropertyToID("_BaseMap");
+ private static readonly int _Metallic = Shader.PropertyToID("_Metallic");
+ private static readonly int _Glossiness = Shader.PropertyToID("_Glossiness");
+ private static readonly int _Smoothness = Shader.PropertyToID("_Smoothness");
+ private static readonly int _MetallicGlossMap = Shader.PropertyToID("_MetallicGlossMap");
+ private static readonly int _BumpMap = Shader.PropertyToID("_BumpMap");
+ private static readonly int _BumpScale = Shader.PropertyToID("_BumpScale");
+ private static readonly int _OcclusionMap = Shader.PropertyToID("_OcclusionMap");
+ private static readonly int _Strength = Shader.PropertyToID("_OcclusionStrength");
+ private static readonly int _EmissionMap = Shader.PropertyToID("_EmissionMap");
+ private static readonly int _EmissionColor = Shader.PropertyToID("_EmissionColor");
+ private static readonly int _Cutoff = Shader.PropertyToID("_Cutoff");
+
+ // glTF property names
+ private static readonly int baseColorFactor = Shader.PropertyToID("baseColorFactor");
+ private static readonly int baseColorTexture = Shader.PropertyToID("baseColorTexture");
+ private static readonly int metallicFactor = Shader.PropertyToID("metallicFactor");
+ private static readonly int roughnessFactor = Shader.PropertyToID("roughnessFactor");
+ private static readonly int metallicRoughnessTexture = Shader.PropertyToID("metallicRoughnessTexture");
+ private static readonly int normalTexture = Shader.PropertyToID("normalTexture");
+ private static readonly int normalScale = Shader.PropertyToID("normalScale");
+ private static readonly int occlusionTexture = Shader.PropertyToID("occlusionTexture");
+ private static readonly int occlusionStrength1 = Shader.PropertyToID("occlusionStrength");
+ private static readonly int emissiveTexture = Shader.PropertyToID("emissiveTexture");
+ private static readonly int emissiveFactor = Shader.PropertyToID("emissiveFactor");
+ private static readonly int alphaCutoff = Shader.PropertyToID("alphaCutoff");
+ // ReSharper restore InconsistentNaming
+
+ private static readonly string[] emissivePropNames = new[] { "emissiveFactor", "_EmissionColor" };
+
+ [MenuItem("CONTEXT/Material/UnityGLTF Material Helpers/Convert Emissive Colors > sRGB - weaker, darker")]
+ private static void ConvertToSRGB(MenuCommand command)
+ {
+ if (!(command.context is Material mat)) return;
+ Undo.RegisterCompleteObjectUndo(mat, "Convert emissive colors to sRGB");
+ foreach(var propName in emissivePropNames)
+ if (mat.HasProperty(propName)) mat.SetColor(propName, mat.GetColor(propName).gamma);
+ }
+
+ [MenuItem("CONTEXT/Material/UnityGLTF Material Helpers/Convert Emissive Colors > Linear - brighter, stronger")]
+ private static void ConvertToLinear(MenuCommand command)
+ {
+ if (!(command.context is Material mat)) return;
+ Undo.RegisterCompleteObjectUndo(mat, "Convert emissive colors to sRGB");
+ foreach(var propName in emissivePropNames)
+ if (mat.HasProperty(propName)) mat.SetColor(propName, mat.GetColor(propName).linear);
+ }
+
+ [MenuItem("CONTEXT/Material/UnityGLTF Material Helpers/ Select all materials with this shader", false, -1000)]
+ private static void SelectAllMaterialsWithShader(MenuCommand command)
+ {
+ if (!(command.context is Material mat)) return;
+ var allMaterials = AssetDatabase.FindAssets("t:Material")
+ .Select(AssetDatabase.GUIDToAssetPath)
+ .Select(AssetDatabase.LoadAssetAtPath)
+ .Where(x => !AssetDatabase.IsSubAsset(x))
+ .Where(x => x.shader == mat.shader)
+ .Cast