Links
👑

Contextual Emotes

Trigger Emotes for every remarkable context that needs a proper Emote

Introduction

Contextual Emotes module lets you and your gamers configure automatic Emote triggering based on any context that you want to configure for example: Win, Kill, Enter room ...
Contextual Emotes can be a game-changer module for gamers immersion as they can parameter their preferred Emotes per context.

How to activate the "Contextual" tab

In order to add the "Context" tab you should enable the category "CONTEXT" in the Initialization of the KinetixUIEmoteWheel.
KinetixUIEmoteWheel.Initialize( new KinetixUIEmoteWheelConfiguration()
{
enabledCategories = new []
{
EKinetixUICategory.EMOTE_SELECTOR,
EKinetixUICategory.INVENTORY,
EKinetixUICategory.CONTEXT
}
});

Setting contexts in your game

  1. 1.
    First create in your assets a new ContextualEmoteSO: Right click in Assets > Create > Kinetix > EmoteContexts
  2. 2.
    Add the contexts that you want your gamers to configure (name & description), for example: Win, Kill, Enter room
  1. 3.
    In your Monobehaviour initializing the SDK, add a new ContextualEmoteSO property, visible in the inspector:
[SerializeField] private ContextualEmoteSO EmoteContextsSO;
  1. 4.
    Add it to your KinetixCoreConfiguration:
KinetixCore.Initialize(new KinetixCoreConfiguration()
{
VirtualWorldId = "YOUR_API_KEY", // STAGING KEY
PlayAutomaticallyAnimationOnAnimators = true,
EmoteContexts = EmoteContextsSO,
});

Assigning an emote to a context

  1. 1.
    Once your contexts are set, gamers can assign one of their emotes to each set context:

Playing the context

  1. 1.
    To play a context's emote, simply call:
KinetixCore.Context.PlayContext("myContextNameLikeWin");