docs.unity3d.com
    目次を表示する/隠す

    Class fsMetaType

    MetaType contains metadata about a type. This is used by the reflection serializer.

    Inheritance
    Object
    fsMetaType
    Namespace: Unity.VisualScripting.FullSerializer
    Syntax
    public class fsMetaType

    Fields

    ReflectedType

    Declaration
    public Type ReflectedType
    Field Value
    Type Description
    Type

    Properties

    HasDefaultConstructor

    Returns true if the type represented by this metadata contains a default constructor.

    Declaration
    public bool HasDefaultConstructor { get; }
    Property Value
    Type Description
    Boolean

    Properties

    Declaration
    public fsMetaProperty[] Properties { get; }
    Property Value
    Type Description
    fsMetaProperty[]

    Methods

    ClearCache()

    Clears out the cached type results. Useful if some prior assumptions become invalid, ie, the default member serialization mode.

    Declaration
    public static void ClearCache()

    CreateInstance()

    Creates a new instance of the type that this metadata points back to. If this type has a default constructor, then Activator.CreateInstance will be used to construct the type (or Array.CreateInstance if it an array). Otherwise, an uninitialized object created via FormatterServices.GetSafeUninitializedObject is used to construct the instance.

    Declaration
    public object CreateInstance()
    Returns
    Type Description
    Object

    EmitAotData()

    Attempt to emit an AOT compiled direct converter for this type.

    Declaration
    public bool EmitAotData()
    Returns
    Type Description
    Boolean

    True if AOT data was emitted, false otherwise.

    Get(fsConfig, Type)

    Declaration
    public static fsMetaType Get(fsConfig config, Type type)
    Parameters
    Type Name Description
    fsConfig config
    Type type
    Returns
    Type Description
    fsMetaType

    Extension Methods

    XAnalyserProvider.Analyser(Object, IGraphContext)
    XAnalyserProvider.Analyser<TAnalyser>(Object, IGraphContext)
    XAnalyserProvider.Analysis(Object, IGraphContext)
    XAnalyserProvider.Analysis<TAnalysis>(Object, IGraphContext)
    XAnalyserProvider.Analyser(Object, GraphReference)
    XAnalyserProvider.Analyser<TAnalyser>(Object, GraphReference)
    XAnalyserProvider.Analysis(Object, GraphReference)
    XAnalyserProvider.Analysis<TAnalysis>(Object, GraphReference)
    XDescriptorProvider.Describe(Object)
    XDescriptorProvider.HasDescriptor(Object)
    XDescriptorProvider.Descriptor(Object)
    XDescriptorProvider.Descriptor<TDescriptor>(Object)
    XDescriptorProvider.Description(Object)
    XDescriptorProvider.Description<TDescription>(Object)
    Cloning.Clone(Object, ICloner, Boolean)
    Cloning.Clone<T>(T, ICloner, Boolean)
    Cloning.CloneViaFakeSerialization(Object)
    Cloning.CloneViaFakeSerialization<T>(T)
    ConversionUtility.IsConvertibleTo(Object, Type, Boolean)
    ConversionUtility.IsConvertibleTo<T>(Object, Boolean)
    ConversionUtility.ConvertTo(Object, Type)
    ConversionUtility.ConvertTo<T>(Object)
    TypeUtility.ToShortString(Object, Int32)
    Serialization.CloneViaSerialization<T>(T, Boolean)
    Serialization.CloneViaSerializationInto<TSource, TDestination>(TSource, ref TDestination, Boolean)
    Serialization.Serialize(Object, Boolean)
    LinqUtility.Yield<T>(T)
    UnityObjectUtility.IsUnityNull(Object)
    UnityObjectUtility.ToSafeString(Object)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)