Quantcast
Channel: Questions in topic: "attach"
Viewing all articles
Browse latest Browse all 168

Does my base class that inherits from MonoBehaviour needs to be attached to an gameobject within a scene?

$
0
0
**Hey guys!** I've worked in C# in Unity for few months now, but without using inheritance at all. :D Today I decided to start learning it, I understand a lot now, but one simple (?) thing I don't (before I start implementing and refactoring my code), it's "Does my base class that inherits from MonoBehaviour needs to be attached to an gameobject within a scene?". I know that base class contains all required variables,methods for other scripts that inherits from it, but, if answer to my question is **Yes**, then where I should attach it? I hope someone can answer this! BTW Thanks to Unity Community for helping me a lot! :D

Viewing all articles
Browse latest Browse all 168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>