# Add a UI to a scene Beginner Artist Designer After you create a [UI page](ui-pages.md), add it to the scene as a component on an entity. 1. In the **Scene Editor**, create an empty entity. To do this, right-click the scene and select **Empty entity**. ![Create empty entity](media/create-empty-entity.png) 2. In the Property Grid (on the right by default), click **Add component** and select **UI**. ![Add UI component](media/add-UI-component.png) Game Studio adds a **UI component** to the entity. ![UI component](media/UI-component.png) 3. Next to **Page**, click ![Hand icon](~/manual/game-studio/media/hand-icon.png) (**Select an asset**). The **Select an asset** window opens. ![Select UI page](media/select-UI-page.png) 4. Select the UI page you want to add and click **OK**. For information about how to create and edit UI pages, see the [UI editor](ui-editor.md) page. > [!Tip] > To stop the UI obscuring the rest of the scene in the editor, disable the **UI component** in the Property Grid. > ![Disable UI component](media/disable-UI-component.png) > Remember to enable the component again before you run the game. If you don't, Stride doesn't display the UI. ### Assign a UI page to a UI page component in code You can assign a UI page to the `Page` property of a UI component. ```cs // This property can be assigned from a UI page asset in Game Studio public UIPage MyPage { get; set; } protected override void LoadScene() { InitializeUI(); } public void InitializeUI() { var rootElement = MyPage.RootElement; // to look for a specific element in the UI page, extension methods can be used var button = rootElement.FindVisualChildOfType