/// <summary> /// A context was activated /// </summary> void ContextActivated(OVRInspectorContextDetails contextDetails) { if (contextDetails != currentContext) { if (currentContext != null) { currentContext.SetContextActive(this, false); } currentContext = contextDetails; currentContext.SetContextActive(this, true); UpdateContextMenu(); } }