docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class OptimizedReflection

    Inheritance
    object
    OptimizedReflection
    Inherited Members
    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 static class OptimizedReflection

    Fields

    jitAvailable

    Declaration
    public static readonly bool jitAvailable
    Field Value
    Type Description
    bool

    Properties

    safeMode

    Declaration
    public static bool safeMode { get; set; }
    Property Value
    Type Description
    bool

    useJitIfAvailable

    Declaration
    public static bool useJitIfAvailable { get; set; }
    Property Value
    Type Description
    bool

    Methods

    ClearCache()

    Declaration
    public static void ClearCache()

    GetValueOptimized(FieldInfo, object)

    Declaration
    public static object GetValueOptimized(this FieldInfo fieldInfo, object target)
    Parameters
    Type Name Description
    FieldInfo fieldInfo
    object target
    Returns
    Type Description
    object

    GetValueOptimized(PropertyInfo, object)

    Declaration
    public static object GetValueOptimized(this PropertyInfo propertyInfo, object target)
    Parameters
    Type Name Description
    PropertyInfo propertyInfo
    object target
    Returns
    Type Description
    object

    InvokeOptimized(MethodInfo, object)

    Declaration
    public static object InvokeOptimized(this MethodInfo methodInfo, object target)
    Parameters
    Type Name Description
    MethodInfo methodInfo
    object target
    Returns
    Type Description
    object

    InvokeOptimized(MethodInfo, object, object)

    Declaration
    public static object InvokeOptimized(this MethodInfo methodInfo, object target, object arg0)
    Parameters
    Type Name Description
    MethodInfo methodInfo
    object target
    object arg0
    Returns
    Type Description
    object

    InvokeOptimized(MethodInfo, object, object, object)

    Declaration
    public static object InvokeOptimized(this MethodInfo methodInfo, object target, object arg0, object arg1)
    Parameters
    Type Name Description
    MethodInfo methodInfo
    object target
    object arg0
    object arg1
    Returns
    Type Description
    object

    InvokeOptimized(MethodInfo, object, object, object, object)

    Declaration
    public static object InvokeOptimized(this MethodInfo methodInfo, object target, object arg0, object arg1, object arg2)
    Parameters
    Type Name Description
    MethodInfo methodInfo
    object target
    object arg0
    object arg1
    object arg2
    Returns
    Type Description
    object

    InvokeOptimized(MethodInfo, object, object, object, object, object)

    Declaration
    public static object InvokeOptimized(this MethodInfo methodInfo, object target, object arg0, object arg1, object arg2, object arg3)
    Parameters
    Type Name Description
    MethodInfo methodInfo
    object target
    object arg0
    object arg1
    object arg2
    object arg3
    Returns
    Type Description
    object

    InvokeOptimized(MethodInfo, object, object, object, object, object, object)

    Declaration
    public static object InvokeOptimized(this MethodInfo methodInfo, object target, object arg0, object arg1, object arg2, object arg3, object arg4)
    Parameters
    Type Name Description
    MethodInfo methodInfo
    object target
    object arg0
    object arg1
    object arg2
    object arg3
    object arg4
    Returns
    Type Description
    object

    InvokeOptimized(MethodInfo, object, params object[])

    Declaration
    public static object InvokeOptimized(this MethodInfo methodInfo, object target, params object[] args)
    Parameters
    Type Name Description
    MethodInfo methodInfo
    object target
    object[] args
    Returns
    Type Description
    object

    Prewarm(FieldInfo)

    Declaration
    public static IOptimizedAccessor Prewarm(this FieldInfo fieldInfo)
    Parameters
    Type Name Description
    FieldInfo fieldInfo
    Returns
    Type Description
    IOptimizedAccessor

    Prewarm(MethodInfo)

    Declaration
    public static IOptimizedInvoker Prewarm(this MethodInfo methodInfo)
    Parameters
    Type Name Description
    MethodInfo methodInfo
    Returns
    Type Description
    IOptimizedInvoker

    Prewarm(PropertyInfo)

    Declaration
    public static IOptimizedAccessor Prewarm(this PropertyInfo propertyInfo)
    Parameters
    Type Name Description
    PropertyInfo propertyInfo
    Returns
    Type Description
    IOptimizedAccessor

    SetValueOptimized(FieldInfo, object, object)

    Declaration
    public static void SetValueOptimized(this FieldInfo fieldInfo, object target, object value)
    Parameters
    Type Name Description
    FieldInfo fieldInfo
    object target
    object value

    SetValueOptimized(PropertyInfo, object, object)

    Declaration
    public static void SetValueOptimized(this PropertyInfo propertyInfo, object target, object value)
    Parameters
    Type Name Description
    PropertyInfo propertyInfo
    object target
    object value

    SupportsOptimization(FieldInfo)

    Declaration
    public static bool SupportsOptimization(this FieldInfo fieldInfo)
    Parameters
    Type Name Description
    FieldInfo fieldInfo
    Returns
    Type Description
    bool

    SupportsOptimization(MethodInfo)

    Declaration
    public static bool SupportsOptimization(this MethodInfo methodInfo)
    Parameters
    Type Name Description
    MethodInfo methodInfo
    Returns
    Type Description
    bool

    SupportsOptimization(PropertyInfo)

    Declaration
    public static bool SupportsOptimization(this PropertyInfo propertyInfo)
    Parameters
    Type Name Description
    PropertyInfo propertyInfo
    Returns
    Type Description
    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)