docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ModuleReflectionSource

    Resolves a Smart String placeholder against an object's fields, properties, and parameterless methods.

    Inheritance
    object
    Source
    ModuleReflectionSource
    Implements
    ISource
    IInitializer
    Inherited Members
    Source.m_Formatter
    Source.m_SmartSettings
    Source.Initialize(SmartFormatter)
    Source.TrySetResultForNullableOperator(ISelectorInfo)
    Namespace: UnityEngine.Localization.Upgrade
    Assembly: Unity.Localization.dll
    Syntax
    [Serializable]
    public class ModuleReflectionSource : Source, ISource, IInitializer
    Remarks

    The built-in Smart Strings module leaves this source out so it does not force a dependency on System.Reflection, which means a placeholder such as resolves to nothing after an upgrade. The upgrade wizard adds this to the project's Smart Strings settings so those placeholders keep working, matching the package's own reflection source. Selector lookups are cached per type and name, including the ones that find nothing.

    Methods

    Name Description
    TryEvaluateSelector(ISelectorInfo)
    In This Article
    Back to top
    Copyright © 2026 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)