Spline Spawner Documentation

Asset pending release

Documentation is a draft, and does not relate to the preview version.

Spline Spawner
Version: 1.0.0
Review

4.Scripting #

Familiarity with C# and OOP programming is assumed. Support cannot be extended to coding help. Some specific functionality and use cases really need to be handled on a project-specific basis with some creative thinking.

If you are using an assembly definition, ensure you add a reference to the sc.splines.spawner.runtime assembly, otherwise you won’t be able to access the namespace and classes.

Whenever using the API, ensure you add using sc.splines.spawner.runtime; to include the namespace.

The Spline Spawner component and class exposes a few events, designed to facilitate custom functionality. For instance, you may want to execute certain scripts whenever objects are respawned.

Events

onPreRespawn(SplineSpawner instance, int splineIndex)

Triggers when respawning is about to start

onPostRespawn(SplineSpawner instance, int splineIndex)

Triggers after all the respawning operations have completed

onAfterDistribution

Triggers after the spawn point distribution has taken place.

onAfterModifiers

Triggers after modifiers have processed the spawn points, but before the objects are actually spawned.

Yes No Suggest edit
Last updated on July 8, 2025
0 of 0 users found this section helpful
If you're familiar with this asset, please consider leaving a review!
Your support is what makes complementary updates possible!
Suggest Edit