Enabling Memory on Characters
Enable or disable Long-Term Memory per character using the Convai dashboard or the CharacterService scripting API. Off by default — opt in explicitly.
Enabling and Disabling Memory on a Character
Memory Is Off by Default
Enabling via the Convai Dashboard
1
2
3
Enabling via the Scripting API
Setting Up ConvaiRestClient
using System;
using Convai.RestAPI;
using UnityEngine;
public class MemoryConfigurator : MonoBehaviour
{
private ConvaiRestClient _client;
private void Awake()
{
_client = new ConvaiRestClient(ConvaiSettings.Instance.ApiKey);
}
private void OnDestroy()
{
_client?.Dispose();
}
}Checking Whether Memory Is Enabled
Enabling Memory
Disabling Memory
API Reference
Method
Signature
Returns
Conclusion
Last updated
Was this helpful?