Questions tagged [delegates]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
139 views

What is a pattern to manage execution order of C# delegates in Unity

Note: I have two Managers: First one creates 2d block upon click. The other one, upon click, grabs a block for dragging. The reason I need them to run in specific order is because newly created block ...
0 votes
1 answer
199 views

Working with websockets in Unity: Cannot convert lambda expression to type 'IObserver<ReconnectionInfo>' because it is not a delegate type

I'm a bit stuck on a delegate error in Unity. The code works fine if I'm in a c# console app however Unity is giving me the error: Cannot convert lambda expression to type 'IObserver' because it is ...
0 votes
0 answers
24 views

Why can't CreateEvent be used as a value in a blueprint Map?

I need to map Button to Event, seeing as Unreal does not allow me to call premade events (in this situation, ...
  • 649
0 votes
1 answer
321 views

Execute Timer Events of another Blueprint from the C++ UE4

I am having problem and it's about a week now that I still can't figure out how to get it right. It seems that I can't run any functions from the blueprints that contain timers at all. I have a ...
  • 139
0 votes
0 answers
922 views

How to make a Multicast Delegates in Blueprint?

I used the Set Timer by Event, but I could not use the delegate in more than one event: I've been researching about and it's possible, but I've only found results in c ++: https://docs.unrealengine....
0 votes
0 answers
280 views

Unity: How to use delegates with EventManager ? and use variable number of arguments in listenners?

As answered here, I would like to know how to implement an EventManager with delegate instead of UnityAction for pass arguments. I tried but I did not succeed. Also, can someone tell me if it's a ...
  • 131
1 vote
1 answer
80 views

Is there any way to use events without breaking class and component separation?

I just started using events, and got stuck a little. I have a problem with the following code: ...
3 votes
2 answers
252 views

Have a method accept generic methods for a in-game console

I'm making a console, like in Half-Life so that the devs can add their commands. I'm making this in Unity's C#. I have a problem when dealing with the commands. When you want to add a commands, you ...
4 votes
2 answers
3k views

In Unity, does a reference delegate clear out when its parent GameObject is destroyed?

If I have a GameObject with a component like some: ...
  • 1,480
1 vote
1 answer
4k views

Unity/C# : How to execute a function after another function has finished its execution?

I've been trying to build a "event system" for a project that I'm working on . Here is how I'm doing it : I populate a list with reference to a gameObject and the functions that I need to execute from ...