Class TestSceneBuilder
This class assists with setting up a test Scene, specifically with enabling visual elements to render the Scene. Since some of the GameObjects created by this class are PolySpatial GameObjects, it maintains a count of created PolySpatial GameObjects and exposes said attribute so tests may take these GameObjects into consideration when checking all PolySpatial backing GameObjects.
Inherited Members
Namespace: Tests.Runtime.PolySpatialTest.Utils
Assembly: solution.dll
Syntax
public class TestSceneBuilder
Constructors
Name | Description |
---|---|
TestSceneBuilder(bool) |
Properties
Name | Description |
---|---|
CameraGameObject | |
LightGameObject | |
PolySpatialGameObjectCount |
Methods
Name | Description |
---|---|
BuildVisibleScene() | Sets up current Scene to enable visual rendering during test execution, allowing a user to see the Scene and its content (such as the test GameObject). |
DestroyVisibleScene() | |
SetTestGameObjectInView(GameObject) | Moves the test GameObject instance into the Scene's camera's view. |