localizedconditionalevent - eisclimber/ExPresS-XR GitHub Wiki

LocalizedConditionalEvent

Class in ExPresSXR.Localization

Inherits from UnityEngine.MonoBehaviour

Summary

Emits conditional events based on if the current locale matches the configured one or not.

public class LocalizedConditionalEvent : MonoBehaviour

Fields

Name Description
OnLocaleCheckEvent Event providing a bool representing if the locale matches.
OnLocaleCheckNegatedEvent Event providing a bool representing if the locale DOES NOT match.
OnLocaleMatchEvent Event emitted if the locale matches.
OnLocaleMismatchEvent Event emitted if the locale DOES NOT match.

Methods

Name Description
InvokeLocalizedEvent() Checks if the locale matches and triggers the respective events.

Properties

Name Description
Description Description for the condition. No further use.
Locale Locale identifier to match against. The identifiers can be found in the localization setting. Usually something like en or en-GB.
⚠️ **GitHub.com Fallback** ⚠️