Questions tagged [delegates]
The delegates tag has no usage guidance.
9
questions
0
votes
1answer
30 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
0answers
20 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, ...
0
votes
1answer
160 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 ...
0
votes
0answers
506 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
0answers
260 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 ...
1
vote
1answer
78 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:
...
4
votes
2answers
245 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
2answers
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:
...
0
votes
1answer
3k 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 ...