
516 Game Development and Simulation with Unreal Technology
modes. Our array is designed to hold any type of Obje ct which all blueprints
extend from so that the data is cast to a general Object conta iner.
FIGURE 8.13: Spawning from Randomized Spawner.
You could say that a BallSpawne r is an Object but an Object is not alway s
a BallSpawner. If you are familiar with the concept of polymorphism in
progr amming, this is exactly the same concept. So, since our BallSpawner
data is currently stored in a superc la ss container, we need to c ast it back to a
BallSpawner conta iner so that we can access the event we created within it.
25. Drag off a wire from ...