Class ModuleReflectionSource
Resolves a Smart String placeholder against an object's fields, properties, and parameterless methods.
Inherited Members
Source.m_Formatter
Source.m_SmartSettings
Source.Initialize(SmartFormatter)
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) |