viewport-workflow-tests.md 17 KB

# Viewport Workflow Tests ​ Testing in this area should focus on basic Viewport functionality. ​

Common Issues to Watch For

​ Test guidance will sometimes note specific issues to watch for. The common issues below should be watched for through all testing, even if unrelated to the current workflow being tested.

  1. Console log errors/warnings/spam
  2. Asserts ​

    Platforms:​

Workflow Requests Things to Watch For
Navigate level with camera controls
  1. Select the Viewport.
  2. Navigate the camera with W, A, S, D, Q, E. Hold shift for fast move.
  3. Right-click and drag to rotate the camera.
  4. Press MMB and drag to pan up and down.
  5. Scroll up and down using the MMB, to zoom in and out.
  6. ALT+LMB to orbit.
  7. ALT+MMB or ALT+Scroll to Pan.
  8. ALT+RMB to Dolly.
  • Testing clicking in and out of the Viewport while moving the camera
Be this camera option
  1. Select the camera entity or create one.
  2. In the Entity Inspector, press the Be this camera button.
  3. Move the camera around.
  4. Press the Return to default editor camera button.
Match Viewport
  1. Select the camera entity or create one.
  2. In the Entity Inspector, press the Match Viewport button.
  3. Move the camera around.
  4. Press the Return to default editor camera button.
Viewport camera selector
  1. Open the Viewport Camera Selector (Tools > Viewport > Viewport Camera Selector).
  2. Right-click in the Viewport and select "Create camera entity from view".
  3. Navigate to a different location in the Viewport and create another camera.
  4. Navigate through the available cameras in the Viewport Camera Selector while monitoring the Viewport.

Workflow 2: Viewport options

Product: A Level with multiple entities with a mesh component and assigned shaderball model asset. ​ Suggested Time Box: 20 mins

Workflow Requests Things to Watch For
Hide/Unhide
  1. Select an entity with mesh component in the Entity Outliner and press the eye icon.
  2. Select the Show All menu option (Edit > Show All).
  3. Select the entity in the Viewport.
  4. Press H to hide the entity.
  5. Press Ctrl+SHIFT+H to unhide the entity.
  • Correct entity Hide/Unhide functionality.
  • Shortcut functionality.
Lock/Unlock
  1. Select an entity with mesh component in the Entity Outliner, press the lock icon.
  2. Attempt to select the entity in the Viewport.
  3. Select the Unlock All menu option (Edit > Unlock All).
  4. Select the entity in the Viewport and press L to lock the entity.
  5. Press Ctrl+SHIFT+L to unlock all entities.
  • Correct entity Lock/Unlock functionality.
  • Shortcut functionality.
Go to position
  1. Select View > Viewport > Go to Position...
  2. Input coordinates.
  • Camera responds as expected to the used control actions.
Find selected entities in Viewport
  1. Select an entity and move the camera away from it.
  2. Select View > Viewport > Find selected entities in Viewport or use the Z key.
  • Position on the selected entity.
Save Location/Go to location
  1. Select View > Viewport > Save Location > Save location 1.
  2. Move the camera around.
  3. Select View > Viewport > Go to location > Go to location 1.
  4. Use Ctrl+F<1-12> to save multiple bookmarks and load them with Shift+F<1-12>.
  • Saving and loading bookmarked locations.
Component Mode Switcher
  1. Select an entity and add multiple components with component mode(e.g. Spline, PhysX collider, WhiteBox).
  2. Enter the component mode through the switcher in the upper left corner of the Viewport.
  3. Switch between component modes using the switcher.
  • Switchers added to the Viewport and functioning.
Stress test
  1. Select an entity with mesh component and duplicate it (Ctrl+D) so you will have around 200 entities.
  2. Select all entities in the level and manipulate them using the Transform mode widgets.
  • Any drops in Editor stability, errors or framerate drops.
Field of View/Camera speed scale
  1. Select dropdown menu next to the camera icon on the Viewport Toolbar and change the value of the Field of view.
  2. Look around with the camera.
  3. Select the camera speed scale under the FOV, change the value and move the camera around.
  • FOV and camera speed adjusting.
Toggle between states
  1. Select dropdown menu next to the bug icon on the Viewport Toolbar and select Full.
  2. Switch between all of the modes.
  3. Press the bug icon multiple times to switch between the modes.
Show Helpers
  1. Select dropdown menu next to the eye icon on the Viewport Toolbar and select show icons (or use Ctrl+space).
  2. Select an entity and from the dropdown menu, select Show helpers for selected entity.
  3. Switch to hide helpers.
Viewport Size
  1. Select dropdown menu next to the double rectangle icon on the Viewport Toolbar > Ratio and switch between the ratios.
  2. From the ratio menu select Custom... and input custom ratio values.
  3. Select Resolution menu and switch between all of the resolutions in the menu.
  4. Select Resolution > Custom... and input custom resolution values.
Grid/Angle snapping
  1. Select dropdown menu next to the triple bar icon on the Viewport Toolbar and select Show Grid.
  2. Select the Grid snapping option and change the Grid snapping size to 5.
  3. Select an entity and using the translate mode, move it around.
  4. Select the Angle Snapping option and change the Angle snapping size value to 60.
  5. Select an entity and using the rotate mode, turn the entity around.
  • Grid displaying around the entity
Viewport global preferences
  1. Select Edit > Editor Settings > Global Preferences and select the Viewport tab.
  2. Change FOV value and press OK.
  3. Observe the changes in the Viewport.
  4. Return to the Preferences menu, modify any other option, confirm and observe the changes.
  • After restarting the Editor the aved changes should persist.

Workflow 3: Entity manipulation

Product: A Level with multiple entities with a mesh component and assigned shaderball model asset. ​ Suggested Time Box: 30 mins

Workflow Requests Things to Watch For
Manipulate the entity
  1. Select an entity and use the Transform mode widgets to manipulate it.
  2. Switch between translate, rotate and scale modes (1, 2 and 3 key accordingly).
  • Shortcuts functionality.
  • Correct entity manipulation.
Undo/Redo
  1. While using the Transform mode widgets to manipulate an entity select Edit > Undo/Redo.
  2. Manipulate the entity and use the shortcuts for Undo - Ctrl+Z and Redo Ctrl+Shift+Z.
  • Shortcuts functionality.
Reference space widget
  1. Select an entity and assign a child entity to it.
  2. Select the child entity, move it around the Viewport and switch between the Reference spaces.
  • Correct Translate and Rotate coordinates.
  • Correct entity manipulation.
Pivots
  1. Select an entity with a three-dimensional shape.
  2. Switch between pivots (P key) and manipulate the entity.
  • Schortcuts functionality.
  • Correct entity manipulation.
Creating a custom reference spaces
  1. Select an entity and select translation manipulator mode.
  2. Press and hold Ctrl+Alt and select a target entity in the Viewport with LMB.
  3. Use the manipulator to modify the entity.
  • Correct manipulator match to the translation or orientation of the target entity.
Selecting a group of entities
  1. Select multiple entities by using LMB and drag.
  2. Deselect multiple entities by holding Ctrl+LMB and dragging in the Viewport.
  3. Add and remove an entity from the selection by holding Ctrl and left-clicking a target entity.
  • Correct entity selection.
Selecting a reference space for a group
  1. With a group of entities selected, press and hold Ctrl+Alt and left-click a target entity.
  2. Use the manipulator to modify the entities.
  • Correct manipulator match to the translation or orientation of the target entity.
Creating a custom reference space for a group
  1. With a group of entities selected, press and hold Ctrl, and move the manipulator in the Viewport.
  • Correct manipulator match to the translation or orientation of the target entity.
Parent reference spaces
  1. Select multiple child entities of the same parent entity and use the manipulator to modify them.
  • Correct manipulator match to the translation or orientation of the target entity.
Using individual influence in a group
  1. Press and hold Alt while modifying a group of selected entities to modify the entities in the local space.
  2. Select child entities from different parent entities and press and hold Alt.
  3. Press and release Alt to dynamically change the manipulator influence.
  • Correct manipulator match to the translation or orientation of the target entity.
Reset an entity's transform, rotation, or scale
  1. In the Viewport, select an entity or group of entities and press R.
  2. Switch the manipulator mode and attempt to reset them.
  • Correct entity default location, rotation, and scale.
Modifying manipulators
  1. Select multiple entities.
  2. Select the transform mode of the manipulator you want to modify.
  3. Press and hold Ctrl+LMB and drag the manipulator to modify its location, rotation, or scale.
  • Correct manipulator match to the translation or orientation of the target entity.
Reset a manipulator's transform, rotation, or scale
  1. Reset a manipulator to its default location, rotation, or scale by pressing Ctrl+R while the related manipulator is active.
  • Correct manipulator default location, rotation, and scale.
Matching entity transforms
  1. Select an entity.
  2. Press and hold Ctrl and press the middle mouse button as you hover over a target entity. After the target is selected, the current selection transform matches that of the target.
  3. Do this with location, rotation, or scale.
  • Correct matching location, rotation, and scale values.
Ditto a group selection
  1. Select a group of entities.
  2. Press and hold Ctrl and press the middle mouse button as you hover over a target entity to match the group's transform data to the target's data.
  3. Do this with location, rotation, or scale.
  • Correct matching location, rotation, and scale values.
Ditto a group selection to local space
  1. Select a group of entities.
  2. Press and hold Ctrl+Alt and press the middle mouse button as you hover over a target entity. This sets the local space of each entity in the selected group to the target entity that you specified.
  • Correct matching location, rotation, and scale values.