for (TSharedPtr&Emitter : Emitters) { if(UNiagaraEmitter* PinnedProps = Emitter->GetProperties().Get()) {FNameCurName = *PinnedProps->EmitterName; if (CurName == EmitterName) { Emitter->GetProperties()->UpdateScriptProps.ExternalConstants.SetOrAdd(FNiagaraTypeDefinition::GetVec4Def(), ConstantName, Value); break; } } } }