Context Menu
Workflow
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!
![](https://docs.michsky.com/wp-content/uploads/2023/07/image_2023-07-04_230446012.png)
Localization
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.
![](https://docs.michsky.com/wp-content/uploads/2023/07/image_2023-07-04_230805803.png)
Scripting
using UnityEngine;
using Michsky.DreamOS;
public class SampleClass : MonoBehaviour
{
[SerializeField] private ContextMenuManager myContextMenu;
void YourFunction()
{
myContextMenu.Open(); // Open menu
myContextMenu.Close(); // Close menu
}
}
How can we help?
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.