Questions tagged [delegates]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

Infinite character loop when trying to play Dialogue

I am trying to make a dialogue system in Unity by following this tutorial: (29) 5 Minute DIALOGUE SYSTEM in UNITY Tutorial - YouTube. There is a slight twist to this and that is that I am triggering ...
Akshit Chaturvedi's user avatar
0 votes
2 answers
463 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 ...
hungry91's user avatar
0 votes
1 answer
352 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 ...
Willie Wight's user avatar
0 votes
0 answers
32 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, ...
Natalo77's user avatar
  • 679
0 votes
1 answer
427 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 ...
Mira's user avatar
  • 139
0 votes
0 answers
1k 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....
Boneco Sinforoso's user avatar
0 votes
0 answers
285 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 ...
hexaJer's user avatar
  • 131
1 vote
1 answer
82 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: ...
Daniyal Azram's user avatar
3 votes
2 answers
258 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 ...
Javier Bullrich's user avatar
4 votes
2 answers
4k 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: ...
meds's user avatar
  • 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 ...
Francisco M.'s user avatar