Description

This seems to be because the ModuleUsageBitmask is hardcoded as Particle.

Sig.ModuleUsageBitmask = ENiagaraScriptUsageMask::Particle;

 

UNiagaraDataInterfaceGrid2DCollection::GetFunction
{

...

Sig.FunctionSpecifiers.Add(FName("Attribute"));
Sig.bMemberFunction = true;
Sig.bRequiresContext = false;
Sig.bExperimental = true;
Sig.ModuleUsageBitmask = ENiagaraScriptUsageMask::Particle;
Sig.bSupportsCPU = false;
Sig.bSupportsGPU = true;

...

Steps to Reproduce
  1. open 'ContentsExamples' project
  2. open 'Niagara Fluids' Level
  3. open '2DLiquidWake' Niagara System 
    • ExampleContent/Niagara/2DLiquid/2DLiquidWake.uasset
  4.  open 'Extrapolate Height Grid 2d' module script
    • NiagaraFluids/Content/Modules/Grid2D/ShallowWater/Grid2D_SW_ExtrapolateHeight.uasset

Compile Error message :

Function call "GetPreviousFloatValue" is not allowed for stack context ENiagaraScriptUsage::Module....

 

Have Comments or More Details?

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

0
Login to Vote

Cannot Reproduce
ComponentUE - Niagara
Affects Versions5.0.3
CreatedOct 14, 2022
ResolvedOct 23, 2023
UpdatedOct 23, 2023