Interaction Types (Unity)
Below is a list of all interactions already defined in Unity, including their function and usage:
ChangeCharacteristicChoice
Sets a CharacteristicChoice based on a Choice (from a Characteristic or CharacteristicCombination) and sends this value to the frontend.
Required InteractionParameter Types:
-
Choice
Indicates which Characteristic/Choice this interaction responds to.
Important: The value must be a HEX value. -
CodeParameterPair
Code: TargetProductCharacteristic
(Required)
Indicates which ProductCharacteristic the choice is applied to.
Example:
Code | Type | Parameter |
---|---|---|
Pref_ELA_Side_B_P_DR10_CCCH_CH | CharacteristicCombinationChoice | Cont_Frame_CP |
TargetProductCharacteristic | CodeParameterPair | CON_BRE |
ChangeColor
Changes the color of a GameObject. The specific color is determined by the corresponding Choice.
Important: The value must currently be a HEX code (e.g. #FF00FF
).
Alpha transparency is supported with two extra HEX digits (e.g. #FF00FF71
).
00
= fully transparent, FF
= opaque.
Required InteractionParameter Types:
-
Choice
See above. -
GameObjectName
Specifies on which mesh inside the ObjectInformation the color should be applied.
Path:Folder01/Sub-Folder02/MeshName
Example:
Code | Type | Parameter |
---|---|---|
Pref_ELA_Side_B_P_DR10_CC_CH | Choice | ELA_CONT_OUT_COLOR |
Pref_ELA_Side_F_P_DL10_CC_GON | GameObjectName | Stirnwand TL Li-B1000-P-LRH2,5-MWSCH/0/0/Color01 |
ChangeIntensity
Changes the light intensity.
Important: The value is a float between 0.1
and 2
.
Required InteractionParameter Types:
-
Choice
See above. -
GameObjectName
Path relative to the ObjectInformation.
Example:
Code | Type | Parameter |
---|---|---|
PRE_TX_JV_50_LIGHTSOURCE | Choice | TX_VX_JV_LICHTINTENSITÄT |
Pref_ELA_Side_F_P_DL10_CI_GON | GameObjectName | JV50/LED/LIGHTSOURCE |
ChangeLightColor
Changes the light color of a light source.
Important: The value must be a HEX code.
Required InteractionParameter Types:
-
Choice
See above. -
GameObjectName
Path relative to the ObjectInformation.
Example:
Code | Type | Parameter |
---|---|---|
Pref_ELA_Side_B_P_DR10_CLC_CH | Choice | TX_VC_LICHTFARBE |
Pref_ELA_Side_F_P_DL10_CLC_GON | GameObjectName | PRE_TX_JV_Jovie50/Body/LightSource/01 |
ChangeMaterial
Changes the material of a GameObject.
Required InteractionParameter Types:
-
Choice
The value must exactly match a material name in the Addressables. -
GameObjectName
Path relative to the ObjectInformation.
Example:
Code | Type | Parameter |
---|---|---|
FC_PPS_Body_BodyM_CM_CH | Choice | FC_BARREL_SURFACE |
FC_PPS_Body_BodyM_CM_GON | GameObjectName | Body_M/BodyMesh |
ChangePosition
Allows you to overwrite the position of an ObjectInformation / GameObject.
Required InteractionParameter Types:
-
Choice
Value must be formatted asVector3
(e.g.0.2;0;13
). -
GameObjectName (optional)
If not defined, the position is applied to the ObjectInformation itself.
Example:
Code | Type | Parameter |
---|---|---|
Pref_ELA_Side_B_P_DR10_CLC_CH | CharacteristicCombinationChoice | ELA_TUERPOS_01 |
Pref_ELA_Side_F_P_DL10_CLC_GON | GameObjectName | 0/TuerMesh |
ChangePrefab
Loads and spawns GameObjects from the Addressables.
Required InteractionParameter Types:
-
Choice
Must exactly match a prefab name. -
CodeParameterPair
PrefabContainerPath
DefaultPrefab
(optional)PrefabContainerPosition
(optional, default0;0;0
)PrefabContainerRotation
(optional, default0;0;0
)PrefabContainerScale
(optional, default1;1;1
)
Example:
Code | Type | Parameter |
---|---|---|
Pref_ELA_Door_B_CH | Choice | ELA_CONT_WALL_B_DOOR |
PrefabContainerPath | CodeParameterPair | Door_B |
DefaultPrefab | CodeParameterPair | OutSideDoor |
PrefabContainerPosition | CodeParameterPair | -1.705;0.144;-6.045 |
PrefabContainerRotation | CodeParameterPair | 0;180;0 |
PrefabContainerScale | CodeParameterPair | 1;1;1 |
ChangeRotation
→ In Planning
ChangeScale
→ In Planning
ChangeTexture
Changes the texture of a GameObject.
Required InteractionParameter Types:
-
Choice
e.g.TEX_SB_Carbon
-
GameObjectName
Path relative to the ObjectInformation.
Example:
Code | Type | Parameter |
---|---|---|
PRE_SB_Model_01_CH | CharacteristicCombinationChoice | SB_BODY_TEXTURE |
PRE_SB_Model_01_GON | GameObjectName | BODY/Mesh01 |
ChangeVisibility
Shows or hides a GameObject depending on whether its name matches the current Choice.
Required InteractionParameter Types:
-
Choice
Must exactly match the GameObject name. -
GameObjectName
Path relative to the ObjectInformation.
Example:
Code | Type | Parameter |
---|---|---|
Pref_ELA_Side_B_P_DR10_CV_CH | Choice | ELA_CONT_WALL_B |
Pref_ELA_Side_B_P_DR10_CV_GON | GameObjectName | Stirnwand TL Re-B1000-P-LRH2,5-MWSCH |
Dimensioning
Displays dimensions on a Box-Collider.
Currently no parameters required.
ElineOutline
Adds an outline to a GameObject.
Required InteractionParameter Types:
-
GameObjectName (optional, default = current ObjectInformation)
-
CodeParameterPair
ElineObjectType
(optional, default =ActiveModule
)
Possible values:- ActiveModule
- Head
- Pusher
- Mount
- TP
Example:
Code | Type | Parameter |
---|---|---|
PRE_TX_YNS_LE_650_OutL_GON | GameObjectName | 0/TuerMesh |
ElineObjectType | CodeParameterPair | ActiveModule |
FlagInformationComponent
Controls whether and how the Product interacts with the Scene.
Required InteractionParameter Types:
- CodeParameterPair
UseGridSystem
:true
/false
IsPlaceableInsideObject
:true
/false
Example:
Code | Type | Parameter |
---|---|---|
UseGridSystem | CodeParameterPair | false |
IsPlaceableInsideObject | CodeParameterPair | true |
IgnoreComponent
Allows you to ignore a Product in the system configuration.
Currently no parameters required.
Minimap
Adds a minimap to the visualization.
Required InteractionParameter Types:
- CodeParameterPair
MinimapUIPrefabTextureGameObjectPath
CanvasGameObjectName
MinimapCameraGameObjectName
RenderTextureWidth
RenderTextureHeight
ViewportGameObjectName
ViewportMaterialResourcePath
ViewportColor
ViewportOutlineWidth
ViewportOutlineColor
Example:
Code | Type | Parameter |
---|---|---|
MinimapUIPrefabTextureGameObjectPath | CodeParameterPair | [PathName of the MinimapTexture] |
CanvasGameObjectName | CodeParameterPair | [CanvasName] |
MinimapCameraGameObjectName | CodeParameterPair | [MiniMapCameraName] |
RenderTextureWidth | CodeParameterPair | [Texture Width] |
RenderTextureHeight | CodeParameterPair | [Texture Height] |
ViewportGameObjectName | CodeParameterPair | [MinimapFrameName] |
ViewportMaterialResourcePath | CodeParameterPair | [MaterialPathName] |
ViewportColor | CodeParameterPair | [ViewPortColor] |
ViewportOutlineWidth | CodeParameterPair | [ViewPortOutLineThickness] |
ViewportOutlineColor | CodeParameterPair | [ViewPortOutLineColor] |
PositionInformation
Creates a position info element for the frontend.
Required InteractionParameter Types:
- CodeParameterPair
ProductCharacteristicName
(optional, default ="Developer Magic"
)
Example:
Code | Type | Parameter |
---|---|---|
ProductCharacteristicName | CodeParameterPair | [ProductCharacteristicName] |
SnappableContainer
Defines the Parent-/Container-SnapPointCategory.
Required InteractionParameter Types:
- CodeParameterPair
Category
Example:
Code | Type | Parameter |
---|---|---|
Category | CodeParameterPair | [PARENT-SnapPointCategory] |
SnappableObject
Defines the Child-/Object-SnapPointCategory.
Required InteractionParameter Types:
- CodeParameterPair
ContainerCategory
Category
Example:
Code | Type | Parameter |
---|---|---|
Category | CodeParameterPair | [CHILD-SnapPointCategory] |
ContainerCategory | CodeParameterPair | [PARENT-SnapPointCategory] |
SubProductQuantityInformation
Allows adding sub-products with defined quantity to a product.
Example for a furniture package:
- 2x tables
- 8x chairs
- 2x cabinets
- 1x trash bin
Required InteractionParameter Types:
- CodeParameterPair
ProductCode
Must match an existing ProductCode.Quantity
Quantity of the product.
Example:
Code | Type | Parameter |
---|---|---|
ProductCode | CodeParameterPair | [ProductCode] |
Quantity | CodeParameterPair | [QTY] |