Ultimate Replay Scripting Reference
CubeSpawner Class |
A demo script used in the stress test scene which spawns a large number of cubes.
![](SectionExpanded.png)
Namespace: UltimateReplay.Demo
Assembly: UltimateReplay (in UltimateReplay.dll) Version: 1.0.0.0 (1.0.0.0)
![](SectionExpanded.png)
C#
public class CubeSpawner : MonoBehaviour
The CubeSpawner type exposes the following members.
![](SectionExpanded.png)
Name | Description | |
---|---|---|
![]() | CubeSpawner | Initializes a new instance of the CubeSpawner class |
![](SectionExpanded.png)
![](SectionExpanded.png)
Name | Description | |
---|---|---|
![]() | explosiveForce |
The amount of force that is initially given to the spawning cubes.
|
![]() | spawnAmount |
The amount of objects to spawn into the scene.
|
![]() | spawnCubes |
An array of prefabs used to randomly spawn objects.
|
![]() | spawnHeight |
The maximum height that an object can be spawned from the center.
|
![]() | spawnRange |
The maximum distance that an object can be spawned from the center.
|
![](SectionExpanded.png)