Description

Consider a Niagara Function Script containing a Static Switch node with the "Expose as Pin" option disabled for its selector variable. When the function is called by another Niagara Function or Niagara Module, the input pin that appears on the function call node is not of the correct static type, but rather of the corresponding non-static type.

Repros in mainline CL 41413293
No public tracker found
Not regression (repros in 5.0 onwards)

Steps to Reproduce

1. Create and edit a new Niagara Function "NFS" (Content Browser – FX – Script – Niagara Function Script)
1.1. On the "Script Details" tab, change "Library Visibility" to "Exposed"
1.2. Change the input name to "A" and add a new input "B"
1.3. Add a "Static Switch" node
1.3.1. Connect its output pin to the function output
1.3.2. Connect each input pin to one of the two function inputs
1.3.3. On the "Selected Details" tab, change the "Input parameter name" to "MyParameter"
1.4. Compile, apply, save

2. Create and edit a new Niagara Module Script "NMS" (Content Browser – FX – Script – Niagara Module Script)
2.1. Add a node to call function "NFS"
2.2. Note that the type of the "MyParameter" input pin is "bool" instead of the expected "static bool"

3. Repeat tests 1 and 2 with different static types as the selector variable of the static switch node.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-267373 in the post.

0
Login to Vote

Backlogged
ComponentUE - Niagara
Affects Versions5.5.4
CreatedApr 7, 2025
UpdatedOct 14, 2025
View Jira Issue