# How to key niagara user-created variables via editor utility widget, scalar or vector ones?

**URL:** <https://forums.unrealengine.com/t/how-to-key-niagara-user-created-variables-via-editor-utility-widget-scalar-or-vector-ones/2448494>\
**Category:** Programming & Scripting\
**Tags:** editor-utility-widge, key, particle-systems, keys, Editor-Scripting, Editor-Utility, unreal-engine, sequence, editor, question\
**Created:** [April 9, 2025, 6:18pm UTC](https://forums.unrealengine.com/t/how-to-key-niagara-user-created-variables-via-editor-utility-widget-scalar-or-vector-ones/2448494 "2025-04-09T18:18:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![flame\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@flame\_eg](https://forums.unrealengine.com/u/flame_eg)\
**Post date:** [April 9, 2025, 6:18pm UTC](https://forums.unrealengine.com/t/how-to-key-niagara-user-created-variables-via-editor-utility-widget-scalar-or-vector-ones/2448494/1 "2025-04-09T18:18:10Z")

</div>

I want editor utility widget to key niagara variable called beam\_end, like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/f/1ff97e00d4e375c29f495e3116d7f32c1f9ac8c4.png)

i can do it manually but i cant figure a way out to make this with editor utility widget. My best attempt was this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/a/99acbcaafbba35f1f526a7893b772a8aa32d4e2b.png)

but unfortunately unreal crashes when i try to add a section, and there is no function to add keys to track. or maybe there is but i just cant find it, anyways i would grately appreciate if someone helped me out

---

<div class="post-metadata">

**Author:** ![piggest\_pig](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/piggest_pig/32/1169069_2.png) [@piggest\_pig](https://forums.unrealengine.com/u/piggest_pig)\
**Post date:** [April 15, 2025, 3:32pm UTC](https://forums.unrealengine.com/t/how-to-key-niagara-user-created-variables-via-editor-utility-widget-scalar-or-vector-ones/2448494/2 "2025-04-15T15:32:39Z")

</div>

Hi, I’m also interested in keying Niagara variables. After investigating the source code, it turns out that the C++ functions aren’t exposed to blueprints. If you want to initialize a new section and bind Niagara params, you can refer to `FNiagaraSystemTrackEditor.cpp`

```cpp
void FNiagaraSystemTrackEditor::AddNiagaraParameterTrack(TArray<FGuid> ObjectBindings, FNiagaraVariable Parameter, TArray<uint8> DefaultValueData)
{
	FNiagaraEditorModule& NiagaraEditorModule = FModuleManager::GetModuleChecked<FNiagaraEditorModule>("NiagaraEditor");
	if (NiagaraEditorModule.CanCreateParameterTrackForType(*Parameter.GetType().GetScriptStruct()))
	{
		UMovieScene* MovieScene = GetSequencer()->GetFocusedMovieSceneSequence()->GetMovieScene();
		if (MovieScene->IsReadOnly())
		{
			return;
		}

		FScopedTransaction AddTrackTransaction(LOCTEXT("AddNiagaraParameterTrackTransaction", "Add Niagara Parameter Track"));
		MovieScene->Modify();

		for (FGuid ObjectBinding : ObjectBindings)
		{
			UMovieSceneNiagaraParameterTrack* ParameterTrack = NiagaraEditorModule.CreateParameterTrackForType(*Parameter.GetType().GetScriptStruct(), Parameter);
			MovieScene->AddGivenTrack(ParameterTrack, ObjectBinding);

			ParameterTrack->SetParameter(Parameter);
			ParameterTrack->SetDisplayName(FText::FromName(Parameter.GetName()));

			UMovieSceneSection* ParameterSection = ParameterTrack->CreateNewSection();
			ParameterTrack->SetSectionChannelDefaults(ParameterSection, DefaultValueData);
			ParameterSection->SetRange(TRange<FFrameNumber>::All());
			ParameterTrack->AddSection(*ParameterSection);
		}

		GetSequencer()->NotifyMovieSceneDataChanged(EMovieSceneDataChangeType::MovieSceneStructureItemAdded);
	}
}

```

There’s another way to copy-paste existing sections. It can be done by pure blueprint. Just make a reference sequencer and manually keyframe a niagara parameter. Then copy the section to new places and add keys.(The name of params must be the same, like “Beam\_End”)  
Hope it works!

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/6/906a83cd3b19314fc507c5aec71183388ecb7ad0.png)

---

<div class="post-metadata">

**Author:** ![piggest\_pig](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/piggest_pig/32/1169069_2.png) [@piggest\_pig](https://forums.unrealengine.com/u/piggest_pig)\
**Post date:** [April 15, 2025, 3:43pm UTC](https://forums.unrealengine.com/t/how-to-key-niagara-user-created-variables-via-editor-utility-widget-scalar-or-vector-ones/2448494/3 "2025-04-15T15:43:43Z")

</div>

And another trick: add keys by MovieSceneScriptingChannels  
This is my implementation - forget about the big switch because the parameter type is read from C++.  
Your parameter “Beam\_End” looks like a 4D vector, which contains 4 float channels

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/b/3fb4b1b044be99e6e252b5c394ff7cd78a4254f5.jpeg)

---

<div class="post-metadata">

**Author:** ![flame\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@flame\_eg](https://forums.unrealengine.com/u/flame_eg)\
**Post date:** [May 3, 2025, 12:05pm UTC](https://forums.unrealengine.com/t/how-to-key-niagara-user-created-variables-via-editor-utility-widget-scalar-or-vector-ones/2448494/4 "2025-05-03T12:05:47Z")

</div>

Thanks! this seems to be a soluition

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 2, 2025, 12:05pm UTC](https://forums.unrealengine.com/t/how-to-key-niagara-user-created-variables-via-editor-utility-widget-scalar-or-vector-ones/2448494/5 "2025-06-02T12:05:51Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
