Simple yet functional pop-up menu which opens with a right click. You can use it with any UI object – just add the ‘Context Menu Content’ component to your object and you’re good to go!
In order to use the localization system with context menu items, you can select the component and enter a valid localization key. Everything will be handled automatically as long as the localization system is active.
using UnityEngine;
using Michsky.DreamOS;
public class SampleClass : MonoBehaviour
{
[SerializeField] private ContextMenuManager myContextMenu;
void YourFunction()
{
myContextMenu.Open(); // Open menu
myContextMenu.Close(); // Close menu
}
}
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.