Overview
The Product Part Spawner allows you to introduce products (IA Product Parts) into your scene.
It can Spawn IAProductParts from the library onto Conveyor(s) and other modules.
Where to find
The Product Part Spawner can be found in the Industrial Assets library. From the Library, the Product Part Spawner can be dragged and dropped into your scene.
Feature layout
The image below shows the complete feature layout of the Product Part Spawner inspector.
Fields | ||
Trigger Cue Settings |
| General setting of this Cue |
Owner Module |
| The module the Product Part Spawner is snapped on. [read only] |
Spline Length (m) |
| The length of the spline the Product Part Spawner is snapped on in meters. [read only] |
Draggable In Scene |
| Bool that states if the cue that is connected to the Product Part Spawner is draggable in the inspector or not. |
Distance From Start (m) |
| The distance this object is located from the start of the spline in meters. |
Distance From End (m) |
| The distance this object is located from the end of the spline in meters. |
Area Size (m) |
| The size of the Product Part Spawner in meters. |
Spawn Recipe Settings | Settings for what to spawn | |
Action Sequence Category | The selected Action Sequence, for now only supports:
| |
Add IA Product Recipe | Button to add another IA Product Recipe. | |
Recipe Name | The name of the recipe, used for reference in other parts of the spawner. | |
Selected Product Part And Version | Foldout with the link of the product part from the library. | |
Asset GUID | The GUID of the object to spawn, Copy this from the asset in the library. (Right mouse button on the asset you want in the library, then select copy ID, past it here) | |
Assign by Asset GUID | Button to apply the AssetGUID pasted in the “Asset GUID” field above. This initializes the selected asset in the spawner. | |
Assign by Scene Object | Alternative method to select the object to spawn. Drag an IA Product part from the scene into this field. | |
Asset Version | The version of the asset in the library. Selects the current version set in the library, but allows to use older or newer asset versions. | |
Part Customization | Allows for extra customization(s):
| |
Name | Macro Variables | The name of the macro variable. |
Type | Macro Variables | A dropdown for the type: (now only supports Integers)
|
Devault Value | Macro Variables | The starting value of this Macro Variable. |
Add Variable | Macro Variables | Button to add another Macro Variable. |
Position Cases | A Foldout containing the Nested Product Parts of the IAProductPart that is selected for spawning. | |
Add Condition Button | Position Cases | Allows you to add a condition using a macro variable. |
if: | Position Cases | Allow you to set a specific rule to check for. |
Then: | Position Cases | What to do when the previous “if:” statement is true:
|
Spawn Patters Settings | Create and manage different patterns for spawning | |
---|---|---|
Action Sequence Category | Only supports Position Pattern. | |
Add Position Pattern | Button to add a new position pattern to the list. | |
#0 : Position Pattern Name | A foldout containing the information and settings of this particular Position Pattern. | |
Pattern Name | The name of the position pattern, used for reference. | |
Pattern Type | The type of pattern to use:
| |
Same Recipe for all positions | Sets all different position to the same recipe [does nothing at the moment?] | |
Position #n | The offset from the spawner on the spline the spawner is snapped on [DOES THIS HAVE ANY EFFECT?] | |
Add Position | Button to add another position to this position pattern [BUGGED ATM for the spawner] | |
Scene Preview | Foldout with options for previewing the spawn pattern. | |
Preview in Scene | Scene Preview | Show a preview in the scene or don't show a preview. |
Preview Transparency | Scene Preview | The transparency of the preview, 0 is invisible, 1 is solid. |
Preview Color | Scene Preview | The material color of the preview in the scene. |
0 Var: Customization | Scene Preview | [NOT USED] |
Spawn Assignment Settings | The settings on what to do when the spawner is triggered to spawn | |
---|---|---|
Action Sequence | Dropdown with the supported Assignments:
| |
Assignment Name | The name of the assignment, used for reference in other parts. | |
Add Condition | Button to add a new condition. | |
Test | Description of the test that should be true for the spawner to spawn:
| |
Set the rule to test for, for instance “Explicit == 0”. Use the dropdowns to configure your test. | ||
If test fails | [NOT USED] | |
Applied Pattern | The previous created Position Patterns to chose from to apply to the spawning action. | |
On Assignment Completed Successful | Drop down to select an extra action to do when the spawn is successfully done:
|
Spawn Sequence Settings | The settings of when to trigger the spawn assignment | |
---|---|---|
Action Sequence Category | The type of action sequence this trigger supports:
| |
Add Timer Trigger | Button to add another Timer Trigger. | |
Timer Name | #0 Timer Trigger | The reference name that can be set for this timer. |
Interval | Dropdown to select the interval of the timer:
| |
Duration | Fixed | The duration of the timer to wait for a new spawn. |
Minimum duration | Random | The minimum value of the random time. |
maximum duration | Random | The maximum value of the random time. |
On Timer Complete | Fixed / Random | Dropdown to select an action:
|
Assignment Owner Object | Fixed / Random | The object to perform the assignment on, by default this spawner itself. |
Target Assignment | Fixed / Random | Dropdown to select the assignment on the “Assignment Owner Object“. |
On Triggered Assignment Failure | Fixed / Random | Drop down to select an extra action to do when the target assignment failed:
|
On Assignment Successfully Staged | Fixed / Random | Drop down to select an extra action to do when the target assignment is successfully done:
|
Tact Intervals | Tact | A series of Tact “segments” that are played in order to complete a full tact cycle. The tact cycle is run in repeat. |
Tact Segment Name | Tact | The name to reference this specific tact segment. |
Duration (sec.) | Tact | The duration this step takes, in seconds. after this time the “On Tact Timer Complete” action will be called. |
On Tact Timer Complete | Tact | The action to perform when this tact segment timer is over:
|
Assignment Owner Object | Tact - Trigger Assignment | The object to perform the assignment on, by default this spawner itself. |
Target Assignment | Tact - Trigger Assignment | Dropdown to select the assignment on the “Assignment Owner Object“. |
On Triggered Assignment Failure | Tact - Trigger Assignment | Drop down to select an extra action to do when the target assignment failed:
|
On Assignment Succesfully Staged | Tact - Trigger Assignment | Drop down to select an extra action to do when the target assignment is successfully done:
|
State Owner Object | Tact - Trigger State Transition | The object on which to trigger the State Change (for instance a Trigger Assignment). |
Target State Category | Tact - Trigger State Transition | A dropdown containing the State Categories on the “State Owner Object”. |
Transition to State | Tact - Trigger State Transition | The state to transition to. |
Add OnComplete Event | Tact | Button to add another On Complete event that is executed when the trigger is triggered and the additional condition(s) are met. |
Add Tact Interval | Tact | Button to add another Tact Interval. |
Advanced Timer Settings | The advanced settings corresponding to this timer. | |
Start | When to start this Timer.
| |
Start Interval | When the Intervals should be started.
| |
Repeat | When and how this Interval should repeat itself.
| |
Trigger when scheduler is set and active | If this timer should also trigger when a scheduler is set to the spawner. In other words, if this should overrule the scheduler. |
Throughput Visualization Settings | Manages the throughput visualization | |
---|---|---|
Throughput Visualizer | The Throughput Visualizer for this Product Part Spawner. | |
Create Throughput Visualizer | Add an (extra) Throughput Visualizer to this Product Part Spawner. |
How to use
Open the Industrial Assets Library via Prespective > Menu > Industrial Assets > Asset Library
Download a Conveyor Asset, and drag it into the scene.
Download the latest version of the Spawner, and drag it into the scene.
Toggle on Snapping, by pressing “s“ or the magnet icon, and snap the Spawner onto the Conveyor Asset.
Assign a Product Part Asset to the Spawn Recipe.
Press play