An apparatus for generating virtual content, comprising: a memory; and one or more processors coupled to the memory and configured to: obtain an image of a physical object in a real-world environment; determine at least one attribute of the physical object in the image; determine a hand of a user of the apparatus in the image; determine a position of the hand relative to the physical object; determine an interface layout for virtual content based on the at least one attribute of the physical object and the position of the hand relative to the physical object; determine an input type for the virtual content and an input function for the input type based on the at least one attribute of the physical object and the position of the hand relative to the physical object, the input type defining a scroll input and the input function defining a first direction for the scroll input; receive a user input, the user input comprising a scroll input in the first direction; cause the virtual content to be displayed relative to the physical object based on the determined interface layout and manipulated in the first direction based on the received scroll input. a memory; and one or more processors coupled to the memory and configured to: obtain an image of a physical object in a real-world environment; determine at least one attribute of the physical object in the image; determine a hand of a user of the apparatus in the image; determine a position of the hand relative to the physical object; determine an interface layout for virtual content based on the at least one attribute of the physical object and the position of the hand relative to the physical object; determine an input type for the virtual content and an input function for the input type based on the at least one attribute of the physical object and the position of the hand relative to the physical object, the input type defining a scroll input and the input function defining a first direction for the scroll input; receive a user input, the user input comprising a scroll input in the first direction; cause the virtual content to be displayed relative to the physical object based on the determined interface layout and manipulated in the first direction based on the received scroll input. obtain an image of a physical object in a real-world environment; determine at least one attribute of the physical object in the image; determine a hand of a user of the apparatus in the image; determine a position of the hand relative to the physical object; determine an interface layout for virtual content based on the at least one attribute of the physical object and the position of the hand relative to the physical object; determine an input type for the virtual content and an input function for the input type based on the at least one attribute of the physical object and the position of the hand relative to the physical object, the input type defining a scroll input and the input function defining a first direction for the scroll input; receive a user input, the user input comprising a scroll input in the first direction; cause the virtual content to be displayed relative to the physical object based on the determined interface layout and manipulated in the first direction based on the received scroll input.