{"action":"opened","issue":{"url":"https://api.github.com/repos/aestheticinteractive/Hover-VR-Interface-Kit/issues/35","labels_url":"https://api.github.com/repos/aestheticinteractive/Hover-VR-Interface-Kit/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/aestheticinteractive/Hover-VR-Interface-Kit/issues/35/comments","events_url":"https://api.github.com/repos/aestheticinteractive/Hover-VR-Interface-Kit/issues/35/events","html_url":"https://github.com/aestheticinteractive/Hover-VR-Interface-Kit/issues/35","id":112614213,"number":35,"title":"Creating hovercast menu items at runtime","user":{"login":"ahsquared","id":250325,"avatar_url":"https://avatars.githubusercontent.com/u/250325?v=3","gravatar_id":"","url":"https://api.github.com/users/ahsquared","html_url":"https://github.com/ahsquared","followers_url":"https://api.github.com/users/ahsquared/followers","following_url":"https://api.github.com/users/ahsquared/following{/other_user}","gists_url":"https://api.github.com/users/ahsquared/gists{/gist_id}","starred_url":"https://api.github.com/users/ahsquared/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahsquared/subscriptions","organizations_url":"https://api.github.com/users/ahsquared/orgs","repos_url":"https://api.github.com/users/ahsquared/repos","events_url":"https://api.github.com/users/ahsquared/events{/privacy}","received_events_url":"https://api.github.com/users/ahsquared/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-21T15:23:10Z","updated_at":"2015-10-21T15:23:10Z","closed_at":null,"body":"I am creating Hovercast menu items at runtime in my Unity app. When I create them I see them in the hierarchy, but they are not rendered in the UI. Is there an initialization step I am missing?\r\n\r\nImage shows only two items in the UI, but the hierarchy shows 3, the third is added at runtime:\r\n![hovercast](https://cloud.githubusercontent.com/assets/250325/10641140/f475c2c0-77e5-11e5-8959-5ce58c6bd25d.PNG)\r\n\r\nThis is the code I'm using for creating the menu item:\r\n\r\n    // hoverMenu set in UI\r\n    // movieName is a string\r\n    GameObject newMenuEntry = new GameObject();\r\n    newMenuEntry.transform.parent = hoverMenu.transform;\r\n    newMenuEntry.name = movieName;\r\n    HovercastItem newHovercastItem = newMenuEntry.AddComponent<HovercastItem>();\r\n    newHovercastItem.Type = HovercastItem.HovercastItemType.Radio;\r\n    newHovercastItem.Label = movieName;\r\n    newMenuEntry.AddComponent<HovercastItemVisualSettingsStandard>();\r\n\r\nI also tried setting the hierarchy again at runtime:\r\n\r\n    hierarchy = hoverMenu.GetComponent<HovercastItemHierarchy>();\r\n    hovercastSetup = hovercast.GetComponent<HovercastSetup>();\r\n    hovercastSetup.ItemHierarchy = hierarchy;\r\n\r\nThanks for the help."}}