Posts

Showing posts with the label organization

How to organize your scripts and GameObjects in game developement?

Image
Clash Royale CLAN TAG #URR8PPP How to organize your scripts and GameObjects in game developement? I work with Unity. My problem is sometime I'm not sure how to organize my scripts in folders and GameObjects in scenes. (gameobjects are basic spatial objects where you put on your scripts, scenes are the rooms for all gameobjects you want to load at runtime). I am confronted mostly with problems like: "Do I to create folder based on type of gameObject, then add in all scripts related to these gameObjects?" For example: Cameras ↳(CameraActivate, CameraFollow, CameraShakeOnReplay) Or "Do I to create folder based on type of technology, then add in all scripts related to this technology?" Replay ↳(ReplayTimeline, ReplayControl, ReplayShakeCamera) Are there rules for this kind of thing? There's probably some conventions specific to unity for this, but what you are generally speaking of is called Cohesion en.wikipedia.org/wiki/Cohes...