Accessing MonoBehaviour Properties through Custom Classes in Unity!

Subscribers:
4,450
Published on ● Video Link: https://www.youtube.com/watch?v=GOcPhyut24U



Duration: 20:32
456 views
24


Hiya,
so while working on a personal project, i kinda ran into a small problem when trying to run a coroutine in a custom class, and that was that i couldn't run it as it is a monobehaviour owned method. I looked up solutions online and none were really super clear to me how it would be done but was able to come up with my own. its a pretty niche problem, but i decided to create a tutorial so that it might help someone who's fighting this battle too in the future.

I enjoyed making this and I hope you guys enjoyed watching, so if there's any types of videos you guys want to see in the future or if you have any feedback on things that I could improve on, let me know too in the comments. otherwise chuck it a like if you enjoyed :)

Here's some relevant links that I mentioned in the video or got my information from.
Monobehaviour Properties: https://docs.unity3d.com/530/Documentation/ScriptReference/MonoBehaviour.html#:~:text=MonoBehaviour%20is%20the%20base%20class,to%20explicitly%20derive%20from%20MonoBehaviour
Classes in C#: https://www.tutorialsteacher.com/csharp/csharp-class
Constructors in Programming: https://www.knowledgehut.com/tutorials/csharp/csharp-constructors#:~:text=Constructors%20in%20C%23-,Constructors%20are%20special%20methods%20in%20C%23%20that%20are%20automatically%20called,creates%20a%20default%20constructor%20automatically
Music: https://www.youtube.com/watch?v=S24ozLSZ94o&ab_channel=melunfiltered

Chapters:
0:00 Intro
1:02 What are Custom Classes and MonoBehaviour?
3:35 Main Tutorial
19:57 Outro







Tags:
unity2d
unity3d
unity
programming
c#
csharp
unity 2020
unity 2021
unity 2022
how to
how to programing in unity
monobehaviour
what is monobehaviour