public void Setup() { m_Instance = new CopyAllTheFields(); m_Menu = new DropdownMenu(); m_Menu.AddCopyValue(m_Instance); m_Actions = m_Menu.MenuItems().OfType <DropdownMenuAction>().ToArray(); }
protected override void OnPopulateMenu(DropdownMenu menu) { var buffer = m_Content.GetTarget <InspectedBuffer <TList, TElement> >(); menu.AddCopyValue(buffer.Value); }
protected override void OnPopulateMenu(DropdownMenu menu) { var container = Container; menu.AddCopyValue(PropertyContainer.GetValue <EntityContainer, TComponent>(ref container, Path)); }