Can I set variable in animnotifystate?

Hello.
I try to create MyAnimNotifyState inherited AnimNotifyState class.

In Blueprint, It can’t set variable.
but C++ It can set variable.
Is there a reason forbid setting variable in blueprint?

And I saw the code like (AnimNotifyState_Trail, AnimNotifyState_TimedParticle).
These AnimNotifyState didn’t set variable like particle component.
Why didn’t set variable?.. Is there any reason?

finally I want to ask question.
Can I set variable like ParticleComponent or MeshComp in AnimNotifyState?
If It is forbid, Can you tell me why it is forbiden?..

I found a this post.

So I understand why didn’t set variable.

Hey there, can you show my how you create the variables in c++?

UPROPERTY()
TMap<USkeletslmeshComponent*, UParticleSystemComponent*> SomeMap

I declare map, and at the begin, I add mesh with component.
at end, I remove this mesh in TMap.
Did you see that url post comment who is ‘SilentSniperoo’??

He said he was success.
But I don’t know this is good way.
How do you think about?..

To be able to see that in blueprints you need to set it to BlueprintReadWrite on the UPROPERTY

Um…
Unfortunately I didn’t use Blueprint.
and I think if I set BlueprintReadWrite in this variable, It could be print error.

You said that you can’t set the variable in blueprints, that’s why i suggested BlueprintReadWrite, to make it available in blueprints to be set.

If that fixed it please mark the answer as correct.

Ah sorry. I was wrong. It is possible to use Blueprint. Thank you.