docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UnityObjectConverter

    Inheritance
    object
    fsBaseConverter
    fsConverter
    UnityObjectConverter
    Inherited Members
    fsBaseConverter.Serializer
    fsBaseConverter.FailExpectedType(fsData, params fsDataType[])
    fsBaseConverter.CheckType(fsData, fsDataType)
    fsBaseConverter.CheckKey(fsData, string, out fsData)
    fsBaseConverter.CheckKey(Dictionary<string, fsData>, string, out fsData)
    fsBaseConverter.SerializeMember<T>(Dictionary<string, fsData>, Type, string, T)
    fsBaseConverter.DeserializeMember<T>(Dictionary<string, fsData>, Type, string, out T)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.VisualScripting
    Assembly: Unity.VisualScripting.Core.dll
    Syntax
    public class UnityObjectConverter : fsConverter

    Methods

    CanProcess(Type)

    Can this converter serialize and deserialize the given object type?

    Declaration
    public override bool CanProcess(Type type)
    Parameters
    Type Name Description
    Type type

    The given object type.

    Returns
    Type Description
    bool

    True if the converter can serialize it, false otherwise.

    Overrides
    fsConverter.CanProcess(Type)

    CreateInstance(fsData, Type)

    Construct an object instance that will be passed to TryDeserialize. This should not deserialize the object.

    Declaration
    public override object CreateInstance(fsData data, Type storageType)
    Parameters
    Type Name Description
    fsData data

    The data the object was serialized with.

    Type storageType

    The field/property type that is storing the instance.

    Returns
    Type Description
    object

    An object instance

    Overrides
    fsBaseConverter.CreateInstance(fsData, Type)

    RequestCycleSupport(Type)

    If true, then the serializer will support cyclic references with the given converted type.

    Declaration
    public override bool RequestCycleSupport(Type storageType)
    Parameters
    Type Name Description
    Type storageType

    The field/property type that is currently storing the object that is being serialized.

    Returns
    Type Description
    bool
    Overrides
    fsBaseConverter.RequestCycleSupport(Type)

    RequestInheritanceSupport(Type)

    If true, then the serializer will include inheritance data for the given converter.

    Declaration
    public override bool RequestInheritanceSupport(Type storageType)
    Parameters
    Type Name Description
    Type storageType

    The field/property type that is currently storing the object that is being serialized.

    Returns
    Type Description
    bool
    Overrides
    fsBaseConverter.RequestInheritanceSupport(Type)

    TryDeserialize(fsData, ref object, Type)

    Deserialize data into the object instance.

    Declaration
    public override fsResult TryDeserialize(fsData storage, ref object instance, Type storageType)
    Parameters
    Type Name Description
    fsData storage
    object instance

    The object instance to deserialize into.

    Type storageType

    The field/property type that is storing the instance.

    Returns
    Type Description
    fsResult

    True if serialization was successful, false otherwise.

    Overrides
    fsBaseConverter.TryDeserialize(fsData, ref object, Type)

    TrySerialize(object, out fsData, Type)

    Serialize the actual object into the given data storage.

    Declaration
    public override fsResult TrySerialize(object instance, out fsData serialized, Type storageType)
    Parameters
    Type Name Description
    object instance

    The object instance to serialize. This will never be null.

    fsData serialized

    The serialized state.

    Type storageType

    The field/property type that is storing this instance.

    Returns
    Type Description
    fsResult

    If serialization was successful.

    Overrides
    fsBaseConverter.TrySerialize(object, out fsData, Type)

    Extension Methods

    Cloning.Clone(object, ICloner, bool)
    Cloning.Clone(object, ICloner, bool)
    Cloning.CloneViaFakeSerialization(object)
    Cloning.CloneViaFakeSerialization(object)
    ConversionUtility.ConvertTo(object, Type)
    ConversionUtility.ConvertTo(object, Type)
    ConversionUtility.ConvertTo<T>(object)
    ConversionUtility.ConvertTo<T>(object)
    ConversionUtility.IsConvertibleTo(object, Type, bool)
    ConversionUtility.IsConvertibleTo(object, Type, bool)
    ConversionUtility.IsConvertibleTo<T>(object, bool)
    ConversionUtility.IsConvertibleTo<T>(object, bool)
    Serialization.Serialize(object, bool)
    Serialization.Serialize(object, bool)
    TypeUtility.ToShortString(object, int)
    TypeUtility.ToShortString(object, int)
    UnityObjectUtility.IsUnityNull(object)
    UnityObjectUtility.IsUnityNull(object)
    UnityObjectUtility.ToSafeString(object)
    UnityObjectUtility.ToSafeString(object)
    XAnalyserProvider.Analyser(object, GraphReference)
    XAnalyserProvider.Analyser(object, IGraphContext)
    XAnalyserProvider.Analyser<TAnalyser>(object, GraphReference)
    XAnalyserProvider.Analyser<TAnalyser>(object, IGraphContext)
    XAnalyserProvider.Analysis(object, GraphReference)
    XAnalyserProvider.Analysis(object, IGraphContext)
    XAnalyserProvider.Analysis<TAnalysis>(object, GraphReference)
    XAnalyserProvider.Analysis<TAnalysis>(object, IGraphContext)
    XDescriptorProvider.Describe(object)
    XDescriptorProvider.Description(object)
    XDescriptorProvider.Description<TDescription>(object)
    XDescriptorProvider.Descriptor(object)
    XDescriptorProvider.Descriptor<TDescriptor>(object)
    XDescriptorProvider.HasDescriptor(object)
    Cloning.CloneViaFakeSerialization<T>(T)
    Cloning.CloneViaFakeSerialization<T>(T)
    Cloning.Clone<T>(T, ICloner, bool)
    Cloning.Clone<T>(T, ICloner, bool)
    LinqUtility.Yield<T>(T)
    LinqUtility.Yield<T>(T)
    Serialization.CloneViaSerializationInto<TSource, TDestination>(TSource, ref TDestination, bool)
    Serialization.CloneViaSerializationInto<TSource, TDestination>(TSource, ref TDestination, bool)
    Serialization.CloneViaSerialization<T>(T, bool)
    Serialization.CloneViaSerialization<T>(T, bool)
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)