Комментарии:
Why is there so much emphasis on the key strokes? It's like listing to a person chew a banana.
ОтветитьThis one i found kinda hard to understand. I watched the 4 hour video of C# from freecodecamp just to prepare for your unity course and i felt dumb because i can't really garsp the events subjects from this video...
Ответитьthankyou, it's super clear especially after watching the delegates tutorial
ОтветитьSo many videos make this complicated. (Some additional syntax might be helpful for those of us who see examples in ohter syntax, but this is so simple and easy to understand.) You made this seem way too easy. SMH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I've watched so many videos that try to take you through the event/delegate encyclopedia! Its overwhelming. I'm so refreshed. Thanks!
ОтветитьRather than including the entire System namespace, is there a way to just include the event part of it?
ОтветитьWhat do you mean with "match the signature"?
ОтветитьI really like your courses, but there are a few issues: 1. There was an error when importing the Asset downloaded from the UNITY store, and it needs to be fixed. 2. The Assets do not have basic scripts for movement, should I find them in the tutorials or write them myself? 3. There are quite a lot of tutorials and I don't know where to start - either because I can't find the Assets or they don't match with the tutorials, or because I'm unsure which tutorial to begin with. These are some concerns that I have as a beginner watching your videos.
ОтветитьThank you so much for explaining this. After so long I've finally understood this.
Ответитьsolid explanation and clear way, thank you !
Ответитьidk why but it's giving me error on the 'using UnityEngine ' and 'MonoBehavior' saying this type of namespace could not be found!!
ОтветитьHi, I'm getting "event must be of delegate type" when I use public event EventHandler myEventHandler. How to fix this?
ОтветитьGreat tutorial. I was able to learn all the concept pointed and taught on this video.
Ответитьthanks you very much! you are my hero!!!
Ответитьif start method runs only once and after that update starts to run then how can you subscribe to an event that fires off in update method and listen to it in the start method. I am really confused
ОтветитьCan I just use "public event EventHandler<int> OnSpacePressed;" instead of defining another class as you did in the video?
ОтветитьIs this Observer Design Pattern?
ОтветитьI've been procrastinating events and delegates for a long time and never really understood, but you somehow manage to explain it so I can easily understand. I thank you for that!
ОтветитьHi Thanks for this beautiful explanation. I have a doubt , say i have declared a event like following
public event OnSpacedelegate OnSpaceDelegateEvent;
public delegate void OnSpacedelegate();
Now the things I can do with this event is
1.) Invoking the event (in same class or outside the class) - OnSpaceDelegateEvent?.Invoke();
2.) Subscribing to the event - testingEventPublisher.OnSpaceDelegateEvent += TestingDelegatefunc;
These things I can do without using event also like following
public OnSpacedelegate OnSpaceDelegateEvent;
public delegate void OnSpacedelegate();
Then what is the point or need of using the event. If there is any use with it , at what scenarios I should use it.
When I asked chatgpt , it was specifying that if we use event then that particular event cannot be invoked from outside the class which gives encapsulation.
But i have used event and tried to invoke it from other class , it was possible. Please try to give some clarity on this.
I just finished Unity's Junior Programmer pathway and I really wish I'd watched this video about halfway through. My projects were always collapsing under their own weight towards the end, because something wouldn't work quite how I expected, which would mean I'd have to change one thing and then have to change everything that came before it to accommodate that change.
ОтветитьAside from visibility of events in the editor (with unity events), are there any reason to not exclusively use unity events?
ОтветитьI've come here on a tangent from approx 3 hours into the beginners 2023 vid. I have 2 qs at this stage that may be answered later. 1 / in the 2023 vid you say something about events being better to use for stuff that is not every frame (e.g. interacting with counter instead of a key press) and I think you implied that an event is less work, not being checked every frame. Is this somehow magically true in the background (compiled, running code)? I get the code separation etc. but I would imagine that there is still a condition being checked every frame somewhere when it runs ...? 2/ It seems like there's no reason not to alweays use Unity Events, intead of delegates or "normal" events. Is this a "safe" assumption until I have the skill to ask much deeper questions? Do unity events and normal events "compile away" to the same thing? Thanks!
ОтветитьThank you very much for this video!!!
ОтветитьWhat's the difference between Delegate and event?
ОтветитьGreat video. You know sometimes I imagine Code Monkey typing with his tung out like the avatar.
ОтветитьHi maybe I am just missing something stupid but at the very beginning of the code when declaring the Eventhandler I am getting a error saying that the event must be of a delegate type. Any advice?
ОтветитьThis is really the essential part to build a game. This should deserve more attention. Great job done!
Ответитьfunny. I brute force my first project in unity without any knowlage, using GPT-3. And he suggest use SendMassege function, while argument accept string that is name of function that will be executed on another classes. And here best solution for this.
ОтветитьThx, this ez and samiple to know
Ответитьi've used unityEvents before the eventHandler is new to me. threw me off while doing your course, I was like "I know events... not these events!" lol
ОтветитьNice lesson, I've been using events for a while but I just get stuck with Actions only and never even considered other ways of implementing this kind of observer pattern. Now I'm gonna try all of them and decide in which cases some of them are more convenient than others. Thanks!
ОтветитьHow do you use events when you want to fire them off from prefabs?
ОтветитьConcise but fully and simple explained, I like that, you really have talent !............THX !
Ответитьi don't understand anything
Ответитьbest of all event tutorials, thanks
ОтветитьThank you !
ОтветитьHello , i don't understand what is difference between events and delegates?
ОтветитьThis also helps me with Godot, which also has C# support. Thank you!
ОтветитьI don't get the difference between events and delegates. I mean, i don't see the purpouse of declearing and event on the publisher since we could do exactly the same thing with delegates. Am i wrong?
ОтветитьThere is only ONE Code Monkey, legend !
Ответитьevents would be really useful if you could subscribe without getting a component :/ bruh
ОтветитьAs a designer, having programmed at the bare minimum level to get my stuff working for nearly 2 years, watching your videos makes I realize I know nothing about coding xD
Thank you! These are very useful
I'm going to have to watch this at least 5 more times to get it, but this is definitely the video to watch.
Events are super confusing.
Hi Code Monkey! I am a beginner in programming and currently following your amazing FREE course.
can you do me a favor and recommend me some books that can help me increase my programming skills?
(books != Expensive)
Why is it that when I did the exact same code, I got an error saying that the line "public event EventHandler OnSpacePressed" needed to be a delegate type?
ОтветитьHow do I find the GameObject that published the event if it's not the same that contains the subscriber? And worse, if it's spawned after a certain point? Do I make it publish an event on creation, and have the original publisher be a subscriber to this other event (seems very much coupled so I guess not)
ОтветитьThank you, best events tutorial
Ответить